[web2py] Re: .represent in case of empty field

2012-04-20 Thread Annet
Hi Johann and Anthony, Thanks for your replies. Problem solved. Kind regards, Annet.

[web2py] Re: time with no date and vevent

2012-04-20 Thread Annet
Massimo, The web2py in trunk han applications/welcome/views/generic.ics that makes the calendar. It contains an example. Add to your table two virtual fields (start_datetime, stop_datetime) and it should work. I'll give this solution a try. In my application I have a generic.vcf file,

[web2py] Re: Postgres expers -- interesting design issue

2012-04-20 Thread Sundar
Cliff By adding the 'null' to the 'purchase_order_id' in the product_lots table, you automatically achieve it - that is, if the field is declared as Null, foreign key constraint is applicable only if it is non-null and a null value will automatically skip validation for foreign key. Another

Re: [web2py] Re: List of users with a specific permission

2012-04-20 Thread Johann Spies
On 20 April 2012 03:07, Jim Steil j...@qlf.com wrote: No, I'm looking for a list of user ids. I don't want to filter by user id. In [25]: reds = [x.id for x in db((db.auth_user.id == db.auth_membership.user_id)(db.auth_group.id == db.auth_membership.group_id) (db.auth_group.role ==

Re: [web2py] Re: pure css skins?

2012-04-20 Thread Vasile Ermicioi
100% agree, naming convention + more features that's why I prefer bootstrap over foundation On Fri, Apr 20, 2012 at 8:55 AM, Annet anneve...@googlemail.com wrote: I had a look at both Foundation and Bootstrap 2 weeks ago and decided to use Bootstrap (by the way, they're both not pure css).

[web2py] bootstrap in trunk

2012-04-20 Thread Johann Spies
Thanks for the bootstrap css and js in the trunk. I am trying it out and found a problem when used with the grid: div class=web2py_grid ui-widget div class=web2py_console ui-widget-header ui-corner-top form method=GET enctype=multipart/form-data action=

[web2py] CRON tasks in Google App Engine

2012-04-20 Thread Jason (spot) Brower
I just wanted to confirm with you guys... According to this page there is a way to send emails in a que. http://web2py.com/books/default/chapter/29/8?search=cron Does this work in Google App Engine? BR, Jason

[web2py] creating manual login form

2012-04-20 Thread Sonu Srivastava
i create reagister form using auth_user but unable to create a manual login form by which we login.please anyone help me.

[web2py] web2py doesn't seem to be picking up posted json

2012-04-20 Thread Matt Thompson
I'm using the following function from the documentation for a RESTful web service def POST(table_name,**fields): string = if table_name == 'person': for key in fields: string = string + another keyword arg: %s: %s % (key, fields[key])

[web2py] Using static files in view confusion

2012-04-20 Thread Simon Pickles
Hi, New to web2py and having trouble with simple HTML in a view. In my default/index.html: {{=IMG(_src=URL('static','images/map420x200.png'))}} img src=static/images/map420x200.png style=border: 2px; width:420px; height:200px;/ The first line works, rendering the map png. However, the second

Re: [web2py] Using static files in view confusion

2012-04-20 Thread Khalil KHAMLICHI
To insert an image here is the url to use img src= /application_name/static/images/map420x200.png / or URL('static', args='images/map420x200.png') or simply URL('static', 'images/map420x200.png') since its only one argument. from the book : http://web2py.com/books/default/chapter/29/4#URL 1.

Re: [web2py] Using static files in view confusion

2012-04-20 Thread Johann Spies
On 20 April 2012 09:19, Simon Pickles sipick...@gmail.com wrote: Hi, New to web2py and having trouble with simple HTML in a view. In my default/index.html: {{=IMG(_src=URL('static','images/map420x200.png'))}} img src=static/images/map420x200.png style=border: 2px; width:420px;

[web2py] Re: Errors creating/reading tickets

2012-04-20 Thread selecta
yes I know this problem for a long time, would be nice if this would be fixed. I guess right now the problem is that the whole ticket display fails if one ticket is corrupted. I think this could be quickfixed by a simple try catch block around the deserialization of each ticket pickle file. On

Re: [web2py] Re: 20 beautiful resources that complement twitter bootstrap

2012-04-20 Thread Khalil KHAMLICHI
To this list of 4 elements can we add a 2 other elements ? - 5 lower the learning curve as much as possible for actual web2py users - 6 make the theming framework optional or choosable or modular (choose what you need from it) It would be super fantastic to see something like : choose

Re: [web2py] creating manual login form

2012-04-20 Thread Khalil KHAMLICHI
these stuff come by default built into web2py you just enjoy using them (you can style them if you want), look at the AUTH section in the book or google for customize login form in web2py for more info On Fri, Apr 20, 2012 at 10:23 AM, Sonu Srivastava sonu.srivast...@zero-group.com wrote: i

[web2py] Re: Postgres expers -- interesting design issue

2012-04-20 Thread Cliff
Thank you, Sundar. I understand. This solution means I relinquish the foreign key constraint on the product_lots table. It does seem simpler than using another table for raw materials. No third alternative, I guess... On Friday, April 20, 2012 2:37:38 AM UTC-4, Sundar wrote: Cliff By

[web2py] Re: What would be the best way to generate a summary of the 'count(*) 'of all my database table columns?

2012-04-20 Thread Cliff
Is this what you want? Table | column count --- dog | 3 --- car | 3 --- This will get the data. For table in db.tables: column_count = 0 for field in table.fields column_count += 1 print table.name print

[web2py] Re: CRON tasks in Google App Engine

2012-04-20 Thread Wikus van de Merwe
Not directly. You can't execute scripts on GAE, so you would have to move the checking/sending code into a controller function and set up the GAE cron to call it periodically. However, it might be easier to use the GAE queues and to delegate e-mail sending to a background task:

[web2py] Re: creating manual login form

2012-04-20 Thread Anthony
def login(): return dict(form=auth.login()) /default/login.html: {{extend 'layout.html'}} {{[custom form code goes here]}} What exactly are you trying to do? Anthony On Friday, April 20, 2012 6:23:41 AM UTC-4, Sonu Srivastava wrote: i create reagister form using auth_user but unable to

[web2py] Re: web2py doesn't seem to be picking up posted json

2012-04-20 Thread Wikus van de Merwe
How do you post it? I'm guessing this is the part that needs fixing.

Re: [web2py] .represent in case of empty field

2012-04-20 Thread Anthony
Try db.EventList.startDate.represent = lambda v: v.strftime('%d/%m/%Y') or None Note, that will still generate an error if v is None -- you have to first check for v before applying the strftime method to it. Anthony

Re: [web2py] Re: Web2py + Python 2.7 on GAE: Can I use PIL and resize an image when uploading to datastore?

2012-04-20 Thread Wikus van de Merwe
I would just queue the image processing task (using GAE queue) to have the work done in the background. Doing it right when the form is submitted is possible too but will cause delays to the user. You could insert a logo by converting the image into uncompressed format (e.g. bmp), modifying

[web2py] Modifying auth_navbar

2012-04-20 Thread Simon Pickles
Hi, I've worked out how to remove the 'forget username?' and 'Retrieve Password' entries from the navbar by editing gluon/tools.py, and restarting server. This seems a bit severe, altering web2py source code. I imagine my changes will be overwritten at next update. Is there a way to do it in

Re: [web2py] bootstrap in trunk

2012-04-20 Thread Johann Spies
Further information: This happens only with SQLFORM.grid and not with SQLFORM.smartgrid. I have tested it on a new app using using the css and js and layout.html from the welcome app. Regards Johann -- Because experiencing your loyal love is better than life itself, my lips will praise you.

Re: [web2py] Re: routes.py

2012-04-20 Thread Wikus van de Merwe
OK, so if I define the list of function, the situation is clear. If I don't and I want to pass arguments to the default function I need to use the default function name (/default_function/arg). Arguments alone (/arg) in that case would be treated as if it is a function name (even if it does not

[web2py] Re: Using static files in view confusion

2012-04-20 Thread Simon Pickles
Thanks I suspected my path was a little wrong. Still got the problem that the image border appears then whole thing vanishes. On Friday, 20 April 2012 08:19:23 UTC+1, Simon Pickles wrote: Hi, New to web2py and having trouble with simple HTML in a view. In my default/index.html:

[web2py] Re: Postgres expers -- interesting design issue

2012-04-20 Thread Sundar
Not sure if 'relinquish' is the right word since the foreign constraint is going to be enforced if you enter a value for the PO. (May be my statement was a little confusing). Please see the example: Create Table t1(a int primary key) Create table t2 (b int primary key, ba null references

Re: [web2py] Re: routes.py

2012-04-20 Thread Jonathan Lundell
On Apr 20, 2012, at 6:20 AM, Wikus van de Merwe wrote: OK, so if I define the list of function, the situation is clear. If I don't and I want to pass arguments to the default function I need to use the default function name (/default_function/arg). Arguments alone (/arg) in that case would

Re: [web2py] Re: List of users with a specific permission

2012-04-20 Thread Jim Steil
That's not quite it either. This is checking for a group 'role' as opposed to looking for all users that have a specific permission (auth_permission). -Jim On 4/20/2012 2:27 AM, Johann Spies wrote: On 20 April 2012 03:07, Jim Steil j...@qlf.com mailto:j...@qlf.com wrote: No, I'm

Re: [web2py] Re: Using static files in view confusion

2012-04-20 Thread Jonathan Lundell
On Apr 20, 2012, at 6:24 AM, Simon Pickles wrote: Thanks I suspected my path was a little wrong. Still got the problem that the image border appears then whole thing vanishes. Assuming that your app is set as the default, try: img src=/static/images/map420x200.png style=border: 2px;

Re: [web2py] Re: List of users with a specific permission

2012-04-20 Thread Johann Spies
On 20 April 2012 15:37, Jim Steil j...@qlf.com wrote: That's not quite it either. This is checking for a group 'role' as opposed to looking for all users that have a specific permission (auth_permission). Then adapt it. Determine the group name that have the specific permission and from

[web2py] Re: bootstrap in trunk

2012-04-20 Thread Anthony
Looks like a bug that was introduced -- the code was CAT(INPUT(...), DIV(...), SCRIPT(...)), but the CAT was dropped, so instead of returning a helper object, it is now returning a tuple of helpers, which doesn't get serialized properly.

Re: [web2py] Modifying auth_navbar

2012-04-20 Thread Richard Vézina
Maybe read in this chapter : http://web2py.com/books/default/chapter/29/5?search=auth_nav On Fri, Apr 20, 2012 at 9:15 AM, Simon Pickles sipick...@gmail.com wrote: Hi, I've worked out how to remove the 'forget username?' and 'Retrieve Password' entries from the navbar by editing

[web2py] Re: Modifying auth_navbar

2012-04-20 Thread Anthony
I've worked out how to remove the 'forget username?' and 'Retrieve Password' entries from the navbar by editing gluon/tools.py, and restarting server. This seems a bit severe, altering web2py source code. I imagine my changes will be overwritten at next update. Is there a way to do it

Re: [web2py] Re: List of users with a specific permission

2012-04-20 Thread Jim Steil
Thanks Johann Had to modify to also add (db.auth_group.id==db.auth_membership.group_id) db((db.auth_user.id==db.auth_membership.user_id)(db.auth_group.id==db.auth_permission.group_id)(db.auth_permission.name=='load')).select(db.auth_user.id, distinct=True) Thanks again for getting me down

[web2py] LOAD and .load confusion.

2012-04-20 Thread Annet
In a view with tabs I have the following tab-pane: {{if vevent.event_list:}} div id=eventlist class=tab-pane div class=row-fluid div class=span12 {{=LOAD('calendar','eventList.load',args=int(organization.nodeID),ajax=True,target='eventlist')}} /div!-- /span --

[web2py] Re: LOAD and .load confusion.

2012-04-20 Thread Anthony
def event(): response.view='calendar/event.html' row=db(db.EventList.id==request.args(0)).select(db.EventList.ALL) row is actually a DAL Rows object -- if you want a Row object, you have to select a specific row. Try: row=db(db.EventList.id

Re: [web2py] Re: 20 beautiful resources that complement twitter bootstrap

2012-04-20 Thread Khalil KHAMLICHI
http://bootswatch.com/#gallery

Re: [web2py] Re: Modifying auth_navbar

2012-04-20 Thread Richard Vézina
Like your answers Anthony :) Richard On Fri, Apr 20, 2012 at 10:39 AM, Anthony abasta...@gmail.com wrote: I've worked out how to remove the 'forget username?' and 'Retrieve Password' entries from the navbar by editing gluon/tools.py, and restarting server. This seems a bit severe, altering

Re: [web2py] Re: bootstrap in trunk

2012-04-20 Thread Johann Spies
On 20 April 2012 16:05, Anthony abasta...@gmail.com wrote: Looks like a bug that was introduced -- the code was CAT(INPUT(...), DIV(...), SCRIPT(...)), but the CAT was dropped, so instead of returning a helper object, it is now returning a tuple of helpers, which doesn't get serialized

[web2py] bootstrap modal window

2012-04-20 Thread Annet
I posted the following problem: https://groups.google.com/forum/?fromgroups#!topic/web2py/vm3WwFamfXQ This is part of a problem I have been working on for a couple of they. I have two functions: def eventList(): response.view='calendar/eventList.html' rows=db(...).select() return

[web2py] Great news! Markitup supports Markmin officially

2012-04-20 Thread Massimo Di Pierro
http://markitup.jaysalvat.com/downloads/demo.php?id=markupsets/markmin

[web2py] computed field

2012-04-20 Thread Annet
I defined a table eventList: db.define_table('EventList', ... Field('description',type='text'), Field('shortdescr',length=128,writable=False,readable=False), migrate=False) db.EventList.description.requires=IS_LENGTH(1536,error_message='length exceeds 1536 characters')

[web2py] Ajax

2012-04-20 Thread Hassan Alnatour
Dear ALL, How can i use ajax in a a href=/a to post some vars to a controller function ?? Best Regards,

Re: [web2py] computed field

2012-04-20 Thread Richard Vézina
I think you can't use compute since you modify a field where the user as to enter something base on the len of user input, so I think you should transform the code below into function and use onvalidation=function x=len(form.vars.description) if x128: i=128 dots=... else: i=x-1

Re: [web2py] computed field

2012-04-20 Thread Richard Vézina
Also, you could maybe search the book with truncate keyword, there is already a utility if you just want to control the lenght of free text field or other string field. Richard On Fri, Apr 20, 2012 at 11:35 AM, Richard Vézina ml.richard.vez...@gmail.com wrote: I think you can't use compute

Re: [web2py] computed field

2012-04-20 Thread Richard Vézina
http://web2py.com/books/default/chapter/29/6 {{extend 'layout.html'}} h1Records/h1 {{=SQLTABLE(rows, headers='fieldname:capitalize', truncate=100, upload=URL('download')) }} Richard On Fri, Apr 20, 2012 at 11:42 AM, Richard Vézina ml.richard.vez...@gmail.com wrote: Also, you

[web2py] Page Title Tag

2012-04-20 Thread Hassan Alnatour
Dear ALL , I am using a master page , now how can i let every page has its own title tag ?? Best Regards,

[web2py] Re: Page Title Tag

2012-04-20 Thread Anthony
Assuming you have something like this in your layout.html head: title{{=response.title}}/title you just have to set the value of response.title separately for each page. You could do this in the controller, or in the view before the {{extend 'layout.html'}} directive: def mypage():

[web2py] Re: Ajax

2012-04-20 Thread Anthony
Assuming the ajax() function does what you want (see http://web2py.com/books/default/chapter/29/11#The-ajax-function), you can put it in an onclick handler: a href= onclick=ajax('{{=URL(controller, function)}}', [...], 'target'); return false;click here/a Anthony On Friday, April 20, 2012

[web2py] Re: computed field

2012-04-20 Thread pbreit
I'd probably use a function or virtual field for that, not store it in DB. And it could be cleaned up a bit. Something like: def trunc_desc(s) if len(s) 128: return s[:128] + '...' return s

[web2py] Re: Great news! Markitup supports Markmin officially

2012-04-20 Thread Anthony
+1 On Friday, April 20, 2012 11:24:26 AM UTC-4, Massimo Di Pierro wrote: http://markitup.jaysalvat.com/downloads/demo.php?id=markupsets/markmin

[web2py] Re: Modifying auth_navbar

2012-04-20 Thread pbreit
I ended up just coding my own navbar and sticking it in a function in models. Now that I look at it, I probably should have used URL()s. def user_bar(): action = '/user' if auth.user: logout=A('logout', _href=action+'/logout') profile=A('profile', _href=action+'/profile')

Re: [web2py] Re: bootstrap in trunk

2012-04-20 Thread Anthony
On Friday, April 20, 2012 11:08:50 AM UTC-4, Johann Spies wrote: On 20 April 2012 16:05, Anthony abasta...@gmail.com wrote: Looks like a bug that was introduced -- the code was CAT(INPUT(...), DIV(...), SCRIPT(...)), but the CAT was dropped, so instead of returning a helper object, it is

[web2py] Re: Using static files in view confusion

2012-04-20 Thread pbreit
Even when using img tag, best to use URL() function for the src url.

[web2py] Re: What would be the best way to generate a summary of the 'count(*) 'of all my database table columns?

2012-04-20 Thread Cody Goodman
That is close to what I need guys, but I should have made a better example. I have a legacy database called my_legacy_db which is separate from the normal db. my_legacy_db users - email - username - name So cliff, your first part would work to

[web2py] Cannot insert specific key into table

2012-04-20 Thread haggis
Hello, I've got the following table: db = DAL('sqlite://storage.sqlite') db.define_table('variable', Field('name', type='string', length=255), Field('value', type='string', length=255), format='%(name)s', primarykey=['name']) This

[web2py] scheduler advanced question

2012-04-20 Thread Niphlod
Hi all, I'm trying to use extensively the scheduler for an application. There are a few things I can't wrap my mind around the first, simplest, is how to setup DEBUG logging level on the scheduler when started as python web2py.py -K appname Second, and there's the advanced part,

[web2py] Re: official book vs web2py cookbook

2012-04-20 Thread Massimo Di Pierro
There will be a 5th edition. On Thursday, 19 April 2012 09:43:28 UTC-5, Gour wrote: On Thu, 19 Apr 2012 06:21:46 -0700 (PDT) Massimo Di Pierro massimo.dipie...@gmail.com wrote: No because most of what is in 2.0 is already in trunk and partially documented in the book. Good. Do you

Re: [web2py] Re: What would be the best way to generate a summary of the 'count(*) 'of all my database table columns?

2012-04-20 Thread Khalil KHAMLICHI
db(db.legacy-db.table).select() I think you are forgetting db. in front of table name.

[web2py] Re: bootstrap in trunk

2012-04-20 Thread Massimo Di Pierro
Do you use a custom search_menu or do you call it explicitly? Yes the API for this thing have changed (for the better). This was clearly marked in the book as an experimental feature. If you show us your code, I can tell you now to adapt it. Yet, without seeing your code I can not 100% sure

[web2py] css file changes don't effect webpage

2012-04-20 Thread BlueShadow
Hi I include a css file called custum.css in the layout. I wanted to do a little adjustment to one page included in the layout.html When I use the css directly on the page which is included in the layout.html it wokrs without a problem. but when I move the css to the custum.css file it doesn't

[web2py] Adding permissions upon registration

2012-04-20 Thread cyan
Hi Group, I have something like the following in a model: def grant_permissions(form): group_id = auth.id_group(role=request.args(0)) auth.add_membership(group_id, auth.user.id) auth.settings.register_onaccept.append(grant_permissions) Basically, I want to assign a user to a group

[web2py] Re: official book vs web2py cookbook

2012-04-20 Thread Gour
On Fri, 20 Apr 2012 13:20:39 -0700 (PDT) Massimo Di Pierro massimo.dipie...@gmail.com wrote: There will be a 5th edition. Thank you. Sincerely, Gour -- You have a right to perform your prescribed duty, but you are not entitled to the fruits of action. Never consider yourself the cause of

Re: [web2py] Memory leak in standalone DAL (issue #731), can you please help test?

2012-04-20 Thread nick name
On Thursday, April 19, 2012 7:08:06 PM UTC-4, Ricardo Pedroso wrote: I post a comment on this issue: http://code.google.com/p/web2py/issues/detail?id=731#c4 I think this is not a bug but an incorrect use of the dal api. Ricardo, thanks! That is indeed the problem. Whether or not it is a

[web2py] Re: How can one retrieve user's email upon verify_email action

2012-04-20 Thread mrtn
Thanks for the suggestion, Anthony. When you said '*an argument* of the verify_email_onaccept callback', you meant an argument of the callback function supplied to auth.settings.verify_email_onaccept , right? My understanding is that you provide a callback function to Web2py, which is going

[web2py] Re: How can one retrieve user's email upon verify_email action

2012-04-20 Thread Anthony
When you said '*an argument* of the verify_email_onaccept callback', you meant an argument of the callback function supplied to auth.settings.verify_email_onaccept , right? My understanding is that you provide a callback function to Web2py, which is going to be called upon the acceptance

[web2py] Re: Adding permissions upon registration

2012-04-20 Thread Anthony
The new user id should be in form.vars.id as well as session.auth.user.id at that point. Is there a potential security problem here -- what would prevent someone from manually altering the first arg in the URL to any arbitrary group (e.g., admin)? Perhaps you should check the value of

[web2py] Re: css file changes don't effect webpage

2012-04-20 Thread Anthony
Your browser may be caching the CSS files (and other static files). Try clearing the cache. Anthony On Friday, April 20, 2012 4:31:50 PM UTC-4, BlueShadow wrote: Hi I include a css file called custum.css in the layout. I wanted to do a little adjustment to one page included in the

Re: [web2py] Re: Modifying auth_navbar

2012-04-20 Thread Simon Pickles
Thanks all On Apr 20, 2012 5:21 PM, pbreit pbreitenb...@gmail.com wrote: I ended up just coding my own navbar and sticking it in a function in models. Now that I look at it, I probably should have used URL()s. def user_bar(): action = '/user' if auth.user:

Re: [web2py] Re: Using static files in view confusion

2012-04-20 Thread Simon Pickles
Thanks Nice to see web2py has a helpful and lively community On Apr 20, 2012 2:24 PM, Simon Pickles sipick...@gmail.com wrote: Thanks I suspected my path was a little wrong. Still got the problem that the image border appears then whole thing vanishes. On Friday, 20 April 2012 08:19:23

[web2py] Country list

2012-04-20 Thread Simon Pickles
Does web2py have any built in support for country lists, the drop down list you use while entering an address? Thx

[web2py] Re: Adding permissions upon registration

2012-04-20 Thread cyan
The new user id should be in form.vars.id as well as session.auth.user.id at that point. Thanks Anthony. But is this documented anywhere in the manual or in any doc of Web2py? Otherwise, it is really difficult for users to figure this out without consulting experts like you. You second

[web2py] Re: Adding permissions upon registration

2012-04-20 Thread Anthony
On Friday, April 20, 2012 6:28:45 PM UTC-4, cyan wrote: The new user id should be in form.vars.id as well as session.auth.user.id at that point. Thanks Anthony. But is this documented anywhere in the manual or in any doc of Web2py? Otherwise, it is really difficult for users to figure

Re: [web2py] Country list

2012-04-20 Thread Marco Mansilla
Take a look on http://www.web2pyslices.com/slice/show/1378/ajax-live-search-auto-complete El Fri, 20 Apr 2012 23:28:15 +0100 Simon Pickles sipick...@gmail.com escribió: Does web2py have any built in support for country lists, the drop down list you use while entering an address? Thx

[web2py] Re: creating manual login form

2012-04-20 Thread Sanjeet Roy
Its come by default with web2py so why you want to use manual login can you explain ? You have to customize it according to your requirements. On Friday, April 20, 2012 3:53:41 PM UTC+5:30, Sonu Srivastava wrote: i create reagister form using auth_user but unable to create a manual login

[web2py] Conditional re-direction to enforce page sequence

2012-04-20 Thread mrtn
I have a 'registered' page/action which immediately follows 'register' page/action, and I would like to prevent someone who is currently on the 'register' page to jump to 'registered' page by directly changing the URL (even if all the fields including email etc are filled), instead of

[web2py] Re: LOAD and .load confusion.

2012-04-20 Thread Annet
Hi Anthony, Ough, it must have been my focus on the modal window that made me overlook this :-( Thanks for your reply. Kind regards, Annet. row is actually a DAL Rows object -- if you want a Row object, you have to select a specific row. Try: row=db(db.EventList.id

[web2py] Re: WARNING:web2py.cron:WEB2PY CRON: Disabled because no file locking still showing up

2012-04-20 Thread Chris
I figured out part of the problem. It's not win32con, it's win32file that's not importing. I'm disabling cron locally, and I posted a question on StackOverflow in case anyone wants to try and decipher this mystery (http://stackoverflow.com/questions/10256531/using-eclipse-with-pywin32). On

[web2py] Re: Conditional re-direction to enforce page sequence

2012-04-20 Thread Anthony
In other words, I use session.email to test whether user gets to 'registered' page after the register form is successfully processed or not. However, it seems that 'registered' function is called before 'register' form is fully processed (i.e. 'session.email' gets set), so that user