[web2py] I made changes, now auth() broken?

2011-12-29 Thread lyn2py
I wrote my own default.py file starting from scratch, but I retained the user() function: def user(): return dict(form=auth()) Everything else in the file is new or modified. The registration, login forms load fine, but I am unable to register a new user. The page just seemed to reload and

[web2py] Re: I made changes, now auth() broken?

2011-12-29 Thread lyn2py
Update: I tried to add a new user using appadmin but it doesn't work either. I'm using 1.99.4 stable On Dec 29, 4:01 pm, lyn2py lyn...@gmail.com wrote: I wrote my own default.py file starting from scratch, but I retained the user() function: def user():     return dict(form=auth())

[web2py] Re: I made changes, now auth() broken?

2011-12-29 Thread lyn2py
RESOLVED. It was a missing = sign in layout.html: script src={{**=**URL('static','js/application.js')}}/script Who knew an = could be the cause of it... Fortunately there is Firebug. Sorry for the noise. On Dec 29, 4:08 pm, lyn2py lyn...@gmail.com wrote: Update: I tried to add a new user

[web2py] working slower than PHP on shared hosting

2011-12-29 Thread Zen Master
Hi guys, i installed web2py on my shared hosting a/c and configured a index.py as CGI/FASTCGI gateway and then configured .htaccess to send all traffice thru this index.py but it seems to be working slower than PHP. i complied the app and set migrate=False to disable migration and tried again

[web2py] Web2py

2011-12-29 Thread miroslavgojic
When I start web2py I have message: Internal server error, and link to ticket but I can't open ticket... And often it is happen that I can't close web2py server just stay on desktop and I can't close the server window.

Re: [web2py] Re: Published jsTree and MPTT plugins

2011-12-29 Thread Vasile Ermicioi
after installing and navigating to myapp/plugin_jstree I got this errorinvalid view (plugin_jstree/index.html)

[web2py] Re: Janrain Engage OR normal register/login

2011-12-29 Thread Anthony
See Multiple login forms at the end of this section: http://web2py.com/books/default/chapter/29/9#Other-login-methods-and-login-forms. There's also: http://www.web2pyslices.com/slices/take_slice/124 http://www.web2pyslices.com/slices/take_slice/28 Anthony On Thursday, December 29, 2011

[web2py] Re: How to set custom CSS classes for SQLFORM widget input in web2py

2011-12-29 Thread Kenny Meyer
Thanks Anthony. You should add the lambda hint should be added to your StackOverflow answer.

[web2py] Re: How to set custom CSS classes for SQLFORM widget input in web2py

2011-12-29 Thread Anthony
Already done. On Thursday, December 29, 2011 8:14:00 AM UTC-5, Kenny Meyer wrote: Thanks Anthony. You should add the lambda hint should be added to your StackOverflow answer.

[web2py] Re: Published jsTree and MPTT plugins

2011-12-29 Thread LightDot
Looks excellent! I'll have use for these in my next project and I'll definitely post feedback. Your plugins are greatly appreciated. I'm currently using solidtable, paginator, suggest widget and tablecheckbox on a project and these have simplified my work tremendously. I only had to modify

[web2py] Optimizing web2py app for GAE

2011-12-29 Thread Joseph Jude
Hi all, As much as I'm happy to reach the front page of hacker news with minnaedu.appspot.com, it threw me out of the free limits of GAE. What surprised me was that when the number of visitors to the page was just 500 there are just 2 posts (basically this was a blog engine), I already

[web2py] Re: write view into an html file

2011-12-29 Thread Adi
Yes, indeed it works like a charm... We are switching DIVs into a table format, but everything else is good... Thank you Paolo! A.

Re: [web2py] Web2py

2011-12-29 Thread Vasile Ermicioi
I guess the error you see is in welcome app (the default one), you can access ticket from admin app http://localhost:8000/admin

[web2py] Re: Book translation

2011-12-29 Thread Mirek Zvolský
Great, thanks.

Re: [web2py] Field vs id

2011-12-29 Thread Richard Vézina
I think you need to look into keyed table into the book or legacy database where it talks id key different from surrogate (artificial key id) that web2py use internally for relation... Richard On Thu, Dec 29, 2011 at 1:55 AM, JF jf_sic...@hotmail.com wrote: I think this information was

[web2py] Janrain Engage OR normal register/login

2011-12-29 Thread Thomas Dall'Agnese
Hi, Is it possible to allow normal login in addition to login via RPX (janrain engage)? If I activate RPX, I cannot register through the normal process. Is it possible to keep the normal login as well as the RPX one? Best regards, Thomas

[web2py] Re: need help with xmlrpclib

