[web2py:20869] Re: temporary file management

2009-04-30 Thread Timmie
Has anyone already tried to delete temporary files after a user session ends? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py Web Framework group. To post to this group, send email to web2py@googlegroups.com

[web2py:20870] Re: zk-Direct

2009-04-30 Thread Jason Brower
I haven't looked at the site.(On a train.) Nor have I ever heard of them. But the design of a site, pictures, borders, content style, etc... of just about any site can be done in web2py. It's all a matter of the effort, and talent, that you throw into it. I for one, am no designer, so when

[web2py:20871] Re: Is this possible? How?

2009-04-30 Thread Jason Brower
Sounds like more of an html jquery thing. What are you wanting to do in particular? Regards, Jason On Wed, 2009-04-29 at 21:41 -0700, waTR wrote: I have a form with a submit button. However, I need web2py to read the form and perform an action not only when the person clicks on the submit

[web2py:20872] Re: Is this possible? How?

2009-04-30 Thread Michal Jursa
http://www.w3schools.com/jsref/jsref_onunload.asp Jason Brower wrote: Sounds like more of an html jquery thing. What are you wanting to do in particular? Regards, Jason On Wed, 2009-04-29 at 21:41 -0700, waTR wrote: I have a form with a submit button. However, I need web2py to read

[web2py:20873] Re: JSON and datetime

2009-04-30 Thread carlo
I had the same problem: my Json data were going into an Html form. I solved simply converting my date object into string with str() before dumping Json data: I do not know if this is suitable for your case carlo On 30 Apr, 06:28, weheh richard_gor...@verizon.net wrote: I need to run a

[web2py:20874] Re: Is this possible? How?

2009-04-30 Thread Jason Brower
Look into jquery, it'll be easy. Have you used that before? On Thu, 2009-04-30 at 15:06 +0200, Michal Jursa wrote: http://www.w3schools.com/jsref/jsref_onunload.asp Jason Brower wrote: Sounds like more of an html jquery thing. What are you wanting to do in particular? Regards,

[web2py:20875] Customized forms

2009-04-30 Thread Dunsun
Hi, Where can I find bill's code (classes like Resource, Record, ...) for making customized forms. Is it in web2py core already ? Is there any other way how to make my customized form in a view using standard html tags and than validate data (using model's validation constraints or

[web2py:20877] Re: Can I state an email address in the arguments or variables of an URL?

2009-04-30 Thread mdipierro
you can do http://domain.tld/a/c/f?email=emailaddress or http://domain.tld/a/c/f/codedemailaddress where codedemailaddress = base64.b16encode(emailaddress) md5 would not be invertible. b16 is what you want. On Apr 30, 5:45 am, Carl carl.ro...@gmail.com wrote: In Web2Py I've generated a

[web2py:20878] Re: Customized forms

2009-04-30 Thread mdipierro
https://mdp.cti.depaul.edu/AlterEgo/default/show/205 On 30 Apr, 03:42, Dunsun dun...@gmail.com wrote: Hi, Where can I find bill's code (classes like Resource, Record, ...) for making customized forms. Is it in web2py core already ? Is there any other way how to make my customized form in

[web2py:20879] Re: temporary file management

2009-04-30 Thread mdipierro
which temporary files? On 30 Apr, 05:10, Timmie timmichel...@gmx-topmail.de wrote: Has anyone already tried to delete temporary files after a user session ends? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[web2py:20880] Re: rpx

2009-04-30 Thread Joe Barnhart
I dunno. I don't like dependencies on companies who aren't forthcoming about costs and such. Here's a quote from their FAQ: How much does it cost? When initial development and ongoing operation are factored into an ROI calculation, you will find that RPX Plus and RPX Professional are very

[web2py:20882] Re: Is this possible? How?

2009-04-30 Thread waTR
Well, this is something that is not something that should require javascript. I am just looking to validate the page upon a link being clicked. Lets say I have 3 menu items at the top of a page: Home, Add New, and Modify Current. Now lets say I am in the Modify Current page. I have made a few

[web2py:20883] duplicate records not throwing an exception

