[web2py:23168] Re: windows service problem in 1.63 (source)
see the docstring in gluon.Winservice it needs the win32 lib, to be installed seperately. --- Original Message --- From: mdipierro mdipie...@cs.depaul.edu To: web2py Web Framework web2py@googlegroups.com Sent: 03/06/2009, 06:37:07 Subject: [web2py:23165] Re: windows service problem in 1.63 (source) I have no idea. You may have to help me debug this. If you start python from the web2py folder, can you do import gluon.winservice? If you start python from the gluon folder can you do import winservice? Can you edit main and at the bottom insert print os.getcwd() When you start web2py as service, what is the output? Is it your web2py folder? Massimo On Jun 2, 10:33 pm, Philip Kilner phil.kil...@gmail.com wrote: Hi Massimo, mdipierro wrote: running from source or binary? Source. -- Regards, PhilK 'work as if you lived in the early days of a better nation' - alasdair gray --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23169] why id field is displaying in the form?
Hi , I have created a table for user. to update the table i have written the code def editprofile(): user = db(db.users.id==session.userid).select()[0] form = SQLFORM(db.users,user,fields=['firstname','lastname']) i found id field is showing in the browser though i have selected ['firstname','lastname']. how to avoid this user.id from the form. output in browser: Id: 1 First Name: durga Last Name: prasad thanks durga --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23170] Re: why id field is displaying in the form?
Hi. There's a parameter to SQLFORM, showid which is True by default. Just set it to False. Like: form = SQLFORM(db.users,user,fields=['firstname','lastname'], showid = False) regards mmlado On Wednesday 03 June 2009 08:32:16 durga wrote: Hi , I have created a table for user. to update the table i have written the code def editprofile(): user = db(db.users.id==session.userid).select()[0] form = SQLFORM(db.users,user,fields=['firstname','lastname']) i found id field is showing in the browser though i have selected ['firstname','lastname']. how to avoid this user.id from the form. output in browser: Id:1 First Name:durga Last Name: prasad thanks durga --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23171] Re: why id field is displaying in the form?
thanks mmlado :) On Wed, Jun 3, 2009 at 12:21 PM, Mladen Milankovic mml...@gmail.com wrote: Hi. There's a parameter to SQLFORM, showid which is True by default. Just set it to False. Like: form = SQLFORM(db.users,user,fields=['firstname','lastname'], showid = False) regards mmlado On Wednesday 03 June 2009 08:32:16 durga wrote: Hi , I have created a table for user. to update the table i have written the code def editprofile(): user = db(db.users.id==session.userid).select()[0] form = SQLFORM(db.users,user,fields=['firstname','lastname']) i found id field is showing in the browser though i have selected ['firstname','lastname']. how to avoid this user.id from the form. output in browser: Id:1 First Name:durga Last Name: prasad thanks durga --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23172] Re: web2py 1.63.3 is out with some bug fixes
On Jun3, 11:51am, mdipierro mdipie...@cs.depaul.edu wrote: web2py 1.63.3 is out with some bug fixes The fix to sql.py in revision 985 has a typo. And it is insufficient anyway because the /path-with-non-ascii/sql.log won't be create correctly. After some consideration, I make further adjustment to sql.py, and test it under Windows and sqlite. I will send you the code in private mail. --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23173] Re: more slides - must read
On Page 68 it has 'SQLField is a query' Also I believe IS_IN_DB is missing from that long list of validators on page 106 On Jun 2, 11:52 pm, mdipierro mdipie...@cs.depaul.edu wrote: http://www.web2py.com/examples/static/cookbook2.pdf --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23174] Re: Still not luck with cross references in input forms.
Using a View over the join might help. Then both fields would be available. On Jun 2, 10:28 am, mdipierro mdipie...@cs.depaul.edu wrote: This cannot be done with the IS_IN_DB validator. You must create your own validator. Massimo On Jun 1, 3:46 pm, Offray Vladimir Luna Cárdenas offray.l...@javeriana.edu.co wrote: Hi all, I send a mail this morning: http://groups.google.com/group/web2py/browse_thread/thread/a439333f2d... *I'm still stuck with the same problem. Any hint? Thanks, Offray * * --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23175] Re: more slides - must read
On page 24, why does it include the '.html' ? In your original cookbook, there is no '.html' here: A URL like http://hostname/cookbook/default/index/bla/bla/bla?variable=value will result in a call to function index() in controller default.py in applicaiton cookbook. “bla”, “bla” and “bla” will be passed as request.args[0:3] while “value” will be stored in request.vars.variable. On Jun 2, 11:52 pm, mdipierro mdipie...@cs.depaul.edu wrote: http://www.web2py.com/examples/static/cookbook2.pdf --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23176] Re: should login redirect to index function after login?
Thank you Massimo, I will do in that way. Kind Regards Salva On 3 jun, 06:28, mdipierro mdipie...@cs.depaul.edu wrote: This is a problem only if login is the entry point of your app and it should not be. If you always get to login from a redirection you should not have this problem. Massimo On Jun 2, 6:04 pm, salbefe salb...@gmail.com wrote: Annet, I found the problem but not the solution The login form that exposes http:///[app]/default/user/login has a hidden field called _next. This field at the beginning is empty. Because is empty web2py should redirect to auth.settings.login_next=URL (r=request, c='default', f='index'). After a successfully login the _next field has the following value: http://127.0.0.1:8000/prueba/default/user/login; I can't understand why it has that value if I didn't set it and why I'm not get redirected to URL(r=request, c='default', f='index') the first time that _next was empty. I'm still thinking that is a bug on the last version Kind regards Salva --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23177] Re: web2py solution for debbuging with FirePHP/Firebug
Unfortunately I have no expirience in screencasting, and my English is buggy. Debugging/logging tool is very useful thing for web development. I really like this one in Symfony framework (it is included to Symfony and made with JavaScript, screenshot - http://www.symfony-project.org/blog/2008/08/27/new-in-symfony-1-2-customize-the-web-debug-toolbar). For Django there is third-party module Django Debug Toolbar (http:// rob.cogit8.org/blog/2008/Sep/19/introducing-django-debug-toolbar/). I think the most valuable things that this type of tools can show for developer are: accessible report to server-side logs pre request, info about queries executed during request and maybe some cache stats and variables list. Firebug (http://getfirebug.com/) is the most popular Firefox extension for web developent, very handy and well-built. It implements JavaScript console, DOM traversing, JS-debugging and lot more. FirePHP (http://www.firephp.org/) is another extension that uses Firebug interface and resources and therefore requires Firebug for work. You can see demo here (Firefox with both extensions required, open and enable Firebug console to see output) - http://www.firephp.org/Examples/PHPArchitect/. In two words, FirePHP allows you to output log messages that you passed from PHP code, displays executed db queries, stack trace of exceptions, etc. It requires of using PHP class FirePHPCore/ FirePHP.class.php. Firepy (documentation and screenshot - http://code.google.com/p/firepy/wiki/Documentation) is the implementation for Python of the server-side FirePHP library, but it uses the same Firefox extension (FirePHP). And it includes Middleware for using with Django, but you can easily adopt it for any Python framework. How-to for using FirePHP with web2py: 1) Open Firefox, install Firebug, FirePHP addons: https://addons.mozilla.org/ru/firefox/addon/1843, https://addons.mozilla.org/en-US/firefox/addon/6149. Restart browser. 2) Download http://www.box.net/shared/dtm0dhgze9 and extract 'firepy' folder. 3) Open directory with your current web2py application, and copy 'firepy' folder into 'modules' directory of application. 4) Edit first file in 'models' folder in your application (via web- or desktop-editor). Place these lines in top of the file: import sys sys.path += ['applications/%s/modules' % request.application] from firepy.web2py import start_firepy start_firepy(globals()) 5) Edit some controller file and add this line to some controller function: logging.debug([1, {asdf:(123, 2, 3)}, 3]) 6) Click on bug icon on bottom status line of Firefox. This will bring up panel. Check the checkbox Console and click Apply settings. Ensure that tab Console is showing. 7) Navigate from browser to this application/controller/function. And now you should see your logging output in console ([1, {asdf:(123, 2, 3)}, 3]). If controller executes some db queries, then console will contain some info about them (sample screenshot http://firepy.googlecode.com/files/firepy.png). This is very interesting to know raw SQL-queries (especially for eduction, and for finding redundant or duplicating queries). Notice: Logs shows only if you are autorized in admin application. This check prevents from showing debugging logs for non- administrators. One disadvantage of this way is that it requires Firefox. But if you open your site in other browsers no errors will occur (logging info passes via HTTP headers). One possible way to support other browsers is to use Firebug Lite (pure JS implementation of extension) for them (http://getfirebug.com/lite.html) and modify or extend its code for adding FirePHP functionality. BTW, web2py is great, I really was charmed with it. It is most pytonic web framework and more flexible than most of them (I think it beats Django as well). Such debugging possibility will be a nice addition for it. On 3 июн, 08:10, mdipierro mdipie...@cs.depaul.edu wrote: I am new to this. I can tell this is very usefull but I do not know how to make it work. Any chance you can make a short video showing it (perhaps using Jing)? Do you feel it should be included in web2py? How? Massimo On Jun 2, 9:04 am, sgtpep danil.m...@gmail.com wrote: Source files were updated in archive. Some issues were fixed. And also logs shows in console now if you are authorized in admin application. I forgot to mention what features of frepy are ready for working with web2py: - server-side logging using logging module - db query logging (!) with timing and multiple databases support Custom exception handler are not working yet because web2py owerrides it with own one. On 2 июн, 10:02, sgtpep danil.m...@gmail.com wrote: Hi, web2pyers! Everyone knows Firebug, the perfect webdeveloper tool. There is also FirePHP addon for using Firebug facilities for server side debugging/ logging. And recently I found firepy (http://code.google.com/p/ firepy/). It makes available to use FirePHP with Django. I have added
[web2py:23178] Re: web2py solution for debbuging with FirePHP/Firebug
Really cool! Congratulations for this work and exaplanation! 2009/6/3 sgtpep danil.m...@gmail.com: Unfortunately I have no expirience in screencasting, and my English is buggy. Debugging/logging tool is very useful thing for web development. I really like this one in Symfony framework (it is included to Symfony and made with JavaScript, screenshot - http://www.symfony-project.org/blog/2008/08/27/new-in-symfony-1-2-customize-the-web-debug-toolbar). For Django there is third-party module Django Debug Toolbar (http:// rob.cogit8.org/blog/2008/Sep/19/introducing-django-debug-toolbar/). I think the most valuable things that this type of tools can show for developer are: accessible report to server-side logs pre request, info about queries executed during request and maybe some cache stats and variables list. Firebug (http://getfirebug.com/) is the most popular Firefox extension for web developent, very handy and well-built. It implements JavaScript console, DOM traversing, JS-debugging and lot more. FirePHP (http://www.firephp.org/) is another extension that uses Firebug interface and resources and therefore requires Firebug for work. You can see demo here (Firefox with both extensions required, open and enable Firebug console to see output) - http://www.firephp.org/Examples/PHPArchitect/. In two words, FirePHP allows you to output log messages that you passed from PHP code, displays executed db queries, stack trace of exceptions, etc. It requires of using PHP class FirePHPCore/ FirePHP.class.php. Firepy (documentation and screenshot - http://code.google.com/p/firepy/wiki/Documentation) is the implementation for Python of the server-side FirePHP library, but it uses the same Firefox extension (FirePHP). And it includes Middleware for using with Django, but you can easily adopt it for any Python framework. How-to for using FirePHP with web2py: 1) Open Firefox, install Firebug, FirePHP addons: https://addons.mozilla.org/ru/firefox/addon/1843, https://addons.mozilla.org/en-US/firefox/addon/6149. Restart browser. 2) Download http://www.box.net/shared/dtm0dhgze9 and extract 'firepy' folder. 3) Open directory with your current web2py application, and copy 'firepy' folder into 'modules' directory of application. 4) Edit first file in 'models' folder in your application (via web- or desktop-editor). Place these lines in top of the file: import sys sys.path += ['applications/%s/modules' % request.application] from firepy.web2py import start_firepy start_firepy(globals()) 5) Edit some controller file and add this line to some controller function: logging.debug([1, {asdf:(123, 2, 3)}, 3]) 6) Click on bug icon on bottom status line of Firefox. This will bring up panel. Check the checkbox Console and click Apply settings. Ensure that tab Console is showing. 7) Navigate from browser to this application/controller/function. And now you should see your logging output in console ([1, {asdf:(123, 2, 3)}, 3]). If controller executes some db queries, then console will contain some info about them (sample screenshot http://firepy.googlecode.com/files/firepy.png). This is very interesting to know raw SQL-queries (especially for eduction, and for finding redundant or duplicating queries). Notice: Logs shows only if you are autorized in admin application. This check prevents from showing debugging logs for non- administrators. One disadvantage of this way is that it requires Firefox. But if you open your site in other browsers no errors will occur (logging info passes via HTTP headers). One possible way to support other browsers is to use Firebug Lite (pure JS implementation of extension) for them (http://getfirebug.com/lite.html) and modify or extend its code for adding FirePHP functionality. BTW, web2py is great, I really was charmed with it. It is most pytonic web framework and more flexible than most of them (I think it beats Django as well). Such debugging possibility will be a nice addition for it. -- Álvaro Justen Peta5 - Telecomunicações e Software Livre 21 3021-6001 / 9898-0141 http://www.peta5.com.br/ --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23179] inserting values in to db fields which are not there in SQLFORM
hi, i would like to insert a values to a table through form where user can enter fewer fields. for example i have table 'company' which has fields userid,compname,designation,location. form = SQLFORM(db(db.company),fields= ['compname','designation','location']) userid is stored in session as session.userid in this case user can enter 3 fields through form but i want userid also to be updated at the same time in to company table. can some one help me how to update all 4 fields at a time. thanks durga --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23180] Re: inserting values in to db fields which are not there in SQLFORM
Hi. Do something like this: form = SQLFORM(db(db.company),fields = ['compname','designation','location']) if form.accepts(request.vars, session): db(db.company.id == form.vars.id).update(userid = session.userid) # do something else like redirect if needed The id of the new record can be found in form.vars.id after it was inserted. This way you'll update the new record after it was inserted. regards mmlado On Wednesday 03 June 2009 13:42:34 durga wrote: hi, i would like to insert a values to a table through form where user can enter fewer fields. for example i have table 'company' which has fields userid,compname,designation,location. form = SQLFORM(db(db.company),fields= ['compname','designation','location']) userid is stored in session as session.userid in this case user can enter 3 fields through form but i want userid also to be updated at the same time in to company table. can some one help me how to update all 4 fields at a time. thanks durga --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23181] Re: more slides - must read
Page 84: Example: db(db.product.id10).update(product=db.product.price+20) Should be (): db(db.product.id10).update(db.product.price=db.product.price+20) On Jun 3, 5:52 am, mdipierro mdipie...@cs.depaul.edu wrote: http://www.web2py.com/examples/static/cookbook2.pdf --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23182] Re: more slides - must read
no. it is correct as it is. On Jun 3, 7:41 am, notabene niels...@gmail.com wrote: Page 84: Example: db(db.product.id10).update(product=db.product.price+20) Should be (): db(db.product.id10).update(db.product.price=db.product.price+20) On Jun 3, 5:52 am, mdipierro mdipie...@cs.depaul.edu wrote: http://www.web2py.com/examples/static/cookbook2.pdf --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23186] Re: more slides - must read
On page 54, the line curl -u username:password http://hostanme.../function ^^ should read curl -u username:password http://hostname.../function On Wed, Jun 3, 2009 at 11:52 AM, mdipierro mdipie...@cs.depaul.edu wrote: http://www.web2py.com/examples/static/cookbook2.pdf -- Alexei Vinidiktov --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23187] Re: more slides - must read
On page 55 the wording is not clear. Or is it just me? Uploads and authentication Uploaded files are served by the “download” action. To required authentication and authorization in order to download any file: db.image.file.authorize = lambda record: True where the lambda is a function hat, give the record, decides whether the user is or not authorized to download the file stored in the record. Especially: To required authentication and authorization in order to download any file: and where the lambda is a function hat, give the record, ^ ^ decides whether the user ... On Wed, Jun 3, 2009 at 11:52 AM, mdipierro mdipie...@cs.depaul.edu wrote: http://www.web2py.com/examples/static/cookbook2.pdf -- Alexei Vinidiktov --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23188] Re: more slides - must read
Ouch! Yes there is a typo, should be db(db.product.id10).update(price=db.product.price+20) Massimo On Jun 3, 7:41 am, notabene niels...@gmail.com wrote: Page 84: Example: db(db.product.id10).update(product=db.product.price+20) Should be (): db(db.product.id10).update(db.product.price=db.product.price+20) On Jun 3, 5:52 am, mdipierro mdipie...@cs.depaul.edu wrote: http://www.web2py.com/examples/static/cookbook2.pdf --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23189] Re: web2py solution for debbuging with FirePHP/Firebug
You are now officially our firebug expert! Massimo On Jun 3, 5:19 am, sgtpep danil.m...@gmail.com wrote: Unfortunately I have no expirience in screencasting, and my English is buggy. Debugging/logging tool is very useful thing for web development. I really like this one in Symfony framework (it is included to Symfony and made with JavaScript, screenshot -http://www.symfony-project.org/blog/2008/08/27/new-in-symfony-1-2-cus...). For Django there is third-party module Django Debug Toolbar (http:// rob.cogit8.org/blog/2008/Sep/19/introducing-django-debug-toolbar/). I think the most valuable things that this type of tools can show for developer are: accessible report to server-side logs pre request, info about queries executed during request and maybe some cache stats and variables list. Firebug (http://getfirebug.com/) is the most popular Firefox extension for web developent, very handy and well-built. It implements JavaScript console, DOM traversing, JS-debugging and lot more. FirePHP (http://www.firephp.org/) is another extension that uses Firebug interface and resources and therefore requires Firebug for work. You can see demo here (Firefox with both extensions required, open and enable Firebug console to see output) -http://www.firephp.org/Examples/PHPArchitect/. In two words, FirePHP allows you to output log messages that you passed from PHP code, displays executed db queries, stack trace of exceptions, etc. It requires of using PHP class FirePHPCore/ FirePHP.class.php. Firepy (documentation and screenshot -http://code.google.com/p/firepy/wiki/Documentation) is the implementation for Python of the server-side FirePHP library, but it uses the same Firefox extension (FirePHP). And it includes Middleware for using with Django, but you can easily adopt it for any Python framework. How-to for using FirePHP with web2py: 1) Open Firefox, install Firebug, FirePHP addons:https://addons.mozilla.org/ru/firefox/addon/1843,https://addons.mozilla.org/en-US/firefox/addon/6149. Restart browser. 2) Downloadhttp://www.box.net/shared/dtm0dhgze9and extract 'firepy' folder. 3) Open directory with your current web2py application, and copy 'firepy' folder into 'modules' directory of application. 4) Edit first file in 'models' folder in your application (via web- or desktop-editor). Place these lines in top of the file: import sys sys.path += ['applications/%s/modules' % request.application] from firepy.web2py import start_firepy start_firepy(globals()) 5) Edit some controller file and add this line to some controller function: logging.debug([1, {asdf:(123, 2, 3)}, 3]) 6) Click on bug icon on bottom status line of Firefox. This will bring up panel. Check the checkbox Console and click Apply settings. Ensure that tab Console is showing. 7) Navigate from browser to this application/controller/function. And now you should see your logging output in console ([1, {asdf:(123, 2, 3)}, 3]). If controller executes some db queries, then console will contain some info about them (sample screenshothttp://firepy.googlecode.com/files/firepy.png). This is very interesting to know raw SQL-queries (especially for eduction, and for finding redundant or duplicating queries). Notice: Logs shows only if you are autorized in admin application. This check prevents from showing debugging logs for non- administrators. One disadvantage of this way is that it requires Firefox. But if you open your site in other browsers no errors will occur (logging info passes via HTTP headers). One possible way to support other browsers is to use Firebug Lite (pure JS implementation of extension) for them (http://getfirebug.com/lite.html) and modify or extend its code for adding FirePHP functionality. BTW, web2py is great, I really was charmed with it. It is most pytonic web framework and more flexible than most of them (I think it beats Django as well). Such debugging possibility will be a nice addition for it. On 3 июн, 08:10, mdipierro mdipie...@cs.depaul.edu wrote: I am new to this. I can tell this is very usefull but I do not know how to make it work. Any chance you can make a short video showing it (perhaps using Jing)? Do you feel it should be included in web2py? How? Massimo On Jun 2, 9:04 am, sgtpep danil.m...@gmail.com wrote: Source files were updated in archive. Some issues were fixed. And also logs shows in console now if you are authorized in admin application. I forgot to mention what features of frepy are ready for working with web2py: - server-side logging using logging module - db query logging (!) with timing and multiple databases support Custom exception handler are not working yet because web2py owerrides it with own one. On 2 июн, 10:02, sgtpep danil.m...@gmail.com wrote: Hi, web2pyers! Everyone knows Firebug, the perfect webdeveloper tool. There is also FirePHP addon for using Firebug facilities for
[web2py:23191] Re: more slides - must read
Other posters caught some of the same items I did, so I won't repeat. But on slide 61 I think there is an unintended syntactical reference in the sentence -- First bullet. My comment is based on Web2Py manual. As I recall there are some helpers not derived from DIV. So unless that has changed since say 1.6.1, the first bullet is an error?: All helpers are derived from DIV have the same syntax (original) Would actually imply -- All helpers are derived from DIV, have the same syntax (modified). Well over half your audience would impute the second form above. By inference they would incorrectly believe that all helpers are a DIV class which is not the case. Better reading -- All helpers derived from the DIV Class have the same syntax Then give the short list of those helpers not derived from Class DIV. On Jun 2, 10:52 pm, mdipierro mdipie...@cs.depaul.edu wrote: http://www.web2py.com/examples/static/cookbook2.pdf --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23193] Re: more slides - must read
Hi On 3 Giu, 05:52, mdipierro mdipie...@cs.depaul.edu wrote: http://www.web2py.com/examples/static/cookbook2.pdf It's possible to have the document with white background? It's for printing purpose. Thanks --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23194] Re: inserting values in to db fields which are not there in SQLFORM
thanks lado its working :) On Wed, Jun 3, 2009 at 5:38 PM, Mladen Milankovic mml...@gmail.com wrote: Hi. Do something like this: form = SQLFORM(db(db.company),fields = ['compname','designation','location']) if form.accepts(request.vars, session): db(db.company.id == form.vars.id).update(userid = session.userid) # do something else like redirect if needed The id of the new record can be found in form.vars.id after it was inserted. This way you'll update the new record after it was inserted. regards mmlado On Wednesday 03 June 2009 13:42:34 durga wrote: hi, i would like to insert a values to a table through form where user can enter fewer fields. for example i have table 'company' which has fields userid,compname,designation,location. form = SQLFORM(db(db.company),fields= ['compname','designation','location']) userid is stored in session as session.userid in this case user can enter 3 fields through form but i want userid also to be updated at the same time in to company table. can some one help me how to update all 4 fields at a time. thanks durga --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23192] Re: more slides - must read
On page 131, Single Server Tricks I think there's an error in the first bullet point User mod_wsgi instead of wsgiserver. Should it be Use ... ? And one thing I'm not sure about. Should all the words in the headings be capitalized? For example, should Single server tricks be Single Server Tricks? On Wed, Jun 3, 2009 at 11:52 AM, mdipierro mdipie...@cs.depaul.edu wrote: http://www.web2py.com/examples/static/cookbook2.pdf -- Alexei Vinidiktov --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23196] Re: more slides - must read
yes, it is messy. I wrote it late at night. Fixing it. thanks. On Jun 3, 8:57 am, Alexei Vinidiktov alexei.vinidik...@gmail.com wrote: On page 55 the wording is not clear. Or is it just me? Uploads and authentication Uploaded files are served by the “download” action. To required authentication and authorization in order to download any file: db.image.file.authorize = lambda record: True where the lambda is a function hat, give the record, decides whether the user is or not authorized to download the file stored in the record. Especially: To required authentication and authorization in order to download any file: and where the lambda is a function hat, give the record, ^ ^ decides whether the user ... On Wed, Jun 3, 2009 at 11:52 AM, mdipierro mdipie...@cs.depaul.edu wrote: http://www.web2py.com/examples/static/cookbook2.pdf -- Alexei Vinidiktov --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23197] Re: date field error
Hi. You need to define the type of the field, the IS_DATE is only a validator that will check the values before insert/update. Use: db.define_table('users', SQLField('dob', 'date',requires=IS_DATE()), regards mmlado On Wed, Jun 3, 2009 at 4:36 PM, durga durgaprasadmoga...@gmail.com wrote: Hi, i have defined a date field in my table. db.define_table('users', SQLField('dob',requires=IS_DATE()), when i click on db.users in database administration. its throwing below error. Error traceback 1.2.3.4.5.6.7.8.9.10.11.12. Traceback (most recent call last): File C:\Apps\web2py_src\gluon\restricted.py, line 98, in restricted exec ccode in environment File C:/Apps/web2py_src/applications/ whosay/views/appadmin.html, line 112, in module File C:\Apps \web2py_src\gluon\sqlhtml.py, line 645, in __init__ r = str (field.formatter(r)) File C:\Apps\web2py_src\gluon\sql.py, line 1658, in formatter value = item.formatter(value) File C:\Apps \web2py_src\gluon\validators.py, line 1409, in formatter return value.strftime(str(self.format))AttributeError: 'str' object has no attribute 'strftime' thanks durga --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23198] Re: date field error
thanks for your immediate response On Jun 3, 7:42 pm, Mladen Milankovic mml...@gmail.com wrote: Hi. You need to define the type of the field, the IS_DATE is only a validator that will check the values before insert/update. Use: db.define_table('users', SQLField('dob', 'date',requires=IS_DATE()), regards mmlado On Wed, Jun 3, 2009 at 4:36 PM, durga durgaprasadmoga...@gmail.com wrote: Hi, i have defined a date field in my table. db.define_table('users', SQLField('dob',requires=IS_DATE()), when i click on db.users in database administration. its throwing below error. Error traceback 1.2.3.4.5.6.7.8.9.10.11.12. Traceback (most recent call last): File C:\Apps\web2py_src\gluon\restricted.py, line 98, in restricted exec ccode in environment File C:/Apps/web2py_src/applications/ whosay/views/appadmin.html, line 112, in module File C:\Apps \web2py_src\gluon\sqlhtml.py, line 645, in __init__ r = str (field.formatter(r)) File C:\Apps\web2py_src\gluon\sql.py, line 1658, in formatter value = item.formatter(value) File C:\Apps \web2py_src\gluon\validators.py, line 1409, in formatter return value.strftime(str(self.format))AttributeError: 'str' object has no attribute 'strftime' thanks durga --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23199] Re: more slides - must read
The document appears to be blank except for the first page and the bullets now. On Jun 3, 9:39 am, mdipierro mdipie...@cs.depaul.edu wrote: yes, it is messy. I wrote it late at night. Fixing it. thanks. --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23200] Re: more slides - must read
Posted a new one with some new pages. http://www.web2py.com/examples/static/cookbook2.pdf It would be great if somebody would post a link on reddit, digg, etc. and if people were to vote it up. I am not going to do it because I am chickening out. Massimo On Jun 3, 9:39 am, mdipierro mdipie...@cs.depaul.edu wrote: yes, it is messy. I wrote it late at night. Fixing it. thanks. On Jun 3, 8:57 am, Alexei Vinidiktov alexei.vinidik...@gmail.com wrote: On page 55 the wording is not clear. Or is it just me? Uploads and authentication Uploaded files are served by the “download” action. To required authentication and authorization in order to download any file: db.image.file.authorize = lambda record: True where the lambda is a function hat, give the record, decides whether the user is or not authorized to download the file stored in the record. Especially: To required authentication and authorization in order to download any file: and where the lambda is a function hat, give the record, ^ ^ decides whether the user ... On Wed, Jun 3, 2009 at 11:52 AM, mdipierro mdipie...@cs.depaul.edu wrote: http://www.web2py.com/examples/static/cookbook2.pdf -- Alexei Vinidiktov --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23201] upload filename
Maybe you should expose the filename making as a method: uuid_key = str(uuid.uuid4()).replace('-', '')[-16:] encoded_filename = base64.b16encode(filename).lower() newfilename = '%s.%s.%s.%s' % \ (self.table._tablename, fieldname, uuid_key, encoded_filename) # for backward compatibility since upload field if 128bytes newfilename = newfilename[:122]+'.'+e self.vars['%s_newfilename' % fieldname] = newfilename fields[fieldname] = newfilename So that people with there own fileuploads can make use of the appadmin . /Robert -- __ Robert Marklund Phone: +46 (0)46 19 36 82 Mobile: +46 (0)70 213 22 76 E-mail: robbelibob...@gmail.com __ --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23203] Re: more slides - must read
Not Reddit but I posted a piece on a blog -- http://tightwadtechnica.com/?p=3980. On Jun 3, 10:33 am, mdipierro mdipie...@cs.depaul.edu wrote: Posted a new one with some new pages. http://www.web2py.com/examples/static/cookbook2.pdf It would be great if somebody would post a link on reddit, digg, etc. and if people were to vote it up. I am not going to do it because I am chickening out. Massimo On Jun 3, 9:39 am, mdipierro mdipie...@cs.depaul.edu wrote: yes, it is messy. I wrote it late at night. Fixing it. thanks. On Jun 3, 8:57 am, Alexei Vinidiktov alexei.vinidik...@gmail.com wrote: On page 55 the wording is not clear. Or is it just me? Uploads and authentication Uploaded files are served by the “download” action. To required authentication and authorization in order to download any file: db.image.file.authorize = lambda record: True where the lambda is a function hat, give the record, decides whether the user is or not authorized to download the file stored in the record. Especially: To required authentication and authorization in order to download any file: and where the lambda is a function hat, give the record, ^ ^ decides whether the user ... On Wed, Jun 3, 2009 at 11:52 AM, mdipierro mdipie...@cs.depaul.edu wrote: http://www.web2py.com/examples/static/cookbook2.pdf -- Alexei Vinidiktov --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23204] click click clik
http://www.reddit.com/r/programming/comments/8pijx/web_development_with_python_made_easier_then_ever/ --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23205] Re: click click clik
seems odd that there are down votes on this subject already. Must be some other framework trolls?!?! Give me a brrrek already... -wes On Wed, Jun 3, 2009 at 11:32 AM, mdipierro mdipie...@cs.depaul.edu wrote: http://www.reddit.com/r/programming/comments/8pijx/web_development_with_python_made_easier_then_ever/ --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23206] Re: more slides - must read
There seem to be some pdf errors in the document. I can open it on Windows but the document says it has 'invalid object structure' and a 'misaligned object'. On Linux I get a 30 page document with all white backgrounds, text on the title page and only the bullets show after that. On Jun 3, 10:33 am, mdipierro mdipie...@cs.depaul.edu wrote: Posted a new one with some new pages. http://www.web2py.com/examples/static/cookbook2.pdf It would be great if somebody would post a link on reddit, digg, etc. and if people were to vote it up. I am not going to do it because I am chickening out. Massimo On Jun 3, 9:39 am, mdipierro mdipie...@cs.depaul.edu wrote: yes, it is messy. I wrote it late at night. Fixing it. thanks. On Jun 3, 8:57 am, Alexei Vinidiktov alexei.vinidik...@gmail.com wrote: On page 55 the wording is not clear. Or is it just me? Uploads and authentication Uploaded files are served by the “download” action. To required authentication and authorization in order to download any file: db.image.file.authorize = lambda record: True where the lambda is a function hat, give the record, decides whether the user is or not authorized to download the file stored in the record. Especially: To required authentication and authorization in order to download any file: and where the lambda is a function hat, give the record, ^ ^ decides whether the user ... On Wed, Jun 3, 2009 at 11:52 AM, mdipierro mdipie...@cs.depaul.edu wrote: http://www.web2py.com/examples/static/cookbook2.pdf -- Alexei Vinidiktov --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23207] Re: more slides - must read
h On Jun 3, 1:44 pm, bsnipes snipes.br...@gmail.com wrote: There seem to be some pdf errors in the document. I can open it on Windows but the document says it has 'invalid object structure' and a 'misaligned object'. On Linux I get a 30 page document with all white backgrounds, text on the title page and only the bullets show after that. On Jun 3, 10:33 am, mdipierro mdipie...@cs.depaul.edu wrote: Posted a new one with some new pages. http://www.web2py.com/examples/static/cookbook2.pdf It would be great if somebody would post a link on reddit, digg, etc. and if people were to vote it up. I am not going to do it because I am chickening out. Massimo On Jun 3, 9:39 am, mdipierro mdipie...@cs.depaul.edu wrote: yes, it is messy. I wrote it late at night. Fixing it. thanks. On Jun 3, 8:57 am, Alexei Vinidiktov alexei.vinidik...@gmail.com wrote: On page 55 the wording is not clear. Or is it just me? Uploads and authentication Uploaded files are served by the “download” action. To required authentication and authorization in order to download any file: db.image.file.authorize = lambda record: True where the lambda is a function hat, give the record, decides whether the user is or not authorized to download the file stored in the record. Especially: To required authentication and authorization in order to download any file: and where the lambda is a function hat, give the record, ^ ^ decides whether the user ... On Wed, Jun 3, 2009 at 11:52 AM, mdipierro mdipie...@cs.depaul.edu wrote: http://www.web2py.com/examples/static/cookbook2.pdf -- Alexei Vinidiktov --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23208] Re: more slides - must read
I am using Xubuntu with the evince reader and am having no problems. Which reader are you using? On Jun 3, 1:44 pm, bsnipes snipes.br...@gmail.com wrote: There seem to be some pdf errors in the document. I can open it on Windows but the document says it has 'invalid object structure' and a 'misaligned object'. On Linux I get a 30 page document with all white backgrounds, text on the title page and only the bullets show after that. On Jun 3, 10:33 am, mdipierro mdipie...@cs.depaul.edu wrote: Posted a new one with some new pages. http://www.web2py.com/examples/static/cookbook2.pdf It would be great if somebody would post a link on reddit, digg, etc. and if people were to vote it up. I am not going to do it because I am chickening out. Massimo On Jun 3, 9:39 am, mdipierro mdipie...@cs.depaul.edu wrote: yes, it is messy. I wrote it late at night. Fixing it. thanks. On Jun 3, 8:57 am, Alexei Vinidiktov alexei.vinidik...@gmail.com wrote: On page 55 the wording is not clear. Or is it just me? Uploads and authentication Uploaded files are served by the “download” action. To required authentication and authorization in order to download any file: db.image.file.authorize = lambda record: True where the lambda is a function hat, give the record, decides whether the user is or not authorized to download the file stored in the record. Especially: To required authentication and authorization in order to download any file: and where the lambda is a function hat, give the record, ^ ^ decides whether the user ... On Wed, Jun 3, 2009 at 11:52 AM, mdipierro mdipie...@cs.depaul.edu wrote: http://www.web2py.com/examples/static/cookbook2.pdf -- Alexei Vinidiktov --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23209] Re: more slides - must read
I had them, flushed my cache - and now (in 2 browsers) that link goes into eternal load - never gets the file... On Wed, Jun 3, 2009 at 1:48 PM, mdipierro mdipie...@cs.depaul.edu wrote: h On Jun 3, 1:44 pm, bsnipes snipes.br...@gmail.com wrote: There seem to be some pdf errors in the document. I can open it on Windows but the document says it has 'invalid object structure' and a 'misaligned object'. On Linux I get a 30 page document with all white backgrounds, text on the title page and only the bullets show after that. On Jun 3, 10:33 am, mdipierro mdipie...@cs.depaul.edu wrote: Posted a new one with some new pages. http://www.web2py.com/examples/static/cookbook2.pdf It would be great if somebody would post a link on reddit, digg, etc. and if people were to vote it up. I am not going to do it because I am chickening out. Massimo On Jun 3, 9:39 am, mdipierro mdipie...@cs.depaul.edu wrote: yes, it is messy. I wrote it late at night. Fixing it. thanks. On Jun 3, 8:57 am, Alexei Vinidiktov alexei.vinidik...@gmail.com wrote: On page 55 the wording is not clear. Or is it just me? Uploads and authentication Uploaded files are served by the “download” action. To required authentication and authorization in order to download any file: db.image.file.authorize = lambda record: True where the lambda is a function hat, give the record, decides whether the user is or not authorized to download the file stored in the record. Especially: To required authentication and authorization in order to download any file: and where the lambda is a function hat, give the record, ^ ^ decides whether the user ... On Wed, Jun 3, 2009 at 11:52 AM, mdipierro mdipie...@cs.depaul.edu wrote: http://www.web2py.com/examples/static/cookbook2.pdf -- Alexei Vinidiktov --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23210] Re: more slides - must read
...and curl has now spent over a minute w/ 0 speed, 0 downloaded and trying to get to www.web2py.com at all seems to fail. Is the server down? On Wed, Jun 3, 2009 at 2:08 PM, Yarko Tymciurak yark...@gmail.com wrote: I had them, flushed my cache - and now (in 2 browsers) that link goes into eternal load - never gets the file... On Wed, Jun 3, 2009 at 1:48 PM, mdipierro mdipie...@cs.depaul.edu wrote: h On Jun 3, 1:44 pm, bsnipes snipes.br...@gmail.com wrote: There seem to be some pdf errors in the document. I can open it on Windows but the document says it has 'invalid object structure' and a 'misaligned object'. On Linux I get a 30 page document with all white backgrounds, text on the title page and only the bullets show after that. On Jun 3, 10:33 am, mdipierro mdipie...@cs.depaul.edu wrote: Posted a new one with some new pages. http://www.web2py.com/examples/static/cookbook2.pdf It would be great if somebody would post a link on reddit, digg, etc. and if people were to vote it up. I am not going to do it because I am chickening out. Massimo On Jun 3, 9:39 am, mdipierro mdipie...@cs.depaul.edu wrote: yes, it is messy. I wrote it late at night. Fixing it. thanks. On Jun 3, 8:57 am, Alexei Vinidiktov alexei.vinidik...@gmail.com wrote: On page 55 the wording is not clear. Or is it just me? Uploads and authentication Uploaded files are served by the “download” action. To required authentication and authorization in order to download any file: db.image.file.authorize = lambda record: True where the lambda is a function hat, give the record, decides whether the user is or not authorized to download the file stored in the record. Especially: To required authentication and authorization in order to download any file: and where the lambda is a function hat, give the record, ^ ^ decides whether the user ... On Wed, Jun 3, 2009 at 11:52 AM, mdipierro mdipie...@cs.depaul.edu wrote: http://www.web2py.com/examples/static/cookbook2.pdf -- Alexei Vinidiktov --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23211] Re: more slides - must read
Fired up another VM. Downloading the file as we speak. no problems. On Jun 3, 7:11 pm, Yarko Tymciurak yark...@gmail.com wrote: ...and curl has now spent over a minute w/ 0 speed, 0 downloaded and trying to get towww.web2py.comat all seems to fail. Is the server down? On Wed, Jun 3, 2009 at 2:08 PM, Yarko Tymciurak yark...@gmail.com wrote: I had them, flushed my cache - and now (in 2 browsers) that link goes into eternal load - never gets the file... On Wed, Jun 3, 2009 at 1:48 PM, mdipierro mdipie...@cs.depaul.edu wrote: h On Jun 3, 1:44 pm, bsnipes snipes.br...@gmail.com wrote: There seem to be some pdf errors in the document. I can open it on Windows but the document says it has 'invalid object structure' and a 'misaligned object'. On Linux I get a 30 page document with all white backgrounds, text on the title page and only the bullets show after that. On Jun 3, 10:33 am, mdipierro mdipie...@cs.depaul.edu wrote: Posted a new one with some new pages. http://www.web2py.com/examples/static/cookbook2.pdf It would be great if somebody would post a link on reddit, digg, etc. and if people were to vote it up. I am not going to do it because I am chickening out. Massimo On Jun 3, 9:39 am, mdipierro mdipie...@cs.depaul.edu wrote: yes, it is messy. I wrote it late at night. Fixing it. thanks. On Jun 3, 8:57 am, Alexei Vinidiktov alexei.vinidik...@gmail.com wrote: On page 55 the wording is not clear. Or is it just me? Uploads and authentication Uploaded files are served by the “download” action. To required authentication and authorization in order to download any file: db.image.file.authorize = lambda record: True where the lambda is a function hat, give the record, decides whether the user is or not authorized to download the file stored in the record. Especially: To required authentication and authorization in order to download any file: and where the lambda is a function hat, give the record, ^ ^ decides whether the user ... On Wed, Jun 3, 2009 at 11:52 AM, mdipierro mdipie...@cs.depaul.edu wrote: http://www.web2py.com/examples/static/cookbook2.pdf -- Alexei Vinidiktov --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23212] Re: more slides - must read
Arch Linux. Using Okular and Evince: [bsni...@galileo ~]$ evince --version GNOME Document Viewer 2.26.2 [bsni...@galileo ~]$ okular --version Qt: 4.5.1 KDE: 4.2.3 (KDE 4.2.3) Okular: 0.8.3 The PDF viewer that shows errors on Windows is PDFXChange Viewer. I use it for the free editing features and it shows when it thinks a pdf has errors in it. Brian On Jun 3, 2:07 pm, JohnMc maruadventu...@gmail.com wrote: I am using Xubuntu with the evince reader and am having no problems. Which reader are you using? On Jun 3, 1:44 pm, bsnipes snipes.br...@gmail.com wrote: There seem to be some pdf errors in the document. I can open it on Windows but the document says it has 'invalid object structure' and a 'misaligned object'. On Linux I get a 30 page document with all white backgrounds, text on the title page and only the bullets show after that. On Jun 3, 10:33 am, mdipierro mdipie...@cs.depaul.edu wrote: Posted a new one with some new pages. http://www.web2py.com/examples/static/cookbook2.pdf It would be great if somebody would post a link on reddit, digg, etc. and if people were to vote it up. I am not going to do it because I am chickening out. Massimo On Jun 3, 9:39 am, mdipierro mdipie...@cs.depaul.edu wrote: yes, it is messy. I wrote it late at night. Fixing it. thanks. On Jun 3, 8:57 am, Alexei Vinidiktov alexei.vinidik...@gmail.com wrote: On page 55 the wording is not clear. Or is it just me? Uploads and authentication Uploaded files are served by the “download” action. To required authentication and authorization in order to download any file: db.image.file.authorize = lambda record: True where the lambda is a function hat, give the record, decides whether the user is or not authorized to download the file stored in the record. Especially: To required authentication and authorization in order to download any file: and where the lambda is a function hat, give the record, ^ ^ decides whether the user ... On Wed, Jun 3, 2009 at 11:52 AM, mdipierro mdipie...@cs.depaul.edu wrote: http://www.web2py.com/examples/static/cookbook2.pdf -- Alexei Vinidiktov --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23214] Re: more slides - must read
Brian, I just run through evince, Adobe, kpdfviewer on linux. Adobe, Fox viewer on Windows. I not having any problems. Maybe the transport and the unreadable pdf are related. On Jun 3, 2:22 pm, bsnipes snipes.br...@gmail.com wrote: I won't discount it being my system since I did do an update yesterday but I've opened other pdf files with no errors that I can see (including a couple of 1000+ page pdfs ). On Jun 3, 2:19 pm, bsnipes snipes.br...@gmail.com wrote: Arch Linux. Using Okular and Evince: [bsni...@galileo ~]$ evince --version GNOME Document Viewer 2.26.2 [bsni...@galileo ~]$ okular --version Qt: 4.5.1 KDE: 4.2.3 (KDE 4.2.3) Okular: 0.8.3 The PDF viewer that shows errors on Windows is PDFXChange Viewer. I use it for the free editing features and it shows when it thinks a pdf has errors in it. Brian On Jun 3, 2:07 pm, JohnMc maruadventu...@gmail.com wrote: I am using Xubuntu with the evince reader and am having no problems. Which reader are you using? On Jun 3, 1:44 pm, bsnipes snipes.br...@gmail.com wrote: There seem to be some pdf errors in the document. I can open it on Windows but the document says it has 'invalid object structure' and a 'misaligned object'. On Linux I get a 30 page document with all white backgrounds, text on the title page and only the bullets show after that. On Jun 3, 10:33 am, mdipierro mdipie...@cs.depaul.edu wrote: Posted a new one with some new pages. http://www.web2py.com/examples/static/cookbook2.pdf It would be great if somebody would post a link on reddit, digg, etc. and if people were to vote it up. I am not going to do it because I am chickening out. Massimo On Jun 3, 9:39 am, mdipierro mdipie...@cs.depaul.edu wrote: yes, it is messy. I wrote it late at night. Fixing it. thanks. On Jun 3, 8:57 am, Alexei Vinidiktov alexei.vinidik...@gmail.com wrote: On page 55 the wording is not clear. Or is it just me? Uploads and authentication Uploaded files are served by the “download” action. To required authentication and authorization in order to download any file: db.image.file.authorize = lambda record: True where the lambda is a function hat, give the record, decides whether the user is or not authorized to download the file stored in the record. Especially: To required authentication and authorization in order to download any file: and where the lambda is a function hat, give the record, ^ ^ decides whether the user ... On Wed, Jun 3, 2009 at 11:52 AM, mdipierro mdipie...@cs.depaul.edu wrote: http://www.web2py.com/examples/static/cookbook2.pdf -- Alexei Vinidiktov --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23215] Re: more slides - must read
No clue. I have Jaunty at home on a desktop and will try it from there. Thanks for letting me know. Brian On Jun 3, 2:29 pm, JohnMc maruadventu...@gmail.com wrote: Brian, I just run through evince, Adobe, kpdfviewer on linux. Adobe, Fox viewer on Windows. I not having any problems. Maybe the transport and the unreadable pdf are related. On Jun 3, 2:22 pm, bsnipes snipes.br...@gmail.com wrote: I won't discount it being my system since I did do an update yesterday but I've opened other pdf files with no errors that I can see (including a couple of 1000+ page pdfs ). On Jun 3, 2:19 pm, bsnipes snipes.br...@gmail.com wrote: Arch Linux. Using Okular and Evince: [bsni...@galileo ~]$ evince --version GNOME Document Viewer 2.26.2 [bsni...@galileo ~]$ okular --version Qt: 4.5.1 KDE: 4.2.3 (KDE 4.2.3) Okular: 0.8.3 The PDF viewer that shows errors on Windows is PDFXChange Viewer. I use it for the free editing features and it shows when it thinks a pdf has errors in it. Brian On Jun 3, 2:07 pm, JohnMc maruadventu...@gmail.com wrote: I am using Xubuntu with the evince reader and am having no problems. Which reader are you using? On Jun 3, 1:44 pm, bsnipes snipes.br...@gmail.com wrote: There seem to be some pdf errors in the document. I can open it on Windows but the document says it has 'invalid object structure' and a 'misaligned object'. On Linux I get a 30 page document with all white backgrounds, text on the title page and only the bullets show after that. On Jun 3, 10:33 am, mdipierro mdipie...@cs.depaul.edu wrote: Posted a new one with some new pages. http://www.web2py.com/examples/static/cookbook2.pdf It would be great if somebody would post a link on reddit, digg, etc. and if people were to vote it up. I am not going to do it because I am chickening out. Massimo On Jun 3, 9:39 am, mdipierro mdipie...@cs.depaul.edu wrote: yes, it is messy. I wrote it late at night. Fixing it. thanks. On Jun 3, 8:57 am, Alexei Vinidiktov alexei.vinidik...@gmail.com wrote: On page 55 the wording is not clear. Or is it just me? Uploads and authentication Uploaded files are served by the “download” action. To required authentication and authorization in order to download any file: db.image.file.authorize = lambda record: True where the lambda is a function hat, give the record, decides whether the user is or not authorized to download the file stored in the record. Especially: To required authentication and authorization in order to download any file: and where the lambda is a function hat, give the record, ^ ^ decides whether the user ... On Wed, Jun 3, 2009 at 11:52 AM, mdipierro mdipie...@cs.depaul.edu wrote: http://www.web2py.com/examples/static/cookbook2.pdf -- Alexei Vinidiktov --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23216] Re: more slides - must read
Try this instead: http://www.scribd.com/doc/16085263/web2py-slides-version-163 On Jun 3, 2:19 pm, bsnipes snipes.br...@gmail.com wrote: Arch Linux. Using Okular and Evince: [bsni...@galileo ~]$ evince --version GNOME Document Viewer 2.26.2 [bsni...@galileo ~]$ okular --version Qt: 4.5.1 KDE: 4.2.3 (KDE 4.2.3) Okular: 0.8.3 The PDF viewer that shows errors on Windows is PDFXChange Viewer. I use it for the free editing features and it shows when it thinks a pdf has errors in it. Brian On Jun 3, 2:07 pm, JohnMc maruadventu...@gmail.com wrote: I am using Xubuntu with the evince reader and am having no problems. Which reader are you using? On Jun 3, 1:44 pm, bsnipes snipes.br...@gmail.com wrote: There seem to be some pdf errors in the document. I can open it on Windows but the document says it has 'invalid object structure' and a 'misaligned object'. On Linux I get a 30 page document with all white backgrounds, text on the title page and only the bullets show after that. On Jun 3, 10:33 am, mdipierro mdipie...@cs.depaul.edu wrote: Posted a new one with some new pages. http://www.web2py.com/examples/static/cookbook2.pdf It would be great if somebody would post a link on reddit, digg, etc. and if people were to vote it up. I am not going to do it because I am chickening out. Massimo On Jun 3, 9:39 am, mdipierro mdipie...@cs.depaul.edu wrote: yes, it is messy. I wrote it late at night. Fixing it. thanks. On Jun 3, 8:57 am, Alexei Vinidiktov alexei.vinidik...@gmail.com wrote: On page 55 the wording is not clear. Or is it just me? Uploads and authentication Uploaded files are served by the “download” action. To required authentication and authorization in order to download any file: db.image.file.authorize = lambda record: True where the lambda is a function hat, give the record, decides whether the user is or not authorized to download the file stored in the record. Especially: To required authentication and authorization in order to download any file: and where the lambda is a function hat, give the record, ^ ^ decides whether the user ... On Wed, Jun 3, 2009 at 11:52 AM, mdipierro mdipie...@cs.depaul.edu wrote: http://www.web2py.com/examples/static/cookbook2.pdf -- Alexei Vinidiktov --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23217] Re: more slides - must read
M, This might be related as well. I just restarted web2py (1.61.1) and I get a 'Checking for upgrades...'. It persists for about a minute before I can get into the projects design page. On Jun 3, 2:45 pm, mdipierro mdipie...@cs.depaul.edu wrote: Try this instead: http://www.scribd.com/doc/16085263/web2py-slides-version-163 On Jun 3, 2:19 pm, bsnipes snipes.br...@gmail.com wrote: Arch Linux. Using Okular and Evince: [bsni...@galileo ~]$ evince --version GNOME Document Viewer 2.26.2 [bsni...@galileo ~]$ okular --version Qt: 4.5.1 KDE: 4.2.3 (KDE 4.2.3) Okular: 0.8.3 The PDF viewer that shows errors on Windows is PDFXChange Viewer. I use it for the free editing features and it shows when it thinks a pdf has errors in it. Brian On Jun 3, 2:07 pm, JohnMc maruadventu...@gmail.com wrote: I am using Xubuntu with the evince reader and am having no problems. Which reader are you using? On Jun 3, 1:44 pm, bsnipes snipes.br...@gmail.com wrote: There seem to be some pdf errors in the document. I can open it on Windows but the document says it has 'invalid object structure' and a 'misaligned object'. On Linux I get a 30 page document with all white backgrounds, text on the title page and only the bullets show after that. On Jun 3, 10:33 am, mdipierro mdipie...@cs.depaul.edu wrote: Posted a new one with some new pages. http://www.web2py.com/examples/static/cookbook2.pdf It would be great if somebody would post a link on reddit, digg, etc. and if people were to vote it up. I am not going to do it because I am chickening out. Massimo On Jun 3, 9:39 am, mdipierro mdipie...@cs.depaul.edu wrote: yes, it is messy. I wrote it late at night. Fixing it. thanks. On Jun 3, 8:57 am, Alexei Vinidiktov alexei.vinidik...@gmail.com wrote: On page 55 the wording is not clear. Or is it just me? Uploads and authentication Uploaded files are served by the “download” action. To required authentication and authorization in order to download any file: db.image.file.authorize = lambda record: True where the lambda is a function hat, give the record, decides whether the user is or not authorized to download the file stored in the record. Especially: To required authentication and authorization in order to download any file: and where the lambda is a function hat, give the record, ^ ^ decides whether the user ... On Wed, Jun 3, 2009 at 11:52 AM, mdipierro mdipie...@cs.depaul.edu wrote: http://www.web2py.com/examples/static/cookbook2.pdf -- Alexei Vinidiktov --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23218] Re: more slides - must read
That works in both evince and in okular for me. Thanks! On Jun 3, 2:45 pm, mdipierro mdipie...@cs.depaul.edu wrote: Try this instead: http://www.scribd.com/doc/16085263/web2py-slides-version-163 On Jun 3, 2:19 pm, bsnipes snipes.br...@gmail.com wrote: Arch Linux. Using Okular and Evince: [bsni...@galileo ~]$ evince --version GNOME Document Viewer 2.26.2 [bsni...@galileo ~]$ okular --version Qt: 4.5.1 KDE: 4.2.3 (KDE 4.2.3) Okular: 0.8.3 The PDF viewer that shows errors on Windows is PDFXChange Viewer. I use it for the free editing features and it shows when it thinks a pdf has errors in it. Brian On Jun 3, 2:07 pm, JohnMc maruadventu...@gmail.com wrote: I am using Xubuntu with the evince reader and am having no problems. Which reader are you using? On Jun 3, 1:44 pm, bsnipes snipes.br...@gmail.com wrote: There seem to be some pdf errors in the document. I can open it on Windows but the document says it has 'invalid object structure' and a 'misaligned object'. On Linux I get a 30 page document with all white backgrounds, text on the title page and only the bullets show after that. On Jun 3, 10:33 am, mdipierro mdipie...@cs.depaul.edu wrote: Posted a new one with some new pages. http://www.web2py.com/examples/static/cookbook2.pdf It would be great if somebody would post a link on reddit, digg, etc. and if people were to vote it up. I am not going to do it because I am chickening out. Massimo On Jun 3, 9:39 am, mdipierro mdipie...@cs.depaul.edu wrote: yes, it is messy. I wrote it late at night. Fixing it. thanks. On Jun 3, 8:57 am, Alexei Vinidiktov alexei.vinidik...@gmail.com wrote: On page 55 the wording is not clear. Or is it just me? Uploads and authentication Uploaded files are served by the “download” action. To required authentication and authorization in order to download any file: db.image.file.authorize = lambda record: True where the lambda is a function hat, give the record, decides whether the user is or not authorized to download the file stored in the record. Especially: To required authentication and authorization in order to download any file: and where the lambda is a function hat, give the record, ^ ^ decides whether the user ... On Wed, Jun 3, 2009 at 11:52 AM, mdipierro mdipie...@cs.depaul.edu wrote: http://www.web2py.com/examples/static/cookbook2.pdf -- Alexei Vinidiktov --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23219] Re: more slides - must read
this is what I reported - www.web2py.com does not (still) appear to be loading (it responds to pings) Your checking for upgrades is a symptom of no http response from web2py.com I think... it continued for a long time... and seems to just have broken free of whatever it was in the past ~10 minutes... I now have the PDF from there (again), and the main www.web2py.com site just started responding too. On Wed, Jun 3, 2009 at 2:51 PM, JohnMc maruadventu...@gmail.com wrote: M, This might be related as well. I just restarted web2py (1.61.1) and I get a 'Checking for upgrades...'. It persists for about a minute before I can get into the projects design page. On Jun 3, 2:45 pm, mdipierro mdipie...@cs.depaul.edu wrote: Try this instead: http://www.scribd.com/doc/16085263/web2py-slides-version-163 On Jun 3, 2:19 pm, bsnipes snipes.br...@gmail.com wrote: Arch Linux. Using Okular and Evince: [bsni...@galileo ~]$ evince --version GNOME Document Viewer 2.26.2 [bsni...@galileo ~]$ okular --version Qt: 4.5.1 KDE: 4.2.3 (KDE 4.2.3) Okular: 0.8.3 The PDF viewer that shows errors on Windows is PDFXChange Viewer. I use it for the free editing features and it shows when it thinks a pdf has errors in it. Brian On Jun 3, 2:07 pm, JohnMc maruadventu...@gmail.com wrote: I am using Xubuntu with the evince reader and am having no problems. Which reader are you using? On Jun 3, 1:44 pm, bsnipes snipes.br...@gmail.com wrote: There seem to be some pdf errors in the document. I can open it on Windows but the document says it has 'invalid object structure' and a 'misaligned object'. On Linux I get a 30 page document with all white backgrounds, text on the title page and only the bullets show after that. On Jun 3, 10:33 am, mdipierro mdipie...@cs.depaul.edu wrote: Posted a new one with some new pages. http://www.web2py.com/examples/static/cookbook2.pdf It would be great if somebody would post a link on reddit, digg, etc. and if people were to vote it up. I am not going to do it because I am chickening out. Massimo On Jun 3, 9:39 am, mdipierro mdipie...@cs.depaul.edu wrote: yes, it is messy. I wrote it late at night. Fixing it. thanks. On Jun 3, 8:57 am, Alexei Vinidiktov alexei.vinidik...@gmail.com wrote: On page 55 the wording is not clear. Or is it just me? Uploads and authentication Uploaded files are served by the “download” action. To required authentication and authorization in order to download any file: db.image.file.authorize = lambda record: True where the lambda is a function hat, give the record, decides whether the user is or not authorized to download the file stored in the record. Especially: To required authentication and authorization in order to download any file: and where the lambda is a function hat, give the record, ^ ^ decides whether the user ... On Wed, Jun 3, 2009 at 11:52 AM, mdipierro mdipie...@cs.depaul.edu wrote: http://www.web2py.com/examples/static/cookbook2.pdf -- Alexei Vinidiktov --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23220] Re: more slides - must read
Excellent work :) Pg 1 This app also replaces the old cookbook so is a full tutorial - not just an overview of new features... Pg 5 Bottom text unreadable against background Pg 13 scaffolding app ^ Pg 15 Views can extend other ^ Pg 16 They contain ^ Pg 17 how to include ^^^ Pg 18 every app can ^ Pg 25 routes_out ^^ Pg 28 click to run locally ^^ Pg 40 automatically set when records are updated ^^^ Pg 47 Menu is rendered ^^ Pg 48 y...@example.com ^ Pg 50,51,52 Output missing Pg 54 last line (under s = Serverproxy) is unreadable against background Pg 55 Text after hostname is unreadable against background Pg 64 You don't demo the effect of this Pg 66 (*) create forms from models ^ ^ Pg 67,69 if form.accepts ^ Pg 74 Set pool_size0 for connection pooling should be after the other DB connection definitions? Pg 75 blobs are stored b64 encoded ^^ they are stored as T or F ^ ^ More later, perhaps ;) F --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23221] Re: more slides - must read
(over that 10 min. or so period where something wasn't working, you may have been getting from your browser cache) On Wed, Jun 3, 2009 at 3:10 PM, bsnipes snipes.br...@gmail.com wrote: That works in both evince and in okular for me. Thanks! On Jun 3, 2:45 pm, mdipierro mdipie...@cs.depaul.edu wrote: Try this instead: http://www.scribd.com/doc/16085263/web2py-slides-version-163 On Jun 3, 2:19 pm, bsnipes snipes.br...@gmail.com wrote: Arch Linux. Using Okular and Evince: [bsni...@galileo ~]$ evince --version GNOME Document Viewer 2.26.2 [bsni...@galileo ~]$ okular --version Qt: 4.5.1 KDE: 4.2.3 (KDE 4.2.3) Okular: 0.8.3 The PDF viewer that shows errors on Windows is PDFXChange Viewer. I use it for the free editing features and it shows when it thinks a pdf has errors in it. Brian On Jun 3, 2:07 pm, JohnMc maruadventu...@gmail.com wrote: I am using Xubuntu with the evince reader and am having no problems. Which reader are you using? On Jun 3, 1:44 pm, bsnipes snipes.br...@gmail.com wrote: There seem to be some pdf errors in the document. I can open it on Windows but the document says it has 'invalid object structure' and a 'misaligned object'. On Linux I get a 30 page document with all white backgrounds, text on the title page and only the bullets show after that. On Jun 3, 10:33 am, mdipierro mdipie...@cs.depaul.edu wrote: Posted a new one with some new pages. http://www.web2py.com/examples/static/cookbook2.pdf It would be great if somebody would post a link on reddit, digg, etc. and if people were to vote it up. I am not going to do it because I am chickening out. Massimo On Jun 3, 9:39 am, mdipierro mdipie...@cs.depaul.edu wrote: yes, it is messy. I wrote it late at night. Fixing it. thanks. On Jun 3, 8:57 am, Alexei Vinidiktov alexei.vinidik...@gmail.com wrote: On page 55 the wording is not clear. Or is it just me? Uploads and authentication Uploaded files are served by the “download” action. To required authentication and authorization in order to download any file: db.image.file.authorize = lambda record: True where the lambda is a function hat, give the record, decides whether the user is or not authorized to download the file stored in the record. Especially: To required authentication and authorization in order to download any file: and where the lambda is a function hat, give the record, ^ ^ decides whether the user ... On Wed, Jun 3, 2009 at 11:52 AM, mdipierro mdipie...@cs.depaul.edu wrote: http://www.web2py.com/examples/static/cookbook2.pdf -- Alexei Vinidiktov --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23222] Re: web2py 1.63.3 is out with some bug fixes
I noticed this new version immediately mentioned in the admin app upon creating my first app today (from a download yesterday!). What I need to know is: 1. what's the upgrade procedure 2. what's changelog. Generally I really like it when there's a what's new link next to any new version link. thanks rhubarb PS: only found out about web2py from the GAE blog a couple of days ago and already very impressed On Jun 3, 8:44 am, Iceberg iceb...@21cn.com wrote: On Jun3, 11:51am, mdipierro mdipie...@cs.depaul.edu wrote: web2py 1.63.3 is out with some bug fixes The fix to sql.py in revision 985 has a typo. And it is insufficient anyway because the /path-with-non-ascii/sql.log won't be create correctly. After some consideration, I make further adjustment to sql.py, and test it under Windows and sqlite. I will send you the code in private mail. --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23223] Re: more slides - must read
On Jun 3, 9:17 pm, Fran francisb...@googlemail.com wrote: More later, perhaps ;) Pg 76 both file contents and ^ Uploaded files are always streamed ^ Pg 80 .count() - does this not work on GAE still? Pg 81 row is None if no record with current id ^ Pg 82 Queries that involve multiple tables indicate an INNER ^ Pg 86 Same GAE question for integer and double fields ^ Pg 88 All dogs with name starting with ‘s’ Pg 89 SQLField(‘discounted_price’,‘double’) ^ rows = db(db.product.price==db.product.discounted_price+10).select() ^ Pg 92 mention GAE incompatibility (with reference to Multiple=True option) print row.dog.name, ’is friends with’, row.person.name ^ Pg 94 committed on success and rolled back on error ^^^ When using the shell or batch web2py scripts ^ committed or rolled back ^ Pg 104 onaccept is called after validation ^^ Pg 106 Is this a custom widget? Pg 107 Example of extending a widget would be great Pg 114 Text after com is unreadable against background (I think the underline has done something to formatting) Pg 124 can be arbitrary strings ^ Pg 133 Look at the generated HTML ^^ Pg 140 so that sessions are not ^ to collect tickets ^ Use web2py/scripts/sessions2trash.py ^ Pg 142 You can distribute your app under any license Phew! :) F --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23224] Re: new slides
I find the white text a bit hard to read against that textured background on the slides. Please use a background without so much contrast within its texture. (Or no texture at all, my preference.) Slide 13: s/you app/your app/ s/scaffoling/scaffolding/ Slide 114: much of the text is in unreadable dark grey color Slide 124: s/arbitraty/arbitrary/ --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23225] Re: web2py 1.63.3 is out with some bug fixes
Hi rhubarb, new features are listed in the README files. usually 1.63.xxx versions are bug fixes version. In this case better docstrings, some undocumented experimental features that you should not be using and fixed an issue with SQLite on windows in presence of strange chars in paths. We do release new versions in average biweekly. Massimo On Jun 3, 3:24 pm, rhubarb rover.rhub...@gmail.com wrote: I noticed this new version immediately mentioned in the admin app upon creating my first app today (from a download yesterday!). What I need to know is: 1. what's the upgrade procedure 2. what's changelog. Generally I really like it when there's a what's new link next to any new version link. thanks rhubarb PS: only found out about web2py from the GAE blog a couple of days ago and already very impressed On Jun 3, 8:44 am, Iceberg iceb...@21cn.com wrote: On Jun3, 11:51am, mdipierro mdipie...@cs.depaul.edu wrote: web2py 1.63.3 is out with some bug fixes The fix to sql.py in revision 985 has a typo. And it is insufficient anyway because the /path-with-non-ascii/sql.log won't be create correctly. After some consideration, I make further adjustment to sql.py, and test it under Windows and sqlite. I will send you the code in private mail. --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23226] Re: web2py 1.63.3 is out with some bug fixes
On Jun 3, 9:24 pm, rhubarb rover.rhub...@gmail.com wrote: 2. what's changelog. Generally I really like it when there's a what's new link next to any new version link. +1 to having the full changelog visible from the webpage rather than needing to download the .zip then follow the undocumented route of finding/opening the README inside it to see the changes. (Hopefully this is automatable as part of the release process, so doesn't add a burden...) PS Why is 1.64 mentioned in the changelog? - is that a plan for the next release? F --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23227] Re: Auth forwarding
I've just downloaded the MacOSX v 1.63.3, and its exhibiting this same problem. I had gotten an earlier copy through launchpad, and the problem was indeed fixed. Is it possible the pre-compiled version isn't up to date? I noticed that the web2py executable (in the MacOS directory) is dated 1/8/2009. Scott On May 13, 4:23 pm, mdipierro mdipie...@cs.depaul.edu wrote: Thanks Fran. This was your patch! On May 13, 3:22 pm, Fran francisb...@googlemail.com wrote: On May 13, 7:45 pm, ScottHuntershun...@nycap.rr.com wrote: Version 1.61.4 (2009-04-21 10:02:50) Fixed on 2009-05-03 05:43:55http://bazaar.launchpad.net/~mdipierro/web2py/devel/revision/723 F --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23229] Re: click click clik
I don't see the point in paying attention to those comments. All this reddit/twiter thing is mostly noise (and now even insults !). Why should you care about whinners ? On Jun 3, 8:42 pm, Wes James compte...@gmail.com wrote: seems odd that there are down votes on this subject already. Must be some other framework trolls?!?! Give me a brrrek already... -wes On Wed, Jun 3, 2009 at 11:32 AM, mdipierro mdipie...@cs.depaul.edu wrote: http://www.reddit.com/r/programming/comments/8pijx/web_development_wi... --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23230] Re: web2py 1.63.3 is out with some bug fixes
I am so used to reading latest changes first, that I found reading the README... a bit annoying. Quick / dirty fix attached (insert in your web2py dir, and run readme.py to view the README file) perhaps you'll appreciate this... On Wed, Jun 3, 2009 at 4:18 PM, Fran francisb...@googlemail.com wrote: On Jun 3, 9:24 pm, rhubarb rover.rhub...@gmail.com wrote: 2. what's changelog. Generally I really like it when there's a what's new link next to any new version link. +1 to having the full changelog visible from the webpage rather than needing to download the .zip then follow the undocumented route of finding/opening the README inside it to see the changes. (Hopefully this is automatable as part of the release process, so doesn't add a burden...) PS Why is 1.64 mentioned in the changelog? - is that a plan for the next release? F --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~--- readme.py Description: Binary data
[web2py:23231] Event-style locking in web2py
Hi I've made a web2py application that uses AJAX long polling for bringing content to the browser at realtime, but in order to optimize it I want a request to be locked until some event ocurrs so the AJAX request function does not need to do periodic polling (reducing cpu usage and latency). Is there any way to archieve something like this? I know the use of threading in web2py is disencouraged but this is just an example of how it would be, here lock function should not return until release function is called: [code] import threading e = threading.Event() def lock(): session.forget() session._unlock(response) e.wait(60) return 'ready' def release(): e.set() return 'done' [/code] thanks Juan --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23232] Re: Jpolite
Actually No! the args=[prodj.id] are not passed and Get the following ticket: Traceback (most recent call last): File C:\APPS\web2py\gluon\restricted.py, line 107, in restricted exec ccode in environment File C:/APPS/web2py/applications/jpolie/controllers/default.py, line 90, in module File C:\APPS\web2py\gluon\globals.py, line 80, in lambda self._caller = lambda f: f() File C:/APPS/web2py/applications/jpolie/controllers/default.py, line 20, in m202 thisprodj=db(db.prodj.id==request.args[0]).select()[0] IndexError: list index out of range any ideas? On Jun 3, 12:01 am, murray3 ch...@murraypost.net wrote: yep, I got it :) chris {{=LI(A(prodj.name,_href=URL(r=request,f='m202',args= [prodj.id])),_id='m202')}} On Jun 2, 11:36 pm, murray3 ch...@murraypost.net wrote: I have a table called Prodj. In JPolite if I have the following in a sidebar module (201), what is the syntax to pass args=[prodj.id] to the appropriate controller (203), for the recieving module (203). pside menu/p dl class=maccordion dtCreate Prodj:/dt dd ul class=navul li id=m206Create A New Prodj/li /ul /dd dtProdj Listing:/dt dd ul class=navul {{for prodj in prodj:}} li id=m202{{=prodj.name}}/li ??? I want to pass args here? {{pass}} /ul /dd /dl help appreciated as always. Chrism --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23233] Translating a line with a link
This may be a newbie question, but will someone tell me what'd be the proper way of putting T() to the line below? liUsers can access the store a href={{=request.application}}here/a/li It's in manage/setup.html of the eStore appliance. I've tried like li{{=T('Users can access the store a href=/%(req)shere/a', dict (req=request.application))}}/li but shown in browser is (when the translation is the same as the original) Users can access the store a href=/estorehere/a Thanks, Teru --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23234] quite some heated discussion....
http://www.reddit.com/r/programming/comments/8pijx/web_development_with_python_made_easier_then_ever/ thanks to those who gave support. --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23235] Re: click click clik
because those people are influential people in the Django community, the same people posting negative comments about web2py everywhere. Massimo On Jun 3, 5:16 pm, desfrenes desfre...@gmail.com wrote: I don't see the point in paying attention to those comments. All this reddit/twiter thing is mostly noise (and now even insults !). Why should you care about whinners ? On Jun 3, 8:42 pm, Wes James compte...@gmail.com wrote: seems odd that there are down votes on this subject already. Must be some other framework trolls?!?! Give me a brrrek already... -wes On Wed, Jun 3, 2009 at 11:32 AM, mdipierro mdipie...@cs.depaul.edu wrote: http://www.reddit.com/r/programming/comments/8pijx/web_development_wi... --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23236] Does web2py still supports python 2.4?
I'm trying to migrate a web2py app to a centos server that comes with Python 2.4.3 So far I hit errors with hashlib and uuid (easily fixed installing python-hashlib and python-uuid). However now I have a problem with the code: $ ./web2py.py Traceback (most recent call last): File ./web2py.py, line 17, in ? import gluon.widget File /opt/bzr/web2py/gluon/widget.py, line 30, in ? from main import HttpServer, save_password File /opt/bzr/web2py/gluon/main.py, line 38, in ? from globals import Request, Response, Session File /opt/bzr/web2py/gluon/globals.py, line 16, in ? from compileapp import run_view_in File /opt/bzr/web2py/gluon/compileapp.py, line 23, in ? from sqlhtml import SQLFORM, SQLTABLE File /opt/bzr/web2py/gluon/sqlhtml.py, line 37 value='' if value is None else str(value), ^ SyntaxError: invalid syntax Of course I can fix this and other problems I may find but maybe if you're not supporting 2.4 anymore I should focus in installing 2.5 in this server. Thanks in advance Mariano --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23237] Re: Event-style locking in web2py
You should not start a thread from a web2py thread (without lots of caveats). Massimo On Jun 3, 4:46 pm, Juan sor...@gmail.com wrote: Hi I've made a web2py application that uses AJAX long polling for bringing content to the browser at realtime, but in order to optimize it I want a request to be locked until some event ocurrs so the AJAX request function does not need to do periodic polling (reducing cpu usage and latency). Is there any way to archieve something like this? I know the use of threading in web2py is disencouraged but this is just an example of how it would be, here lock function should not return until release function is called: [code] import threading e = threading.Event() def lock(): session.forget() session._unlock(response) e.wait(60) return 'ready' def release(): e.set() return 'done' [/code] thanks Juan --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23238] Re: Translating a line with a link
li{{=T('Users can access the store')}} a href={{=request.application}}{{=T('here')}}/a/li you still need to go to admin and edit the translation in the language requested by the browser. Massimo On Jun 3, 7:14 pm, suiato homm...@gmail.com wrote: This may be a newbie question, but will someone tell me what'd be the proper way of putting T() to the line below? liUsers can access the store a href={{=request.application}}here/a/li It's in manage/setup.html of the eStore appliance. I've tried like li{{=T('Users can access the store a href=/%(req)shere/a', dict (req=request.application))}}/li but shown in browser is (when the translation is the same as the original) Users can access the store a href=/estorehere/a Thanks, Teru --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23239] Re: click click clik
On Thu, Jun 4, 2009 at 10:19 AM, mdipierro mdipie...@cs.depaul.edu wrote: because those people are influential people in the Django community, the same people posting negative comments about web2py everywhere. I am not sure whether such comments matter. People seriously using such development tools will have a good look before they embark on an expensive journey anyway, and I think in that regard web2py has a lot going for it apart from the lack of usable up-to-date documentation Let's get good apps out, that will spread more good word about the tools we use than any silly comments on time wasting web sites I for my part can vouch that so far development with web2py has been - a bit faster than with RoR - far more legible code than with RoR - I managed to hire 4 good people so far to to web2py work for me. They seem all competent, and so far have delivered in time and to specs. No exemption so far, and that's a quite unique experience for me (when developing a similar project with RoR I had hundreds of applicants but in the end nobody delivered in tiome and to specs and it turned into a financial nightmare until the whole project was shelved) This weekend I am going to present the first version of my medical web app (pre alpha, but seemingly functional) at a medical conference. If acceptance is good and no major hickups during demo (when lots of doctors are going to hammer it all at the same time) we'll go public with the project. I am then happy to give a testimony on theweb2py web site of our experience so far, including the exceptional experience of being able to easily hire good competent developers familiar with web2py, as well as the incredible responsiveness and helpfulness of this list with a very low signal:noise ratio Horst --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23240] Re: Does web2py still supports python 2.4?
Mariano, I got this information from the link below. web2py Download http://www.web2py.com/examples/default/download Current Version 1.63.3 (2009-06-02 22:13:56) * for Windows * for Mac * source code for all platforms (requires Python 2.5, runs on Windows and most Unix systems, including Linux and BSD) * latest development snapshot for BZR * latest development snapshot for SVN * Production Distribution/VMWare appliance (coming soon) Christopher Mariano Mara wrote: I'm trying to migrate a web2py app to a centos server that comes with Python 2.4.3 So far I hit errors with hashlib and uuid (easily fixed installing python-hashlib and python-uuid). However now I have a problem with the code: $ ./web2py.py Traceback (most recent call last): File ./web2py.py, line 17, in ? import gluon.widget File /opt/bzr/web2py/gluon/widget.py, line 30, in ? from main import HttpServer, save_password File /opt/bzr/web2py/gluon/main.py, line 38, in ? from globals import Request, Response, Session File /opt/bzr/web2py/gluon/globals.py, line 16, in ? from compileapp import run_view_in File /opt/bzr/web2py/gluon/compileapp.py, line 23, in ? from sqlhtml import SQLFORM, SQLTABLE File /opt/bzr/web2py/gluon/sqlhtml.py, line 37 value='' if value is None else str(value), ^ SyntaxError: invalid syntax Of course I can fix this and other problems I may find but maybe if you're not supporting 2.4 anymore I should focus in installing 2.5 in this server. Thanks in advance Mariano --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23241] Re: Does web2py still supports python 2.4?
On Jun 3, 10:18 pm, cesmiga cesm...@gmail.com wrote: Mariano, I got this information from the link below. web2py Download http://www.web2py.com/examples/default/download Current Version 1.63.3 (2009-06-02 22:13:56) * for Windows * for Mac * source code for all platforms (requires Python 2.5, runs on Windows and most Unix systems, including Linux and BSD) * latest development snapshot for BZR * latest development snapshot for SVN * Production Distribution/VMWare appliance (coming soon) Christopher My bad. Thanks Christopher. Mariano Mara wrote: I'm trying to migrate a web2py app to a centos server that comes with Python 2.4.3 So far I hit errors with hashlib and uuid (easily fixed installing python-hashlib and python-uuid). However now I have a problem with the code: $ ./web2py.py Traceback (most recent call last): File ./web2py.py, line 17, in ? import gluon.widget File /opt/bzr/web2py/gluon/widget.py, line 30, in ? from main import HttpServer, save_password File /opt/bzr/web2py/gluon/main.py, line 38, in ? from globals import Request, Response, Session File /opt/bzr/web2py/gluon/globals.py, line 16, in ? from compileapp import run_view_in File /opt/bzr/web2py/gluon/compileapp.py, line 23, in ? from sqlhtml import SQLFORM, SQLTABLE File /opt/bzr/web2py/gluon/sqlhtml.py, line 37 value='' if value is None else str(value), ^ SyntaxError: invalid syntax Of course I can fix this and other problems I may find but maybe if you're not supporting 2.4 anymore I should focus in installing 2.5 in this server. Thanks in advance Mariano --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23242] Re: Translating a line with a link
Thanks, Massimo 2009/6/4 mdipierro mdipie...@cs.depaul.edu: li{{=T('Users can access the store')}} a href={{=request.application}}{{=T('here')}}/a/li OK. It works :) I hoped T() could include the whole line because word orders are different (often reversed) in Japanese. For example, verb in Japanese usually comes at the end, and the translation of the above line in HTML should look like ユーザは、a... ここ/aでストアにアクセスできます。 But, I'll manage somehow... you still need to go to admin and edit the translation in the language requested by the browser. Yes, in fact, I'm about to finish a draft of Japanese translation of eStore. I will be happy to share the results if anyone is interested. Massimo Cheers, Teru On Jun 3, 7:14 pm, suiato homm...@gmail.com wrote: This may be a newbie question, but will someone tell me what'd be the proper way of putting T() to the line below? liUsers can access the store a href={{=request.application}}here/a/li It's in manage/setup.html of the eStore appliance. I've tried like li{{=T('Users can access the store a href=/%(req)shere/a', dict (req=request.application))}}/li but shown in browser is (when the translation is the same as the original) Users can access the store a href=/estorehere/a Thanks, Teru --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23243] Re: click click clik
Massimo, Following Horst's observations from a different angle. 1) Don't worry about whether Web2Py is 'Enterprise Ready'. That is Tech Press/Vendor Spiel to create marketshare with appeal. Its verbal junk. Go take a look at table 2a -- http://www.census.gov/epcd/www/smallbus.html . The tally of firms 100 employees to those 100 outrank them 10x. The number of firms with budgets that support $1m+ software projects is less than 20k. There are probably 100 'Enterprise Providers' (eg Microsoft, IBM, Sun, Oracle) chasing that small field. So when I hear a programmer state they do 'Enterprise level production development' like some badge, Django or otherwise they too are chasing that small field of money. Most likely as a member of one of those 'Enterprise Providers'. 2) The opportunity is in that 100 employee range. Those firms rarely have million dollar budgets. Nor do they typically have the budgets to buy WebSphere platforms or SAP software. But their need is just as great for specialized software. Better to cater to the smaller firms who would benefit from web2py. It is just as important to be able to be profitable in the small scale as the large. Fact more so. That Web2Py can scale is the icing on the cake. JohnMc On Jun 3, 7:30 pm, Horst Herb my.list.subscripti...@gmail.com wrote: On Thu, Jun 4, 2009 at 10:19 AM, mdipierro mdipie...@cs.depaul.edu wrote: because those people are influential people in the Django community, the same people posting negative comments about web2py everywhere. I am not sure whether such comments matter. People seriously using such development tools will have a good look before they embark on an expensive journey anyway, and I think in that regard web2py has a lot going for it apart from the lack of usable up-to-date documentation Let's get good apps out, that will spread more good word about the tools we use than any silly comments on time wasting web sites I for my part can vouch that so far development with web2py has been - a bit faster than with RoR - far more legible code than with RoR - I managed to hire 4 good people so far to to web2py work for me. They seem all competent, and so far have delivered in time and to specs. No exemption so far, and that's a quite unique experience for me (when developing a similar project with RoR I had hundreds of applicants but in the end nobody delivered in tiome and to specs and it turned into a financial nightmare until the whole project was shelved) This weekend I am going to present the first version of my medical web app (pre alpha, but seemingly functional) at a medical conference. If acceptance is good and no major hickups during demo (when lots of doctors are going to hammer it all at the same time) we'll go public with the project. I am then happy to give a testimony on theweb2py web site of our experience so far, including the exceptional experience of being able to easily hire good competent developers familiar with web2py, as well as the incredible responsiveness and helpfulness of this list with a very low signal:noise ratio Horst --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23244] Re: Translating a line with a link
It can li{{=XML(str(T('Users can access the store a href=%shere/a', (request.application)))}}/li Massimo On Jun 3, 8:31 pm, suiato homm...@gmail.com wrote: Thanks, Massimo 2009/6/4 mdipierro mdipie...@cs.depaul.edu: li{{=T('Users can access the store')}} a href={{=request.application}}{{=T('here')}}/a/li OK. It works :) I hoped T() could include the whole line because word orders are different (often reversed) in Japanese. For example, verb in Japanese usually comes at the end, and the translation of the above line in HTML should look like ユーザは、a... ここ/aでストアにアクセスできます。 But, I'll manage somehow... you still need to go to admin and edit the translation in the language requested by the browser. Yes, in fact, I'm about to finish a draft of Japanese translation of eStore. I will be happy to share the results if anyone is interested. Massimo Cheers, Teru On Jun 3, 7:14 pm, suiato homm...@gmail.com wrote: This may be a newbie question, but will someone tell me what'd be the proper way of putting T() to the line below? liUsers can access the store a href={{=request.application}}here/a/li It's in manage/setup.html of the eStore appliance. I've tried like li{{=T('Users can access the store a href=/%(req)shere/a', dict (req=request.application))}}/li but shown in browser is (when the translation is the same as the original) Users can access the store a href=/estorehere/a Thanks, Teru --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23245] Re: Authentication for services
I've tried this with the pyjamas tutorial and it didn't work. I've enabled user registration and registered a user whose credentials are used in the URL below. I got a server error when a function requiring user authentication was called. I changed the line JSONProxy.__init__(self, ../../default/call/jsonrpc, [getTasks, addTask,deleteTask]) to read JSONProxy.__init__(self, http://myemail%40gmail.com%3amypassw...@127.0.0.1:8000/pyjamas/default/call/jsonrpc;, [getTasks, addTask,deleteTask]) What am I missing? Thanks. On Mon, Jun 1, 2009 at 12:51 PM, mdipierro mdipie...@cs.depaul.edu wrote: OK. As you request since the latest version in trunk you can do @auth.requires_login() def index(): return 'hello world' and access it with curl -u username:password http://127.0.0.1:8000/app/default/index or curl http://username:passw...@127.0.0.1:8000/app/default/index In the latter case username and password have to be encoded by urllib.quote() works for services too. Massimo On May 31, 10:43 pm, Dan danbr...@gmail.com wrote: Since my last message on this thread, I came up with a patch to the Auth.login() code that lets me do what I need, so figured I should post it here. Let me know if you see any issues with this approach (or improvements to it). To recap, what I want to do is to let a script runing wget (not a browser) login and then work with some parts of the app that require membership in groups. I want to pass the user's name and password to the login form using post variables in the URL. This is not normally possible with web2py's Auth.login() function, so it needs to be modified, like this- referring to source code here:http://www.web2py.com/examples/static/epydoc/web2py.gluon.tools-pysrc... Change these 3 lines ... 622 if FORM.accepts(form, request.vars, session, 623 formname='login', 624 onvalidation=onvalidation): ... to be these 3 lines: if username in request.vars.keys() and request.vars.password and \ FORM.accepts(form, request.vars, formname=None, onvalidation=onvalidation): This change lets the form take the username and password from the URL's post variables (or the form itself - but not both of course). Then my script will login using wget's optional arguments --keep- session-cookies --save-cookies= when submitting the user name and password to the app's login function. These wget options store the session cookie in a local file. Then subsequent wget calls to the restricted parts of the app can use those cookies as a token to gain access with the option --load-cookies=. Apologies for straying a bit from the original use case of this thread, but perhaps it's general approach will be a helpful hint. Also: I don't fully understand what the purpose of the formname parameter is, or why it was necessary to None-ify it. If someone can explain this to me, I'd appreciate it. Dan On May 29, 6:15 pm, Dan danbr...@gmail.com wrote: Reviving this thread from before... I would like to have a shell script use wget to authenticate itself and access the data in a web2py application, but I haven't been able to get the web2py app to accept the post'ed email and password information, which I sent to the user/ login URL. Is this the right way to do it? I see some passing references to alternate authorization methods in the documentation and the code, but I haven't been able to get much detail on what those might be. For example- http://mdp.cti.depaul.edu/examples/default/tools#authentication: The Auth calls can be extended, personalized, and replaced by other authentication mechanisms which expose a similar interface. and inhttp://mdp.cti.depaul.edu/examples/static/epydoc/web2py.gluon.tools-p... : 644 if not user: 645 ## try alternate login methods 646 for login_method in self.settings.login_methods: 647 if login_method != self and \ 648 login_method(request.vars [username], 649 request.vars.password): 650 user = self.get_or_create_user (form.vars) Is there a place where I can find out more about what already exists, or how to go about getting something like what the original message in this thread described? Dan On May 17, 8:22 pm, mdipierro mdipie...@cs.depaul.edu wrote: I need to look into this. I do not think there can be a generic approach. Each protocol has its own quirks and some do not handle session or authenication. Massimo On May 17, 8:14 pm, jcorbett jasoncorb...@gmail.com wrote: I love the service framework, however I am interested in being able to authenticate users. With json/jsonrpcthis shouldn't be too hard as the browser that the ajax request would come from would have the same session. Particularly I am concerned
[web2py:23246] Re: Translating a line with a link
2009/06/04 11:16 mdipierro mdipie...@cs.depaul.edu: It can li{{=XML(str(T('Users can access the store a href=%shere/a', (request.application)))}}/li Massimo Wow, great! It worked after adding a paranthesis ) to close XML. (The correction was easy to make thanks to the friendly editor in web2py.) Thanks a lot. -- Teru --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23247] Re: Translating a line with a link
it may work without the str but I have not tried. On Jun 3, 10:01 pm, suiato homm...@gmail.com wrote: 2009/06/04 11:16 mdipierro mdipie...@cs.depaul.edu: It can li{{=XML(str(T('Users can access the store a href=%shere/a', (request.application)))}}/li Massimo Wow, great! It worked after adding a paranthesis ) to close XML. (The correction was easy to make thanks to the friendly editor in web2py.) Thanks a lot. -- Teru --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23248] Re: click click clik
When I say enterprise I do not mean large businesses, I rather mean businesses and non profit organizations that use computers and follow a more or less professional software development cycles. I agree with you that small businesses are more profitable and a better market for web2py than large enterprises. Massimo On Jun 3, 9:07 pm, JohnMc maruadventu...@gmail.com wrote: Massimo, Following Horst's observations from a different angle. 1) Don't worry about whether Web2Py is 'Enterprise Ready'. That is Tech Press/Vendor Spiel to create marketshare with appeal. Its verbal junk. Go take a look at table 2a --http://www.census.gov/epcd/www/smallbus.html . The tally of firms 100 employees to those 100 outrank them 10x. The number of firms with budgets that support $1m+ software projects is less than 20k. There are probably 100 'Enterprise Providers' (eg Microsoft, IBM, Sun, Oracle) chasing that small field. So when I hear a programmer state they do 'Enterprise level production development' like some badge, Django or otherwise they too are chasing that small field of money. Most likely as a member of one of those 'Enterprise Providers'. 2) The opportunity is in that 100 employee range. Those firms rarely have million dollar budgets. Nor do they typically have the budgets to buy WebSphere platforms or SAP software. But their need is just as great for specialized software. Better to cater to the smaller firms who would benefit from web2py. It is just as important to be able to be profitable in the small scale as the large. Fact more so. That Web2Py can scale is the icing on the cake. JohnMc On Jun 3, 7:30 pm, Horst Herb my.list.subscripti...@gmail.com wrote: On Thu, Jun 4, 2009 at 10:19 AM, mdipierro mdipie...@cs.depaul.edu wrote: because those people are influential people in the Django community, the same people posting negative comments about web2py everywhere. I am not sure whether such comments matter. People seriously using such development tools will have a good look before they embark on an expensive journey anyway, and I think in that regard web2py has a lot going for it apart from the lack of usable up-to-date documentation Let's get good apps out, that will spread more good word about the tools we use than any silly comments on time wasting web sites I for my part can vouch that so far development with web2py has been - a bit faster than with RoR - far more legible code than with RoR - I managed to hire 4 good people so far to to web2py work for me. They seem all competent, and so far have delivered in time and to specs. No exemption so far, and that's a quite unique experience for me (when developing a similar project with RoR I had hundreds of applicants but in the end nobody delivered in tiome and to specs and it turned into a financial nightmare until the whole project was shelved) This weekend I am going to present the first version of my medical web app (pre alpha, but seemingly functional) at a medical conference. If acceptance is good and no major hickups during demo (when lots of doctors are going to hammer it all at the same time) we'll go public with the project. I am then happy to give a testimony on theweb2py web site of our experience so far, including the exceptional experience of being able to easily hire good competent developers familiar with web2py, as well as the incredible responsiveness and helpfulness of this list with a very low signal:noise ratio Horst --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23249] Re: Does web2py still supports python 2.4?
actually it should work with 2.4 even if we do not like to advertise it (because of the backward compatibility issues). 1.63.3 broke this because of a patch. I am fixing this as we speak. Tomorrow it will work with 2.4 Sorry. Massimo On Jun 3, 8:25 pm, Mariano Mara mariano.m...@gmail.com wrote: On Jun 3, 10:18 pm, cesmiga cesm...@gmail.com wrote: Mariano, I got this information from the link below. web2py Download http://www.web2py.com/examples/default/download Current Version 1.63.3 (2009-06-02 22:13:56) * for Windows * for Mac * source code for all platforms (requires Python 2.5, runs on Windows and most Unix systems, including Linux and BSD) * latest development snapshot for BZR * latest development snapshot for SVN * Production Distribution/VMWare appliance (coming soon) Christopher My bad. Thanks Christopher. Mariano Mara wrote: I'm trying to migrate a web2py app to a centos server that comes with Python 2.4.3 So far I hit errors with hashlib and uuid (easily fixed installing python-hashlib and python-uuid). However now I have a problem with the code: $ ./web2py.py Traceback (most recent call last): File ./web2py.py, line 17, in ? import gluon.widget File /opt/bzr/web2py/gluon/widget.py, line 30, in ? from main import HttpServer, save_password File /opt/bzr/web2py/gluon/main.py, line 38, in ? from globals import Request, Response, Session File /opt/bzr/web2py/gluon/globals.py, line 16, in ? from compileapp import run_view_in File /opt/bzr/web2py/gluon/compileapp.py, line 23, in ? from sqlhtml import SQLFORM, SQLTABLE File /opt/bzr/web2py/gluon/sqlhtml.py, line 37 value='' if value is None else str(value), ^ SyntaxError: invalid syntax Of course I can fix this and other problems I may find but maybe if you're not supporting 2.4 anymore I should focus in installing 2.5 in this server. Thanks in advance Mariano --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23250] Re: web2py 1.63.3 is out with some bug fixes
useful thanks. Massimo On Jun 3, 6:05 pm, Yarko Tymciurak yark...@gmail.com wrote: I am so used to reading latest changes first, that I found reading the README... a bit annoying. Quick / dirty fix attached (insert in your web2py dir, and run readme.py to view the README file) perhaps you'll appreciate this... On Wed, Jun 3, 2009 at 4:18 PM, Fran francisb...@googlemail.com wrote: On Jun 3, 9:24 pm, rhubarb rover.rhub...@gmail.com wrote: 2. what's changelog. Generally I really like it when there's a what's new link next to any new version link. +1 to having the full changelog visible from the webpage rather than needing to download the .zip then follow the undocumented route of finding/opening the README inside it to see the changes. (Hopefully this is automatable as part of the release process, so doesn't add a burden...) PS Why is 1.64 mentioned in the changelog? - is that a plan for the next release? F readme.py 1KViewDownload --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23251] Re: Translating a line with a link
When writing {{=XML(str(T(...)))}}} lines for translation here and there, I realize it might be better to modify T(), wrapping the current T() with XML(str()). It will be simpler in expression, and won't break the compatibility, will it? Otherwise, you might end up with typing lots of {{=XML(str(T(...)))}}} in the source code when internationalizing. -- Teru On 6月4日, 午後12:01, suiato homm...@gmail.com wrote: 2009/06/04 11:16 mdipierro mdipie...@cs.depaul.edu: It can li{{=XML(str(T('Users can access the store a href=%shere/a', (request.application)))}}/li Massimo Wow, great! It worked after adding a paranthesis ) to close XML. (The correction was easy to make thanks to the friendly editor in web2py.) Thanks a lot. -- Teru --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23252] Re: Translating a line with a link
In model you can just do Tx=lambda *a: XML(str(T(*a)) and use Tx instead. On Jun 3, 10:51 pm, suiato homm...@gmail.com wrote: When writing {{=XML(str(T(...)))}}} lines for translation here and there, I realize it might be better to modify T(), wrapping the current T() with XML(str()). It will be simpler in expression, and won't break the compatibility, will it? Otherwise, you might end up with typing lots of {{=XML(str(T(...)))}}} in the source code when internationalizing. -- Teru On 6月4日, 午後12:01, suiato homm...@gmail.com wrote: 2009/06/04 11:16 mdipierro mdipie...@cs.depaul.edu: It can li{{=XML(str(T('Users can access the store a href=%shere/a', (request.application)))}}/li Massimo Wow, great! It worked after adding a paranthesis ) to close XML. (The correction was easy to make thanks to the friendly editor in web2py.) Thanks a lot. -- Teru --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23253] Re: click click clik
1) Don't worry about whether Web2Py is 'Enterprise Ready'. That is Tech Press/Vendor Spiel to create marketshare with appeal. Its verbal junk. Go take a look at table 2a --http://www.census.gov/epcd/www/smallbus.html . The tally of firms 100 employees to those 100 outrank them 10x. You're very right, there are many more small businesses than large ones. The number of firms with budgets that support $1m+ software projects is less than 20k. There are probably 100 'Enterprise Providers' (eg Microsoft, IBM, Sun, Oracle) chasing that small field. So when I hear a programmer state they do 'Enterprise level production development' like some badge, Django or otherwise they too are chasing that small field of money. Most likely as a member of one of those 'Enterprise Providers'. Again, I couldn't agree more--people who say they are doing 'Enterprise level production development' are usually part of Microsoft, IBM, Sun, Oracle, or are working for a large company using primarily those products. I usually find that term to be more fluff than anything else. There are a few components to 'Enterprise level production development' that are truly unique, like OLAP/OLTP that don't tend to happen in other domains, but most of the time people aren't talking about that. 2) The opportunity is in that 100 employee range. Those firms rarely have million dollar budgets. Nor do they typically have the budgets to buy WebSphere platforms or SAP software. But their need is just as great for specialized software. Better to cater to the smaller firms who would benefit from web2py. It is just as important to be able to be profitable in the small scale as the large. Fact more so. Definitely! It seems that Web2Py is highly optimized for this type of situation. Small team, rapid prototyping, teaching, etc. I think it's a really under-appreciated niche, too. Thanks, Eric Florenzano --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23254] Re: click click clik
Hello Eric, We do not have to agree on everything but I do value your opinion so I am happy to have you here. Massimo On Jun 3, 9:33 pm, Eric Florenzano flo...@gmail.com wrote: 1) Don't worry about whether Web2Py is 'Enterprise Ready'. That is Tech Press/Vendor Spiel to create marketshare with appeal. Its verbal junk. Go take a look at table 2a --http://www.census.gov/epcd/www/smallbus.html . The tally of firms 100 employees to those 100 outrank them 10x. You're very right, there are many more small businesses than large ones. The number of firms with budgets that support $1m+ software projects is less than 20k. There are probably 100 'Enterprise Providers' (eg Microsoft, IBM, Sun, Oracle) chasing that small field. So when I hear a programmer state they do 'Enterprise level production development' like some badge, Django or otherwise they too are chasing that small field of money. Most likely as a member of one of those 'Enterprise Providers'. Again, I couldn't agree more--people who say they are doing 'Enterprise level production development' are usually part of Microsoft, IBM, Sun, Oracle, or are working for a large company using primarily those products. I usually find that term to be more fluff than anything else. There are a few components to 'Enterprise level production development' that are truly unique, like OLAP/OLTP that don't tend to happen in other domains, but most of the time people aren't talking about that. 2) The opportunity is in that 100 employee range. Those firms rarely have million dollar budgets. Nor do they typically have the budgets to buy WebSphere platforms or SAP software. But their need is just as great for specialized software. Better to cater to the smaller firms who would benefit from web2py. It is just as important to be able to be profitable in the small scale as the large. Fact more so. Definitely! It seems that Web2Py is highly optimized for this type of situation. Small team, rapid prototyping, teaching, etc. I think it's a really under-appreciated niche, too. Thanks, Eric Florenzano --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23255] web2py 1.63.4 is OUT
I just posted 1.63.4 because I patch in 1.63.3 had broken Python 2.4 and it was an urgent matter. I think the problem is now fixed. Changelog: - fixed python 2.4 - fixed problem with strange char encoding of absolute paths in sqlite on windows. Thanks Iceberg. Massimo --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23256] Re: Translating a line with a link
2009/06/04 12:57 mdipierro mdipie...@cs.depaul.edu: In model you can just do Tx=lambda *a: XML(str(T(*a)) and use Tx instead. This is a good learning experience for me. Lots of thanks, Massimo. By the way, XML(T()) seems to work when I tested with an example. Cheers, Teru --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23257] Re: click click clik
Massimo, We're on the same wavelength. Though I have to say that to many in the IT trade press, 'Enterprise' to them is the Fortune 5000. Which the joke is on them. That side of the business spends a lot of money but the margins are nonexistent. I spent the last 10 years of a 30year IT career beating the margin out of the likes of IBM and Microsoft for a Fortune 10. On Jun 3, 10:15 pm, mdipierro mdipie...@cs.depaul.edu wrote: When I say enterprise I do not mean large businesses, I rather mean businesses and non profit organizations that use computers and follow a more or less professional software development cycles. I agree with you that small businesses are more profitable and a better market for web2py than large enterprises. Massimo On Jun 3, 9:07 pm, JohnMc maruadventu...@gmail.com wrote: Massimo, Following Horst's observations from a different angle. 1) Don't worry about whether Web2Py is 'Enterprise Ready'. That is Tech Press/Vendor Spiel to create marketshare with appeal. Its verbal junk. Go take a look at table 2a --http://www.census.gov/epcd/www/smallbus.html . The tally of firms 100 employees to those 100 outrank them 10x. The number of firms with budgets that support $1m+ software projects is less than 20k. There are probably 100 'Enterprise Providers' (eg Microsoft, IBM, Sun, Oracle) chasing that small field. So when I hear a programmer state they do 'Enterprise level production development' like some badge, Django or otherwise they too are chasing that small field of money. Most likely as a member of one of those 'Enterprise Providers'. 2) The opportunity is in that 100 employee range. Those firms rarely have million dollar budgets. Nor do they typically have the budgets to buy WebSphere platforms or SAP software. But their need is just as great for specialized software. Better to cater to the smaller firms who would benefit from web2py. It is just as important to be able to be profitable in the small scale as the large. Fact more so. That Web2Py can scale is the icing on the cake. JohnMc On Jun 3, 7:30 pm, Horst Herb my.list.subscripti...@gmail.com wrote: On Thu, Jun 4, 2009 at 10:19 AM, mdipierro mdipie...@cs.depaul.edu wrote: because those people are influential people in the Django community, the same people posting negative comments about web2py everywhere. I am not sure whether such comments matter. People seriously using such development tools will have a good look before they embark on an expensive journey anyway, and I think in that regard web2py has a lot going for it apart from the lack of usable up-to-date documentation Let's get good apps out, that will spread more good word about the tools we use than any silly comments on time wasting web sites I for my part can vouch that so far development with web2py has been - a bit faster than with RoR - far more legible code than with RoR - I managed to hire 4 good people so far to to web2py work for me. They seem all competent, and so far have delivered in time and to specs. No exemption so far, and that's a quite unique experience for me (when developing a similar project with RoR I had hundreds of applicants but in the end nobody delivered in tiome and to specs and it turned into a financial nightmare until the whole project was shelved) This weekend I am going to present the first version of my medical web app (pre alpha, but seemingly functional) at a medical conference. If acceptance is good and no major hickups during demo (when lots of doctors are going to hammer it all at the same time) we'll go public with the project. I am then happy to give a testimony on theweb2py web site of our experience so far, including the exceptional experience of being able to easily hire good competent developers familiar with web2py, as well as the incredible responsiveness and helpfulness of this list with a very low signal:noise ratio Horst --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:23258] Re: upload filename
Strange because i did break out the filename building to a function. And both the appadmin and the app download works jut fine. def __db_filename(tablename, fieldname, filename): import re, uuid, base64 re_extension = re.compile('\.\w{1,5}$') m = re_extension.search(filename) e = m and m.group()[1:] or 'txt' uuid_key = str(uuid.uuid4()).replace('-', '')[-16:] encoded_filename = base64.b16encode(filename).lower() newfilename = '%s.%s.%s.%s' % \ (tablename, fieldname, uuid_key, encoded_filename) # for backward compatibility since upload field if 128bytes #newfilename = newfilename[:122]+'.'+e newfilename = newfilename + '.' + e return newfilename /R On Jun 3, 7:19 pm, mdipierro mdipie...@cs.depaul.edu wrote: Cannot be done because it would break the download method. There are lots of tricks involved in making this work fast and smoothly. Mossimo On Jun 3, 11:57 am, Robert Marklund robbelibob...@gmail.com wrote: Maybe you should expose the filename making as a method: uuid_key = str(uuid.uuid4()).replace('-', '')[-16:] encoded_filename = base64.b16encode(filename).lower() newfilename = '%s.%s.%s.%s' % \ (self.table._tablename, fieldname, uuid_key, encoded_filename) # for backward compatibility since upload field if 128bytes newfilename = newfilename[:122]+'.'+e self.vars['%s_newfilename' % fieldname] = newfilename fields[fieldname] = newfilename So that people with there own fileuploads can make use of the appadmin . /Robert -- __ Robert Marklund Phone: +46 (0)46 19 36 82 Mobile: +46 (0)70 213 22 76 E-mail: robbelibob...@gmail.com __ --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---