2011-12-29 Thread Mirek Zvolský
This run on localhost. www.ereceips-server.com is redirected inside the Windows hosts files (to localhost). In 1st case (without transport=) all works. In 2nd case I just added transport=xmlrpclib.Transport(). But this is just instance of the basic class Transport(), not my own

[web2py] Published jsTree and MPTT plugins

2011-12-29 Thread kenji4569
Hi all, I and Yusuke Kishita had developed jsTree and MPTT plugins which manages tree structured data, and now published them on our web2py plugin site with demos and codes: [jsTree Plugin] http://dev.s-cubism.com/plugin_jstree [MPTT Plugin] http://dev.s-cubism.com/plugin_mptt The MPTT

[web2py] Re: PDF Book Aesthetics

2011-12-29 Thread glimmung
Bruce, On Dec 26, 5:06 pm, Bruce Wade bruce.w...@gmail.com wrote: I honestly don't understand what the big deal is. It is a little single line at the bottom of the page. Packt provides your FULL address on the bottom of their books, when buying from their site. Did you read the subject line

[web2py] Re: write view into an html file

2011-12-29 Thread Paolo Caruccio
The plugin has all needed libraries to work and not requires that you install others. I used it in a my app and worked like a charm. Give it a try.

[web2py] Re: PDF Book Aesthetics

2011-12-29 Thread glimmung
Hi Massimo, On Dec 26, 4:29 pm, Massimo Di Pierro massimo.dipie...@gmail.com wrote: OK. It is now black and smaller. Great - thank you! -- PhilK

[web2py] Asynchronous background processes with web2py

2011-12-29 Thread Kenny Meyer
The question is here: http://stackoverflow.com/questions/8668379/asynchronous-background-processes-with-web2py Please, consider answering on StackOverflow so the community can value your answers.

[web2py] Re: new appliances - Happy Holidays

2011-12-29 Thread Vincent
looks great, thanks btw the title Web2py Example Appliances is a dead link On Dec 28, 4:41 pm, Khalil KHAMLICHI khamlichi.kha...@gmail.com wrote: Good work.

[web2py] Re: working slower than PHP on shared hosting

2011-12-29 Thread spiffytech
If I read the state dump correctly, your site is running over CGI, the slowest possible way to host a Python website. CGI starts a new process for each request. This is fine for PHP, since the PHP runtime starts up very quickly. The Python virtual machine, however, starts up much more slowly. I

Re: [web2py] Re: working slower than PHP on shared hosting

2011-12-29 Thread Zen Master
thanks buddy! for the insight. let me see whats available with my host ;) On Fri, Dec 30, 2011 at 1:32 AM, spiffytech spiffyt...@gmail.com wrote: If I read the state dump correctly, your site is running over CGI, the slowest possible way to host a Python website. CGI starts a new process for

Re: [web2py] compute on update

2011-12-29 Thread Richard Vézina
Ping! computed field not compute on update... What should I check? Thanks Richard On Wed, Dec 28, 2011 at 4:50 PM, Richard Vézina ml.richard.vez...@gmail.com wrote: Hello, I would like to compute a field on update, but I think all the request.vars needed to my lambda compute function are

[web2py] Programming with web2py

2011-12-29 Thread Jim Steil
Just ran across this today. Is this new, or am I reporting old news? http://www.youtube.com/playlist?list=PL5E2E223FE3777851

Re: [web2py] Programming with web2py

2011-12-29 Thread Richard Vézina
It says that it had been publish the 23 of december... So not to old :) It seems interresting. Richard On Thu, Dec 29, 2011 at 3:54 PM, Jim Steil j...@qlf.com wrote: Just ran across this today. Is this new, or am I reporting old news?

[web2py] Re: SQLFORM.grid ignore_rw option

2011-12-29 Thread Dariel Dato-on
OK. Thanks for the reply! I guess I can set readable=True in my controller for the functions I need.

[web2py] Re: Suggestion: db stats in response.toolbar format

2011-12-29 Thread Massimo Di Pierro
Can you identify the cause of the problem? is it css related? On Dec 29, 12:47 am, lyn2py lyn...@gmail.com wrote: Hi Massimo, 1.99.4 stable The db stats in response.toolbar is one long single line, which is less readable than 1.99.2 (a lot of scrolling). Perhaps the readability can be

[web2py] Re: Web2py

2011-12-29 Thread Massimo Di Pierro
This is most likely a problem with accessing file system. what os? On Dec 29, 11:49 am, miroslavgojic miroslavgo...@gmail.com wrote: When I start web2py I have message: Internal server error, and link to ticket but I can't open ticket... And often it is happen that I can't close web2py server

Re: [web2py] Re: Suggestion: db stats in response.toolbar format