2009-04-30 Thread Carl
I have this in my model: db.py: db.define_table('user', SQLField('email', 'string', length=320), SQLField('hash','string')) db.user.email.requires=[IS_NOT_EMPTY(),IS_LOWER(),IS_NOT_IN_DB(db, db.user.email)] In my controller: default.py: try: uid =

[web2py:20884] Re: Can I state an email address in the arguments or variables of an URL?

2009-04-30 Thread Carl
thanks M thanks for putting me on to b16encode - it'll save me some coding as I won't need to store the md5/sha for a later lookup. Carl On Apr 30, 3:06 pm, mdipierro mdipie...@cs.depaul.edu wrote: you can do http://domain.tld/a/c/f?email=emailaddress or

[web2py:20886] Re: Is this possible? How?

2009-04-30 Thread waTR
Alternatively to the second point, lets say I want to have the submit button outside the FORM element. How do I ensure web2py knows that that submit button should submit the data in the FORM element for processing? --~--~-~--~~~---~--~~ You received this message

[web2py:20887] Re: duplicate records not throwing an exception

2009-04-30 Thread mdipierro
This db.user.email.requires=[IS_NOT_EMPTY(),IS_LOWER(),IS_NOT_IN_DB (db,db.user.email)] is only enforced at the level for form validation. If you want the database to enforce integrity db.define_table('user', SQLField('email', 'string', length=320, unique=True),

[web2py:20888] Re: duplicate records not throwing an exception

2009-04-30 Thread Carl
thanks M / very speedy concise reply. p 138/139 explains it all - sorry to have missed this detail. On Apr 30, 6:45 pm, mdipierro mdipie...@cs.depaul.edu wrote: This db.user.email.requires=[IS_NOT_EMPTY(),IS_LOWER(),IS_NOT_IN_DB (db,db.user.email)] is only enforced at the level for form

[web2py:20889] Re: zk-Direct

2009-04-30 Thread Timbo
Take a look at ExtJS or Smartclient. They have many of the same capabilities but are Javascript based rather than Java based. Most experienced web-devs will tell you, just learn Javascript, it's not that hard, and you'll be glad you did. Most studies show that the speed gains of GWT-style

[web2py:20890] LDAP anybody?

2009-04-30 Thread mdipierro
It should be easy to include LDAP support in web2py. If you are familiar with Auth in tools, something like this should work: based on http://www.packtpub.com/article/installing-and-configuring-the-python-ldap-library-and-binding-to-an-ldap-directory import ldap, ldap.sasl import sys, getpass

[web2py:20891] Re: Is this possible? How?

2009-04-30 Thread Michal Jursa
Well, you will definitely need javascript... :) As i linked you before http://www.w3schools.com/jsref/jsref_onunload.asp that's the very begining of your solution. M. waTR napsal(a): Well, this is something that is not something that should require javascript. I am just looking to validate

[web2py:20892] IDE with debugging support for web2py

2009-04-30 Thread David Zejda
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Today I evaluated several Python IDEs, with results: Idle for me, debugging does not work Eric4 debugging does not work, breakpoints in models and controllers are silently passed over Netbeans/Python debugging does not work; debugging session

[web2py:20893] Re: LDAP anybody?

2009-04-30 Thread Fran
On Apr 30, 7:30 pm, mdipierro mdipie...@cs.depaul.edu wrote: Can you help me test it and fill the blanks? I can have a go at testing, yes :) Can do it against Active Directory... OpenLDAP too if I get time :) I've copy/paste/cleaned-up formatting, installed python-ldap corrected a couple of

[web2py:20894] Re: LDAP anybody?

2009-04-30 Thread mdipierro
{{=form}} does not work? Is this because of ldap? Massimo On Apr 30, 4:12 pm, Fran francisb...@googlemail.com wrote: On Apr 30, 7:30 pm, mdipierro mdipie...@cs.depaul.edu wrote: Can you help me test it and fill the blanks? I can have a go at testing, yes :) Can do it against Active

[web2py:20895] Re: LDAP anybody?

