Battery Capstone Project

,

Excerpt from December 18, 2013 Poster Register, by Nate Sunderland

Seven BYU-I students worked with Idaho National Engineering Laboratory to help develop a

system to test the health and life span of individual battery cells within a complex device or

machine without interrupting what the battery was doing. Each of the students were tasked with

developing a portion of the device’s circuitry. They put in more than 1,120 hours combined on the

project… doing research, selecting parts and building the various components.

“It was cool to work with the INL and be part of this measurement system”, senior Derek Nelson said. “At first, I had a hard time understanding the concept…then I got it – so it was a great opportunity to learn.”

Customizing web2py auth_user Table

The following lines of code take place in the db.py file.

Declaring an auth_user table

# Set up a default auth user table

auth.define_tables(username=False, signature=False)

Declaring a customized auth_user table

# Set up a customized auth_user table

auth.settings.extra_fields[‘auth_user’]=[Field(‘registration_complete’), Field(‘favorite_number’)]

auth.define_tables(username=False, signature=False)

 

Call the function

auth.settings.extra_fields[‘auth_user’]=[Field(‘registration_complete’), Field(‘favorite_number’)]

Specify the table you want to alter

auth.settings.extra_fields[‘auth_user’]=[Field(‘registration_complete’), Field(‘favorite_number’)]

Specify the Fields you would like to add to the table 

auth.settings.extra_fields[‘auth_user’]=[Field(‘registration_complete’), Field(‘favorite_number’)]

Important!

When you are creating a customized auth_user table you must place the auth.settings.extra_fields statement before the auth.define_tables statement. If you don’t put it before the auth.define_tables statement, the auth_user table will not be customized and will be default.