2011-12-29 Thread Richard Vézina
It may css related because I don't have any problem with my own css that come from older web2py version (one line per db request). Richard On Thu, Dec 29, 2011 at 4:41 PM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Can you identify the cause of the problem? is it css related? On

[web2py] Re: Field vs id

2011-12-29 Thread Alan Etkin
Here is a way of editing records with non id fields: In the view construct a URL with the record's field value: {{ =A(edit, URL(controller, edit function, table name, field value)) }} Then, on the controller, you have to get the record by the field value: r = db(db[request.args(0)].field name

[web2py] Re: Published jsTree and MPTT plugins

2011-12-29 Thread kenji4569
after installing and navigating to myapp/plugin_jstree I got this errorinvalid view (plugin_jstree/index.html)Sorry, I should have noted that the plugin requires response.generic_patterns = ['*'] (See db.py in welcome application of the latest version of web2py) to show the demo. (And

[web2py] Re: Published jsTree and MPTT plugins

2011-12-29 Thread kenji4569
after installing and navigating to myapp/plugin_jstree I got this errorinvalid view (plugin_jstree/index.html) Sorry, I should have noted that the plugin requires response.generic_patterns = ['*'] (See db.py in welcome application of the latest version of web2py) to show the demo. (And also

[web2py] Re: Suggestion: db stats in response.toolbar format

2011-12-29 Thread lyn2py
I would think that it is related to HTML (div wrappers or table width), the table column width seems to be infinite in WelcomeApp(v1.99.4 - which is the new layout): tdpreSELECT .../pre/tdtd0.43ms/td The column expands to fit SELECT ... (the actual database code used to query, in my case, sqlite)

[web2py] web2py google app engine deployment

2011-12-29 Thread chawk
I recently registered updated my custom domain to display in the url instead of the my google.appspot domain. However the appspot.domain still shows up on google searches, and i want them to show the custom url. it is probably best just to check the site. if you type the url:

[web2py] grid's showbuttontext

2011-12-29 Thread Nik Go
I've set showbuttontext=False but all i get are tiny buttons without any of the default icons. Did I miss anything during the upgrade?

[web2py] Re: Programming with web2py

2011-12-29 Thread lyn2py
Thanks for sharing, I'll watch the videos when I get the chance. On Dec 30, 4:54 am, Jim Steil j...@qlf.com wrote: Just ran across this today.  Is this new, or am I reporting old news? http://www.youtube.com/playlist?list=PL5E2E223FE3777851

[web2py] access auth in modules

2011-12-29 Thread lyn2py
In controllers, it would look like: @auth.requires_login() def function(): pass How do I implement requires_login (and other auth decorators) correctly in module methods that require access control? Thanks!

[web2py] redirecting python console output to web browser page

2011-12-29 Thread blackshirt
i have a little programming with web2py, with import some library from python-apt... i want to show output from some command/function from that library to the web page.. Output from that script showing on console, not showing on web page, but only result on return value (True / false) send to web

Re: [web2py] access auth in modules

2011-12-29 Thread Bruno Rocha
Access control decorators are designed to work in controller actions only, because actions define workflow of the application, even if you have code in modules, the action is what your user will call. But, you can always use other methods to check permissions etc.. in modulesyou can do [

[web2py] Re: access auth in modules

2011-12-29 Thread Massimo Di Pierro
You can try something like this Create a module auth.py begin module auth.py - def requires_login(): def lazy(f): def lazylazy(f=f): from gluon import current, redirect, URL if not current.session.auth or not

[web2py] Re: access auth in modules

2011-12-29 Thread lyn2py
I think it is excellent to use modules, Bruno. Can you provide some guidance or url where I can learn how to do it in modules rather than models? Thank you, I appreciate your suggestions. On Dec 30, 1:22 pm, Bruno Rocha rochacbr...@gmail.com wrote: Access control decorators are designed to

[web2py] Re: access auth in modules

2011-12-29 Thread lyn2py
Thank you Massimo, my functions/methods takes arguments, so I will try Bruno's method. On Dec 30, 1:42 pm, Massimo Di Pierro massimo.dipie...@gmail.com wrote: You can try something like this Create a module  auth.py begin module auth.py - def requires_login():       def

[web2py] Re: Web2Py on GAE very slow

2011-12-29 Thread Joseph Jude
Christian, Did you manage to write this? I am looking for optimizing the GAE. Would appreciate your inputs. Thanks, Joseph

[web2py] MARKMIN clarification

2011-12-29 Thread lyn2py
Does MARKMIN have issues with processing newlines? Because I can't use formatting here, everything looks like the same text, but in MARKMIN the formatting is ok, only the newlines is not ok. (1) I noticed that newlines don't convert to br in MARKMIN, which is strange. Example: I write this in