2009-04-30 Thread Fran
On Apr 30, 10:30 pm, mdipierro mdipie...@cs.depaul.edu wrote: {{=form}} does not work? Is this because of ldap? I doubt because of LDAP but something in the construction of the class.. Am trying to replicate it in a simple test controller it works fine there. My modification sent by email

[web2py:20898] Re: LDAP anybody?

2009-04-30 Thread mdipierro
yes I guess form=SQLFORM('username:',INPUT(_name='username'), 'password:',INPUT (_name='password',_type='password'), INPUT(_type='submit',_value='login')) should have been form=FORM('username:',INPUT(_name='username'),

[web2py:20901] Re: Something Stupid...

2009-04-30 Thread Yarko Tymciurak
Not at all; happy to... In my experience, many things seem obvious, once you see them. I love the saying - the only stupid question is the one you don't ask :-) Feel free to ask anything! On Thu, Apr 30, 2009 at 6:29 PM, JohnMc maruadventu...@gmail.com wrote: Yep, something stupid. Should

[web2py:20902] Re: IDE with debugging support for web2py

2009-04-30 Thread DenesL
If you are more interested in the debugging than on the IDE part then you might want to include winpdb (.org) in your tests. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py Web Framework group. To post to

[web2py:20903] Re: web2py appliance 1.0.3 (web2pyapp.i686-1.0.3.vmx.tar.gz)

2009-04-30 Thread mdipierro
Thanks. Perhaps you should post it on the vmware appliances marketplace. Massimo On Apr 30, 6:51 pm, Boris Manojlovic boris.manojlo...@gmail.com wrote: Hi All, new version of appliance is uploaded to sitehttp://bojanka.net/web2py/ what is new: apache2 with mod_wsgi, SSL with self signed

[web2py:20904] Re: Something Stupid...

2009-04-30 Thread mdipierro
Not at all stupid since that is valid Django notation. On Apr 30, 7:13 pm, Yarko Tymciurak yark...@gmail.com wrote: Not at all; happy to... In my experience, many things seem obvious, once you see them. I love the saying - the only stupid question is the one you don't ask :-) Feel free to

[web2py:20907] Re: TABLE attributes

2009-04-30 Thread weheh
While I'm at it, on p. 126 of MDP's doc at the top is a very sweet statement that I will repeat here: TABLE(*(TR(*rows) for rows in table). Now there are two modifications I would like to make to that statement, but don't know how to do it. One of them applies to the subject of this question,

[web2py:20908] Re: TABLE attributes

2009-04-30 Thread Wes James
On Thu, Apr 30, 2009 at 9:20 PM, Wes James compte...@gmail.com wrote: On Thu, Apr 30, 2009 at 8:46 PM, weheh richard_gor...@verizon.net wrote: Where can I find out what table attributes I can set from within a controller for the TABLE helper. Same goes for the TR, TH, and TD helpers. my

[web2py:20909] Re: TABLE attributes

2009-04-30 Thread Wes James
TABLE(TR(TD('text', _class='tdClass'), _class='trClass'))) _class being the CSS .class_selector in your style sheet _id being the CSS #id_selector in yoru style sheet, ect _attribute will put in any normal html attribute. On Thu, Apr 30, 2009 at 9:22 PM, weheh richard_gor...@verizon.net

[web2py:20910] Re: TABLE attributes

2009-04-30 Thread weheh
Thanks, Wes. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py Web Framework group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to

[web2py:20911] TABLE question

2009-04-30 Thread weheh
From doc: table=[['a','b'],['c','d']] print TABLE(*[TR(*rows) for rows in table]) I want to change the color of the cells in the table according to something like this, but I don't know how to say it. This is the best I can come up with. Can someone offer a suggestion how to do this?

[web2py:20912] Re: TABLE question

2009-04-30 Thread mdipierro
TABLE(*[TR(*[TD(x,_style='color:%s'%colors[i][j]) for j,x in enumerate (row)]) for i,row in enumerate(table)]) perhaps there is a better way. On 30 Apr, 23:33, weheh richard_gor...@verizon.net wrote: From doc: table=[['a','b'],['c','d']] print TABLE(*[TR(*rows) for rows in table]) I want