[web2py] registration key?

2013-03-26 Thread maneesh2611
What are the registration key and registration identifier fields in auth 
user sign up table?
I'm new to web2py, so I apologize if the question looks silly.

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[web2py] What does this do?

2013-03-29 Thread maneesh2611
authorize=lambda row: auth.is_logged_in()

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[web2py] not getting what this says

2013-03-29 Thread maneesh2611


(need more than 1 value to unpack)

I got this weird kind of error and not able to figure out what this means.

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[web2py] Re: not getting what this says

2013-03-29 Thread maneesh2611
These are the database tables I defined.I guess the problem is with the 
person table only. If I remove the last 4 lines and try to insert values. 
They are not getting inserted into the person and it is showing the same 
error.
db.define_table('person',
db.Field('name','string',requires=IS_NOT_EMPTY()),
db.Field('date_of_birth','date',requires=IS_NOT_EMPTY()),
db.Field('age','integer',requires=IS_NOT_EMPTY()),
db.Field('gender','string',requires=IS_IN_SET(['male','female'])),
db.Field('mail_address','string',requires=IS_EMAIL()),
db.Field('field_of_expertise','string'),
db.Field('career_objective','text'),
db.Field('webpage','string',requires=IS_NULL_OR(IS_URL())),
db.Field('contact_number1', 'string',requires=IS_NOT_EMPTY()),
db.Field('contact_number2', 'string'),
db.Field('current_location','text'),
db.Field('interests','text'),
db.Field('skills','text'),
db.Field('image','upload'),
db.Field('resume','upload',requires = 
IS_NULL_OR(IS_UPLOAD_FILENAME(extension='pdf')),comment='upload in PDF 
format'))
db.define_table('education',
db.Field('person_id','reference person'),

db.Field('educational_qualification','string',length=512,requires=IS_NOT_EMPTY()),
db.Field('university','string',requires=IS_NOT_EMPTY()),
db.Field('year_of_graduation','integer',requires=IS_NOT_EMPTY()),
db.Field('CGPA','float',requires=IS_NOT_EMPTY()))
db.define_table('company',
db.Field('homepage','string', requires=IS_NULL_OR(IS_URL())),
db.Field('contact_info','text'))
db.define_table('vacancies',
db.Field('company_id','reference person'),
db.Field('vacancy','string',length=64),
db.Field('educational_qualifications','string',length=512))
db.define_table('experience',
db.Field('person_id','reference person'),
db.Field('employer','string',requires=IS_NOT_EMPTY()),
db.Field('start_date','date'),
db.Field('end_date','date',comment='If still working in here leave 
this box blank'),
db.Field('place','string',requires=IS_NOT_EMPTY()),
db.Field('achievements_and_rewards','text'))
db.define_table('project',
db.Field('person_id','reference person'),
db.Field('title','string',requires=IS_NOT_EMPTY()),
db.Field('description','text'),
db.Field('project_file','upload'),
db.Field('wpage','string', requires=IS_NULL_OR(IS_URL(
db.education.person_id.requires=IS_IN_DB(db.person,'person_id','%(name)s')
db.experience.person_id.requires=IS_IN_DB(db,'person_id','%(name)s')
db.project.person_id.requires=IS_IN_DB(db,'person_id','%(name)s')
db.vacancies.company_id.requires=IS_IN_DB(db,'company_id','%(name)s')

On Friday, March 29, 2013 10:45:57 PM UTC+5:30, manee...@gmail.com wrote:
>
> (need more than 1 value to unpack)
>
> I got this weird kind of error and not able to figure out what this means.
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[web2py] need more than 1 value to unpack.

2013-03-29 Thread maneesh2611
This error occurs when I try to insert a table into db but the page says 
new record inserted.

 Traceback (most recent call last):
  File "C:\Users\manish\Documents\iiit\semester 2\itws 
2\web2py_win\web2py\applications\project\controllers/appadmin.py", line 227, in 
select
  File "gluon/dal.py", line 8905, in select
  File "gluon/dal.py", line 2146, in select
  File "gluon/dal.py", line 1631, in select
  File "gluon/dal.py", line 1596, in _select_aux
  File "gluon/dal.py", line 1709, in execute
  File "gluon/dal.py", line 1703, in log_execute
  File "sqlite3\dbapi2.pyc", line 66, in convert_timestamp
ValueError: need more than 1 value to unpack

And this is my table

db.define_table('person',
db.Field('name','string',requires=IS_NOT_EMPTY()),
db.Field('date_of_birth','date',requires=IS_NOT_EMPTY()),
db.Field('age','integer',requires=IS_NOT_EMPTY()),
db.Field('gender','string',requires=IS_IN_SET(['male','female'])),
db.Field('mail_address','string',requires=IS_EMAIL()),
db.Field('field_of_expertise','string'),
db.Field('career_objective','text'),
db.Field('webpage','string',requires=IS_NULL_OR(IS_URL())),
db.Field('contact_number1', 'string',requires=IS_NOT_EMPTY()),
db.Field('contact_number2', 'string'),
db.Field('current_location','text'),
db.Field('interests','text'),
db.Field('skills','text'),
db.Field('image','upload'),
db.Field('resume','upload',requires = 
IS_NULL_OR(IS_UPLOAD_FILENAME(extension='pdf')),comment='upload in PDF format'))

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[web2py] mysql file as model

2013-10-17 Thread maneesh2611
I have a MySQL file and I want to make it my database(in place of model.py) 
i.e., I want to make it my model.
How can I do that?
Thanks in advance.

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.