[web2py] Re: any web2py book?

2012-10-21 Thread John-Kim Murphy
You can try the web2py Application Development Cookbook: http://www.amazon.com/web2py-Application-Development-Cookbook-Martin/dp/1849515468 On Sunday, October 21, 2012 10:31:23 PM UTC+9, Jscriptor09 wrote: Is there a good web2py book outhere (paer or electronics). I got the online manual

[web2py] Re: web2py uWSGI cherokee -- I give up

2012-05-16 Thread John-Kim Murphy
These are the best guides for installing Web2Py + Cherokee: - http://stackoverflow.com/questions/4332514/set-up-cherokee-web2py-on-ubuntu-10-04-lucid/4528543#4528543 - Based on my personal experience from installing Web2Py on Cherokee about a year ago -

[web2py] PythonAnywhere.com

2012-04-22 Thread John-Kim Murphy
PythonAnywhere.com is a new Python Platform-as-a-Service. Looks pretty cool, and Web2Py version goog_748665621.98.2 is supportedhttp://www.pythonanywhere.com/batteries_included/ out of the box! Maybe this is where I will host the latest web app ideas I've had. John

[web2py] Re: Modify T() function

2012-03-28 Thread John-Kim Murphy
Hmm.. I had this idea a long time ago. Never got around to implementing it, though. Here's an email that was sitting in my drafts box for over a year. It's got some additional suggestions, too: The T object and simple internationalization is one of the reasons I chose the Web2Py framework.

[web2py] PyCon US 2012 Web2Py talk

2012-03-16 Thread John-Kim Murphy
Massimo gave a good introduction to Web2Py at PyCon US 2012. The video is here http://pyvideo.org/video/714/web2py-ideas-we-stole-and-ideas-we-had. In the video, he builds a web site URL bookmarking/shortening app. @Massimo: any plans to share the source code? I was planning to make a very

[web2py] Re: Is the classic green and black layout still available?

2011-07-27 Thread John-Kim Murphy
Someone posted these earlier: http://groups.google.com/group/web2py/msg/954dfcfd1adeb440 I think you're looking for the second attachment, web2py.plugin.layout_blank_1_81_5 On Jul 26, 10:08 am, G glenn.calt...@gmail.com wrote: Hi, I think the former green and black default layout looks very

[web2py] Re: plugin_wiki

2011-02-11 Thread John-Kim Murphy
The green theme is from a previous version of web2py (pre 1.89?) If you really want it, Chris Steel uploaded a plugin (http:// groups.google.com/group/web2py/msg/954dfcfd1adeb440) that will restore it. The plugin_wiki just adds functionality to your app without visually altering it. It adds a new

[web2py] Re: Cloud hosting company

2011-02-07 Thread John-Kim Murphy
Deploy Web2py on Amazon elastic computing infrastructure: http://www.scribd.com/doc/26436821/Howto-deploy-Web2py-on-amazon-Ec2 You can get a free instance for a year: http://aws.amazon.com/free/ On Feb 8, 12:50 am, stargate kyoukh...@gmail.com wrote: Does anybody know of a hosting company that

[web2py] Prevent (ajax *.load) views from being indexed by search engines?; redirect to component's container when not loaded by ajax?

2011-01-16 Thread John-Kim Murphy
This URL has been indexed by Google: http://www.koreabites.com/inbite/inbite/ajax_signup_form.load I would prefer this URL to be indexed: http://www.koreabites.com/inbite/inbite/index/ Is there a way to prevent certain actions/views from being indexed by search engines? Also, is there a way to

Re: [web2py] Re: Running PHP on top of Web2Py

2011-01-08 Thread John-Kim Murphy
From your original message, I was assuming you did not wish to run a PHP server at all. If running a PHP server is allowed, it is possible to run Web2Py and PHP side-by-side, in parallel: - http://web2py.relevantmatter.com/welcome/ - http://web2py.relevantmatter.com/presite/phpinfo.php3

[web2py] Re: Newbie Problems with Cherokee + Web2py

2011-01-05 Thread John-Kim Murphy
Try using the most recent instructions for getting Web2Py working with Cherokeehttp://stackoverflow.com/questions/4332514/set-up-cherokee-web2py-on-ubuntu-10-04-lucid/4528543#4528543 . I documented the steps I took about two weeks ago. The other

[web2py] crud.search() fields parameter ignored, also search difficult if a field has an IS_IN_SET() validator.

2011-01-02 Thread John-Kim Murphy
The fields parameter is ignored by crud.search(). I took a peek at the source http://code.google.com/p/web2py/source/browse/gluon/tools.py, and fields is defined on line 3064 of Crud.search(), but never used. Also, if a field has an IS_IN_SET() validator, the crud.search() form gives a Value

[web2py] Running PHP on top of Web2Py

2010-12-29 Thread John-Kim Murphy
I have been thinking about how to run PHP on top of Web2Py. I'm interested in doing this because I want to augment an existing PHP app via Web2Py (For example, use the T() internationalization object; use Web2Py's auth access control). Also it will be easier to port a PHP application to Web2Py

