[web2py] How do I make user redirect to a different page you/index instead of predefined on clicking PROFILE?

2016-08-15 Thread Steve Joe
-- 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

[web2py] Re: Referencing a table in web2py before defining it

2016-08-15 Thread Anthony
You're back to using your original code, so you're also back to the original error message. On Monday, August 15, 2016 at 5:08:05 PM UTC-4, Oasis Agano wrote: > > > db = DAL(lazy_tables=True) > db.define_table('employee', > Field('fullname','string',label='Name'), >

[web2py] Re: TAG doubles

2016-08-15 Thread lucas
agreed, the docs are a bit dicey and what i learned of it was from source codes docs and a bit of experimentation. lucas -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list

[web2py] Re: Referencing a table in web2py before defining it

2016-08-15 Thread Dave S
On Monday, August 15, 2016 at 2:08:05 PM UTC-7, Oasis Agano wrote: > > > db = DAL(lazy_tables=True) > db.define_table('employee', > Field('fullname','string',label='Name'), > Field('email','string'), > Field('phone','string'), >

[web2py] Re: Referencing a table in web2py before defining it

2016-08-15 Thread Oasis Agano
db = DAL(lazy_tables=True) db.define_table('employee', Field('fullname','string',label='Name'), Field('email','string'), Field('phone','string'), Field('kids', 'string'), Field('phone', 'string'),

[web2py] Re: TAG doubles

2016-08-15 Thread Dave S
On Sunday, August 14, 2016 at 8:20:46 PM UTC-7, Anthony wrote: > > It does appear to be a bug (with all self-closing tags, including hr and > img). Please submit a Github issue if you get a chance. > > Anthony > FWIW, I found TAG() *mentioned* in the book, but I didn't find a description of

[web2py] Re: Referencing a table in web2py before defining it

2016-08-15 Thread Anthony
On Monday, August 15, 2016 at 8:54:55 AM UTC-4, Oasis Agano wrote: > > new logs > > File "/home/oasis/PycharmProjects/HR2/web2py/applications/HR2/models/db1.py" > , line 24, in > > requires=IS_IN_DB(db, 'db.employee.id',

[web2py] Re: Error Running Graph Model: "agedge: no key". and Installing instruction for pygraphviz (windows)

2016-08-15 Thread Ron Chatterjee
Responding to my own post as I have narrowed down the issue to this table definition that I believe breaks the graph model. db.define_table("employee_comments", Field("employee", "reference employee", requires=IS_IN_DB(db, 'employee.id', '%(profile_statement)s'), readable=False,

[web2py] Speeding up scheduler assignment time

2016-08-15 Thread Jason Solack
Hell all, i'm currently leveraging the scheduler to do some data processing and i'm finding it takes 5-10 seconds for my task to be assigned. I'm running MSSQL and have immediate set to false (i was getting some deadlock errors). Even when immediate was set to True it was taking 5-10 seconds

[web2py] Re: Referencing a table in web2py before defining it

2016-08-15 Thread Oasis Agano
new logs File "/home/oasis/PycharmProjects/HR2/web2py/applications/HR2/models/db1.py" , line 24, in requires=IS_IN_DB(db, 'db.employee.id', '%(fullname)s')), File "/home/oasis/PycharmProjects/HR2/web2py/gluon/validators.py",

[web2py] Re: Referencing a table in web2py before defining it

2016-08-15 Thread Oasis Agano
I ve corrected all of those but now im getting this error: KeyError: 'Cannot resolve reference department in employee definition' db = DAL(lazy_tables=True) db.define_table('employee', Field('fullname','string',label='Name'), Field('email','string'),

[web2py] Re: Referencing a table in web2py before defining it

2016-08-15 Thread Anthony
On Monday, August 15, 2016 at 12:26:08 AM UTC-4, 黄祥 wrote: > > what is the difference between : > IS_IN_DB(db, *'department.id '*, > '%(department_name)s') > and > IS_IN_DB(db, *db.department.id *, > '%(department_name)s') > The "field" argument in

[web2py] Re: Referencing a table in web2py before defining it

2016-08-15 Thread Anthony
On Monday, August 15, 2016 at 7:03:37 AM UTC-4, Oasis Agano wrote: > > > Im also the one who posted it on stackoverflow but still getting an error > > db = DAL(lazy_tables=True) > db.define_table('employee', > Field('fullname','string',label='Name'), >

[web2py] Re: Referencing a table in web2py before defining it

2016-08-15 Thread Oasis Agano
Im also the one who posted it on stackoverflow but still getting an error db = DAL(lazy_tables=True) db.define_table('employee', Field('fullname','string',label='Name'), Field('email','string'), Field('phone','string'),

[web2py] Re: TAG doubles

2016-08-15 Thread lucas
ok, it is posted on github. lucas -- 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

[web2py] is this correct way to use sidebars?

2016-08-15 Thread Alex Glaros
I want 3 columns on most pages with some exceptions. In layout.html left_sidebar_enabled = globals().get('left_sidebar_enabled', True) right_sidebar_enabled = globals().get('right_sidebar_enabled', True) In view on top of every html page: {{block left_sidebar}}