[web2py] Re: Any success getting web2py to run on Cherokee?

2010-12-24 Thread John-Kim Murphy
I just posted some instructions herehttp://stackoverflow.com/questions/4332514/set-up-cherokee-web2py-on-ubuntu-10-04-lucid/4528543#4528543 for Cherokee 0.99.39. I think you can follow the same instructions for 1.0.12, but just be aware that the final Cherokee virtual server platform setup

[web2py] local_import() nested inside local_import() not working

2010-12-09 Thread John-Kim Murphy
I am trying to import a module 'pychimp' from another module 'inbite' using local_import(). Both modules are in my modules directory. When I nest a local_import() inside another local_import() I get an error: c...@inbite.py: local_import('pychimp', reload=True) inbite = local_import('inbite',

Re: [web2py] Re: web2py themes - feeling nostalgic?

2010-12-09 Thread John-Kim Murphy
*You can see the four buttons by creating any action that doesn't have a view explicitly defined for it. So you could add an action to the welcome app default.py controller:* def action_without_a_view(): return dict(message='Buttons are below...') Then browse to

[web2py] Errors when a table references itself (was Re: What does this mean?)

2010-12-09 Thread John-Kim Murphy
My database table started giving errors when I added a field that references itself. I think it is related to the other messages in this thread because I get the same error message: RuntimeError: Using a recursive select but encountered a broken reference This error is raised after I use the

Re: [web2py] Errors when a table references itself (was Re: What does this mean?)

2010-12-09 Thread John-Kim Murphy
*I figured it out. I needed to add this validator:* db.inbite.parent.requires = IS_EMPTY_OR(IS_IN_DB(db, 'inbite.id', zero='None')) Otherwise the appadmin insert was inserting rows with parent=0, thus introducing a reference to a non-existent row. This also happens with the Web2Py book example

Re: [web2py] Re: Errors when a table references itself (was Re: What does this mean?)

2010-12-09 Thread John-Kim Murphy
? On Dec 9, 5:53 pm, John-Kim Murphy left...@gmail.com wrote: *I figured it out. I needed to add this validator:* db.inbite.parent.requires = IS_EMPTY_OR(IS_IN_DB(db, 'inbite.id', zero='None')) Otherwise the appadmin insert was inserting rows with parent=0, thus introducing a reference

[web2py] format vs represent vs IS_IN_DB(..., label='', ...)

2010-12-09 Thread John-Kim Murphy
In the Web2Py book section describing the format attribute of a table there is a brief mention of represent. It seems they serve related but different purposes. Also the label parameter of IS_IN_DB() is also very similar. They all have the same format, anyways (and accept lambda functions) What

Re: [web2py] Re: making layout plugin

2010-11-10 Thread John Kim Murphy
I kind of stopped working on it after I learned that the Web2Py nightly has a default layout that is much more pleasing to the eye. I just wanted to demo my Web2Py appliances with a better looking theme. You can grab what I have, though: