[web2py] Re: web2py beautification

2010-03-06 Thread John
There's also http://www.blueprintcss.org/ which appears to be fairly open in its licensing. I think it might be GPL though so it would possibly "taint" the application template. It may still be a nice option for admin. On Mar 6, 9:55 am, "mr.freeze" wrote: > They are under the Creative Commons

[web2py] Web2py Full Text Search Options

2010-09-05 Thread John
Hi all. I'm newby in web2py. How to implement full text search in my web2py web application? I am a big fan of the Xapian search engine library. Any plugin, recipes suggestion ? Thanks , John

[web2py] disable xml, json renders

2010-11-04 Thread john
Any hints? or would I have to modify the web2py source on my deployment? :( John

[web2py:19796] Problem with pack (truncated tar files)

2009-04-14 Thread John
ml. I was right, though not like I was thinking. Turns out the the file was empty (zero bytes). I go back to the mac side, and test the tar file generate by pack. Tar was not happy with the archive, in fact it stopped with web2py_ajax.html galt:Downloads john$ tar -tvf web2py.app.wammo.tar drwxr

[web2py:19803] Re: Problem with pack (truncated tar files)

2009-04-14 Thread John
a version difference bug? John On Apr 14, 10:22 pm, mdipierro wrote: > Is this reproducible? Does the browser make a difference? > Can you try delete everything under web2py/deposit and try again? > > Massimo > > On Apr 14, 7:58 pm, John wrote: > > > > > I ha

[web2py:21759] Re: Webfaction + web2py question

2009-05-13 Thread John
I had also used that one as reference, as it had some stuff towards the end about a change for: LoadModule authz_host_module modules/mod_authz_host.so It seems to me that both of these solutions lack the proper mod_rewrite rules to make this work as I have described. Or is it possible I just di

[web2py:21978] Re: CAS question(s)

2009-05-16 Thread John
Sounds good to me :), I will keep an eye out for the update, and test in my environment when it is ready. Any thoughts on my "print" question (#2)? It only effects folks running behind wsgi and as far as I know. Though it seems that it might be a good idea to stay away from using stdout to sta

[web2py:21994] Re: w2p is here

2009-05-16 Thread John
For what it is worth, Java does a similar thing with jar <-> zip (though taking command line options like tar would) On May 16, 4:14 pm, Markus Gritsch wrote: > On Sat, May 16, 2009 at 6:53 PM, Iceberg wrote: > > > In my Chrome 1.0.154.65, the downloaded "pack all" file has an > > unwanted exte

[web2py] database chema recommendations needed

2015-04-21 Thread John
New to programming and web2py. Been dabbling in web design for a while, building sites with wordpress, plugging things in. My first real project will be a site/app for my sister. Genealogical resources. Lots of records that will need to be added via csv and also via forms. Will also need to be

[web2py] Re: database chema recommendations needed

2015-04-25 Thread John
reference/cite as sources for facts in doing research for building a family tree. Upon further thought, places (State, County, CityTown) be best in it's own table so they each only get stored once. On Tuesday, April 21, 2015 at 10:05:32 AM UTC-5, John wrote: > > New to program

Re: [web2py] web2ruby possible?

2015-05-13 Thread John
+1 воскресенье, 11 сентября 2011 г., 23:35:56 UTC+3 пользователь rochacbruno написал: > > I am more interested in some web2go http://golang.org/ -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/

[web2py] Subtle data integrity bug with web2py

2010-07-09 Thread John Heenan
7;. The actual type of the sqlite imported date with an empty date is 'text' but the type of the date field when entered through web2py is 'null' instead! This means the problem lies with web2py and is easily fixed. All web2py needs to do when parsing dates is to treat a null and an empty string the same way! John Heenan

[web2py] Re: Subtle data integrity bug with web2py

2010-07-09 Thread John Heenan
ked for the relevant table of an uploaded application. Thanks for the quick change. Seems surreal that such a subtle data integrity bug could be fixed in this manner! John Heenan On Jul 9, 11:04 pm, mdipierro wrote: > Thanks for the explanation. It helps clarify a long standing problem. >

[web2py] Fix for web2py to allow sqlite to directly import foreign integer keys correctly

2010-07-10 Thread John Heenan
thout 'INTEGER' added is accidental. To understand why web2py will not work with external imported data without the change, a relevant discussion of dynamic typing issues of sqlite can be viewed in my recent post 'Subtle data integrity bug with web2p' at http://groups.google.com/group/web2py/browse_thread/thread/310ca5f727b70c84# John Heenan

[web2py] Re: cron issue

2010-02-08 Thread John Heenan
un is pushing GlassFish heavily into the enterprise environment. Python based frameworks cannot expect to be competitive with PHP at what PHP is best at (low resource usage) if Python frameworks don't address issues in a practical way that are holding back their adoption (such as resource usage lea

[web2py] Re: cron issue

2010-02-08 Thread John Heenan
Since AchipA is working on other changes to cron.py and cron.py is his, I think I should wait to see if AchipA includes additons with Massimo's preferred format below before being so bold as to submit a patch myself. John Heenan On Feb 9, 10:54 am, mdipierro wrote: > I have no obje

[web2py] Re: cron issue

2010-02-08 Thread John Heenan
e sun is still shining and the sky has not fallen down because of users misbehaving! John Heenan def run( appname, plain=False, import_models=False, startfile=None, ): """ Start interactive shell or run Python script (startfile) in web2py controller env

[web2py] Re: web2py vs. customizing existing e-commerce app

2010-02-10 Thread John Heenan
oming from an environment where pointers to objects are regarded as undesirable evils and maybe hidden (such as with references in C++ passed as function parameters). I hope this helps. John Heenan On Feb 9, 5:22 am, snfctech wrote: > I need to build an order-entry and tracking system for

[web2py] Re: How much memory does web2py need on Unix

2010-02-11 Thread John Heenan
mory units are in KB virtual memory units are 1024 byte units lighttpd: resident memory 3660, virtual memory 59568 python for web2py: resident memory 32816, virtual memory 225824 This is the memory usage of a python console WITHOUT any imports: resident memory 3580, virtual memory 24316 John Heen

[web2py] Re: How much memory does web2py need on Unix

2010-02-11 Thread John Heenan
"I only use lightttpd for static pages and to remap URLs." Plus a UNIX socket between lighttpd and web2py to service web2py requests through FastCGI. John Heenan On Feb 12, 8:59 am, John Heenan wrote: > How about web2py in a VPS using less than 40MB RAM? > > You can reduce

[web2py] Re: How much memory does web2py need on Unix

2010-02-11 Thread John Heenan
(this gives me more control than using routes.out of routes.py). John Heenan server.modules = ( "mod_access", "mod_alias", "mod_compress", "mod_rewrite", "mod_fastcgi&

[web2py] Re: How much memory does web2py need on Unix

2010-02-11 Thread John Heenan
is is what I use: BIND_ADDRESS='/tmp/fcgi_handlerzgus.sock' John Heenan On Feb 12, 9:50 am, raven wrote: > Thanks for the details on modifying the lighttpd configuration file. > Actually, I am pretty confident about doing this, having modified it > to connect to fossil. >

[web2py] Re: How much memory does web2py need on Unix

2010-02-11 Thread John Heenan
Hello Graham, whoever you are. You sound highly confused, clueless aboout how to present objective data and a fairly typical bombastic nerd of the type that clogs up and plagues forums. Get a life John Heenan On Feb 12, 11:32 am, Graham Dumpleton wrote: > On Feb 12, 9:59 am, John Hee

[web2py] Re: How much memory does web2py need on Unix

2010-02-11 Thread John Heenan
e existing WGSI infrastructure but this is irrelevant. The code is short and simple. This is all irrelevant to the web server. 5) Using the internal web server with web2py is not recommended. The question remains what is the best choice for an external web server. The answer is certainly not bloatware lik

[web2py] Re: How much memory does web2py need on Unix

2010-02-11 Thread John Heenan
provide. John Heenan On Feb 12, 12:44 pm, John Heenan wrote: > Where is the perspective? > > 1) Even with an 'ideal configuration that does not use MPM pre- > forking, Apache still uses threads to service each request (for static > files). This is still more inefficient t

[web2py] Re: How much memory does web2py need on Unix

2010-02-11 Thread John Heenan
those he regards as 'inferiors' or have others email me privately lauding him. Graham can continue bore his 'inferior underlings' to tears with his theories. Results is all that counts in the end, not theory. John Heenan On Feb 12, 3:14 pm, Graham Dumpleton wrote: > On Feb 1

[web2py] Re: How much memory does web2py need on Unix

2010-02-12 Thread John Heenan
pache with mod_wgsi for 'dynamaic content', according to a link. How bizarre. It appears Apache is so bloated for static content it is unusable for tight VPS configurations. John Heenan On Feb 12, 6:30 pm, Graham Dumpleton wrote: > On Feb 12, 6:16 pm, John Heenan wrote: > > >

[web2py] Re: How much memory does web2py need on Unix

2010-02-12 Thread John Heenan
nt thread is to be closed down? This is sending a bad message to anyone who has an agenda to push and about how to achieve it in the face of unconformable plain fact. Just bully your way through with ridicule, insults and tons of irrelevancy John Heenan On Feb 13, 12:41 am, mdipierro wrote: >

[web2py] Re: How much memory does web2py need on Unix

2010-02-12 Thread John Heenan
As requested I have placed a howto on web2pysplices at http://www.web2pyslices.com/main/slices/take_slice/57 I have written a considerable preface to clarify issues and to indicate why we should pay attention to issues concerned with keeping memory use low. John Heenan On Feb 13, 2:41 am

[web2py] Re: How much memory does web2py need on Unix

2010-02-13 Thread John Heenan
/main/slices/take_slice/57 as before. John Heenan On Feb 13, 10:25 pm, raven wrote: > Thank you for the lighttpd howto. It looks very helpful. Hopefully, > I will be able to clear some time next week to give it a go. > > I noticed that, at the end, you spend time on URL remapping. &

[web2py] Re: How much memory does web2py need on Unix

2010-02-13 Thread John Heenan
nstalled. There is a coherent presentation on this type of streaming, on what needs to be done to video files and a video example at http://flowplayer.org/plugins/streaming/pseudostreaming.html John Heenan On Feb 14, 1:44 am, mdipierro wrote: > Very well done. > > Did you ever try strea

[web2py] Re: Execute file in web2py environment fails with cron

2010-02-14 Thread John Heenan
Get rid of the standard output redirect and append symbol for shell use, '>>', in your crontab. Cron jobs do not use a shell. Standard output is passed back to web2py and will appear in your web2py logs. John Heenan On Feb 14, 6:13 pm, Thadeus Burgess wrote: > When runnin

[web2py] An enhanced BEAUTIFY class

2010-02-15 Thread John Heenan
slice to be an effective and practical example of the use of the enhancement. Thanks John Heenan -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this g

[web2py] Re: An enhanced BEAUTIFY class

2010-02-16 Thread John Heenan
tem.title, b_custom=item.custom, d_products= _product_list, e_category_documentation=_document_list, f_video=_video_list, g_about=item.about, )) As for the quality of the linked videos in the page, I received a polite complaint from a senior executive of a well known corporat

[web2py] Re: An enhanced BEAUTIFY class

2010-02-16 Thread John Heenan
ve my changes overridden every time I do an upgrade. Even a hook in a low level inherited base class would be enough, if using the hook would enable the name of the helper to be determined and to override the helper. However I reckon this is too much to ask! John Heenan On Feb 17, 11:57 am, villas

[web2py] Re: An enhanced BEAUTIFY class

2010-02-17 Thread John Heenan
web2py core. John Heenan On Feb 17, 2:55 pm, mdipierro wrote: > Sorry I did not comment. I think this this can be very useful but it > should not be a replacement for the current beautify. I think it is > important to leave the keys unchanged for debugging purposes. That is > what

[web2py] Re: An enhanced BEAUTIFY class

2010-02-17 Thread John Heenan
Thanks for your comments Thadeus. As mentioned to Massimo, the normal behaviour of BEAUTIFY is not altered by the sample code. John Heenan On Feb 17, 1:08 pm, Thadeus Burgess wrote: > I will say this, it is alot better, because you can hardly even tell > it is a prototyping table, it co

[web2py] Re: An enhanced BEAUTIFY class

2010-02-17 Thread John Heenan
ayout.html'}} {{=BEAUTIFY(response._vars, keyfilter=lambda key: ' '.join([x.capitalize() for x in key[2:].split('_')]) if key[1]=='_' else key)}} John Heenan On Feb 18, 6:47 am, mdipierro wrote: > I looked again. > > You try to achieve two things: > 1

[web2py] Re: An enhanced BEAUTIFY class

2010-02-18 Thread John Heenan
bout using the new BEAUTIFY at http://www.web2pyslices.com/main/slices/take_slice/58 John Heenan On Feb 18, 5:27 pm, John Heenan wrote: > Thanks Massimo > > The keyfilter example you provided does not work but this one does > with the current BEAUTIFY in the trunk > keyfilter=lambd

[web2py] Re: How much memory does web2py need on Unix

2010-02-18 Thread John Heenan
e way' with minimal involvement. John Heenan On Feb 19, 5:10 am, raven wrote: > Well, I gave this a try, and ended up with 404 errors. > > fcgihandler.py suggests adding to lighttpd.conf > > server.error-handler-404 = '/test.fcgi' > > This does not help, nor do

[web2py] Re: How much memory does web2py need on Unix

2010-02-18 Thread John Heenan
e than once then kill all fcgihandler.py python processes with ps number where number is the first number on each line of 'ps ax' that includes fcgihandler.py. Restart web2py with python fcgihandler.py & or similar 5) Check file nohup.out in /var/www/web2py for errors John Heenan

[web2py] Re: How much memory does web2py need on Unix

2010-02-18 Thread John Heenan
Raven $SERVER["socket"] == "0.0.0.0:80" { will allow all IP interfaces. John Heenan On Feb 19, 11:42 am, John Heenan wrote: > Raven, > > 1) Use > $SERVER["socket"]  == "100.101.102.103" { > instead of > $HTTP["host"] == &q

[web2py] Re: How much memory does web2py need on Unix

2010-02-19 Thread John Heenan
John Heenan On Feb 20, 7:33 am, Thadeus Burgess wrote: > ps aux | grep "wsgi" && ps aux | grep "postgres" && ps aux | grep "python" > USER PID %CPU %MEMVSZ RSS TTY STAT START TIME COMMAND > www-data 3949 0.2 3.9 33

[web2py] Re: How much memory does web2py need on Unix

2010-02-19 Thread John Heenan
VPS and am working on a stripped down /etc/ lighttpd.conf file that also includes SSL access. When it is ready I will make the file available. John Heenan On Feb 20, 2:55 pm, Thadeus Burgess wrote: > Happy ? > > ps aux | grep "apache" && ps aux | grep "wsgi"

[web2py] Re: How much memory does web2py need on Unix

2010-02-20 Thread John Heenan
necessary certificate files) I have also added in some notes on accessing web2py admin without starting up a new instance of Python. This works securely even without enabling SSL for lighttpd. John Heenan On Feb 20, 4:19 am, raven wrote: > Now that I have web2py working with lighttpd, instead of

[web2py] Re: How much memory does web2py need on Unix

2010-02-20 Thread John Heenan
y be one instance of Python running on a tight VPS. John Heenan On Feb 20, 4:11 pm, mdipierro wrote: > please do. I could use this. > > On Feb 19, 11:35 pm, John Heenan wrote: > > > Thanks. > > > From below we get the following resident memory use (RSS) for Apache >

Re: [web2py] read file in GAE?

2010-02-20 Thread John Kirkham
The live GAE environment removes all filesystem access. In order to access something in your static directory you'll need to access it via http (construct its URL). Alternatively, you can dump some static content into the datastore or blob-store ( http://code.google.com/appengine/docs/python/blob

[web2py] Re: How much memory does web2py need on Unix

2010-02-20 Thread John Heenan
nised, not slurred. mod_rewrite is not a burden. It allows lighttpd to serve static file for web2py instead of web2py serving them. This is a recognised benefit of using an external web server for web2py. John Heenan On Feb 21, 3:49 am, Thadeus Burgess wrote: > As another added note.I can

[web2py] Re: How much memory does web2py need on Unix

2010-02-20 Thread John Heenan
y and low cpu use, no hard evidence has been presented Apache can match Lighttpd and no serious attempt has been made to present such hard evidence. As I said before, can we PLEASE move on. John Heenan On Feb 21, 3:12 pm, Thadeus Burgess wrote: > You need to change your tone of voice John

[web2py] Re: * web2py's Brand *

2010-03-03 Thread John Heenan
essively hammered Windows and Windows users as dumb? John Heenan > On Mar 3, 10:10 am, Wobmofo wrote: > > > Here is the results (from only 11 responses): > > >http://spreadsheets.google.com/pub?key=tKCyJuTYjVuWHWNFyPcZ51w&single... > > >http://spreadsheets.go

[web2py] Re: * web2py's Brand *

2010-03-04 Thread John Heenan
ant to the vast majority of us. John Heenan On Mar 4, 1:02 pm, mdipierro wrote: > On Mar 3, 7:23 pm, John Heenan wrote: > > > On Mar 4, 2:17 am, mdipierro wrote: > > > > Some of the answers are funny. Mostly they are consistent with one > > > exception. > >

[web2py] Re: * web2py's Brand *

2010-03-04 Thread John Heenan
nd to a certain extent the Python model. For example Guido do not write the new version of the GIL following the exposure of the 'Beazly Effect'. H) Massimo is now open to discussion about a foundation. As I said, we need to be realistic. Not well meaning. John Heenan On Mar 5, 10:33 am,

[web2py] Re: * web2py's Brand *

2010-03-05 Thread John Heenan
Maybe you have a relevant coherent point. But damned if I know what it is. John Heenan On Mar 5, 9:45 pm, villas wrote: > I said: > > > ... one thing's for sure,  [multi-billion orporations] are not > > evolving at our pace, and most of us are streets behind Massimo! &g

[web2py] Re: * web2py's Brand *

2010-03-05 Thread John Heenan
If my web sites grows and I need to employ people I will seriously consider porting the web site over to Django or Pylons first, if I don't see better prospects for Web2py. Rather ironic, use Web2py for prototyping, not the real world. John Heenan On Mar 6, 12:08 am, mdipierro wrote: >

Re: [web2py] Re: How to install and run web2py on Jython ?

2010-04-07 Thread John Cobo
at least the problem we had then, by making alternations mutually exclusive. >> >> >> >>> On Apr 7, 6:14 am, JC11 wrote: >>>> Thanks, >> >>>> I am sure I searched in the 'book', how silly of me not to find it. >>>

Re: [web2py] Re: How to install and run web2py on Jython ?

2010-04-08 Thread John Cobo
Jonathan, Your new template.py solves the problem ! Super. Thanks a lot. John C. > > -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this g

Re: [web2py] Re: Postgresql connection from Jython not working for me

2010-04-08 Thread John Cobo
3, in self._pool_connection(lambda params=params:zxJDBC.connect(*params)) DatabaseError: driver [org.postgresql.Driver] not found Does that help ? John C. -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send e

[web2py] Re: Running web2py and lighttpd in remote server.

2010-08-14 Thread John Heenan
Hi Wafto Try replacing line ".fcgi" => ( with line "/handler_web2py.fcgi" => ( You can find more information at http://www.web2pyslices.com/main/slices/take_slice/57 If this does not work then please let us know what the server error log s

[web2py] Re: jqGrid and checkboxe

2010-08-14 Thread John Heenan
t the effort into getting skilled up using jqGrid. I use web2py with jqGrid nearly every day for internal administration. They work well together. Python and web2py gluon.serializers.json that uses the simplejson contrib makes using jqGrid in web2py very convenient. John Heenan

[web2py] Re: Web2py and threads

2010-08-24 Thread John Heenan
, even on this forum, who will ridicule anyone who points out the obvious. Expect abuse from this reply. John Heenan On Aug 24, 3:21 pm, mdipierro wrote: > P.S. In the end the bottle neck is ALWAYS database access. > > On Aug 24, 12:20 am, mdipierro wrote: > > > In Java a serv

[web2py] Re: Web2py and threads

2010-08-24 Thread John Heenan
Why should web2py be forced into using a thread model? Anyone who writes PC applications avoids thread as if they are a plague. Even academics openly call using threads evil. Here is an article by Edward A. Lee professor at Berkely University with the title "The Problem with Threads" (PDF

[web2py] Re: Web2py and threads

2010-08-24 Thread John Heenan
Lee's 'The Problem with Threads' link is at http://www.eecs.berkeley.edu/Pubs/TechRpts/2006/EECS-2006-1.pdf There is in Lee at http://ptolemy.eecs.berkeley.edu/%7Eeal/ John Heenan On Aug 25, 5:00 am, John Heenan wrote: > Can't we at least have an acknowledgement that

[web2py] Re: Web2py and threads

2010-08-25 Thread John Heenan
#x27; that affected the GIL. Also I don't think there is a single experienced Python user that trusts the GIL. John Heenan On Aug 25, 12:40 pm, pierreth wrote: > I don't understand. The link is broken at the moment. > > Do you mean using only on thread and dispatching using

[web2py] Re: Web2py and threads

2010-08-25 Thread John Heenan
olution is not healthy. John Heenan On Aug 26, 2:27 am, mdipierro wrote: > On Aug 25, 11:00 am, Phyo Arkar wrote: > > > Did I Read that reading files inside controller will block web2py , Does it? > > No web2py does not block. web2py only locks sessions that means o

[web2py] Re: Web2py and threads

2010-08-25 Thread John Heenan
there is little effective difference. However Apache was unable to scale as well as the Microsoft IIS web server. John Heenan On Aug 26, 6:46 am, mdipierro wrote: > the time to execute a typical web2py action my server is 10-20ms. The > time to open a file or write a small file is so smal

[web2py] How to display variables from request.vars in a form field?

2010-10-09 Thread John Tynan
Has anyone here tried to display variables from request.vars in a form field? I am getting a strange result, where the variables are displayed properly on the form However, after the form is submitted, I notice that the variables are duplicated. See this screen capture: http://publicradioroadtr

[web2py] Re: request for fcgi users

2010-10-22 Thread John Heenan
using REAL FastCGI are lost as web2py converts FastCGI to WGSI internally. There is a slicehost entry that says it is using FastCGI but is really using WGSI: http://www.web2pyslices.com/main/slices/take_slice/68 John Heenan On Oct 22, 12:10 pm, Jonathan Lundell wrote: > I'd like to h

[web2py] making layout plugin

2010-11-09 Thread John Murphy
gin? (Like: http://www.web2py.com/layouts/static/plugin_layouts/plugins/web2py.plugin.layout_ConcreteV2.w2p ) I'd be happy to share my work if anyone is interested. I intentionally picked a free, GPL'ed theme. Thanks, John -- www.leftium.com <http://www.leftium.com/?sig_gmail>

[web2py:24481] Bug with fix in web2py version 1.64.2 for fcgihandler.py users

2009-06-19 Thread John Heenan
if application_error_handler != None: error_handler and application_error_handler need to have the same name to allow web2py to startup. John Heenan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework&quo

[web2py:25221] Re: Custom forms and dealing with error messages

2009-06-29 Thread John Aherne
not to see any errror messages unless I place them myself. Unfortunately, they still appear in the old position as though I had made no changes. What have I overlooked. John Aherne On Sun, Jun 28, 2009 at 9:29 PM, jjahe...@googlemail.com < jjahe...@googlemail.com> wrote: > > Thanks for

[web2py:26288] detecting slow page response on mobile devices

2009-07-11 Thread John Divon
time it took the page to be displayed on the user's mobile phone, and if it was successfully displayed? Thanks, John. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To pos

[web2py:26296] Re: detecting slow page response on mobile devices

2009-07-11 Thread John Divon
ndell wrote: > On Jul 11, 2009, at 1:29 PM, John Divon wrote: > > > I have an application that serves mobile users as well. > > For the mobile users, I need to be able to find out if loading the > > page takes too much time. > > I know that the user uses his mobile to view

[web2py:31076] Session not saved during an internal redirect

2009-09-15 Thread John Heenan
omething I can do to change this or is there a convenient workaround? Saving the flash message using code in a module is hardly thread safe. Besides it did not work. Thanks John Heenan sample controller code: def test1(): session.flash='redirect from test1()' redirect(URL(r=re

[web2py:31080] Re: Session not saved during an internal redirect

2009-09-15 Thread John Heenan
t2')) def test2(): if session.msg1: response.flash=session.msg1 del session.msg1 return dict() John Heenan On Sep 16, 11:34 am, "mr.freeze" wrote: > Session.flash is automatically copied to response.flash after > redirection so you shouldn't n

[web2py:31100] Problem with changing writeable attribute of a database field

2009-09-16 Thread John Heenan
tings.table_user.username.writeable=True return dict(form=auth()) The field does not change to a writeable one in the registration action. I don't know what else I need to do to make the field writeable. John Heenan --~--~-~--~~~---~--~~ You received this mes

[web2py:31148] Re: Problem with changing writeable attribute of a database field

2009-09-16 Thread John Heenan
lso include the username field for user/retrieve_password ? John Heenan On Sep 16, 5:09 pm, John Heenan wrote: > I want to make an added username field of a custom auth_user table > writeable with registration. > > This is how the custom non writeable field is defined: > db.

[web2py:31194] Re: Problem with changing writeable attribute of a database field

2009-09-17 Thread John Heenan
t.args and request.args[0] in ('register', 'login'): auth.settings.table_user.username.writable=True return dict(form=auth()) John Heenan On Sep 17, 12:07 pm, mdipierro wrote: > no, but there is a retrieve_username. > > Mind that web2py knows how t

[web2py:31734] Re: cooperation between applications

2009-09-26 Thread John Heenan
it is a small price to pay for being able to compile views. John Heenan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegroups.com To uns

[web2py:32077] Well integrated cart and information site using web2py

2009-10-01 Thread John Heenan
account. I have lots of flexibility for additions. Exactly what I want Thank you Web2py and Python. John Heenan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, sen

[web2py:32125] Re: Well integrated cart and information site using web2py

2009-10-02 Thread John Heenan
ld go with the enterprise image Web2py is portraying. All someone would need to do for Amazon EC2 would be to prepare a suitable ami image and make it public. There does not appear to be a way to do an equivalent for Slicehost (backed up server images cannot be made public) John Heenan On Oct 2, 11:

[web2py:32127] Re: Well integrated cart and information site using web2py

2009-10-02 Thread John Heenan
dit card number due to security issues such as reuse of hard drive space that has not been wiped and potential security accidents. Amazon AWS EC2 has had its share of security embarrassments. John Heenan --~--~-~--~~~---~--~~ You received this message because you are su

[web2py:32129] Re: Well integrated cart and information site using web2py

2009-10-02 Thread John Heenan
dit card number due to security issues such as reuse of hard drive space that has not been wiped and potential security accidents. Amazon AWS EC2 has had its share of security embarrassments. John Heenan --~--~-~--~~~---~--~~ You received this message because you are su

[web2py:32186] Re: Ordering system

2009-10-04 Thread John Heenan
the server can simply determine what a customer wants to do and just simply just regenerate the data for display using a different orderby. Hence you can get a lot of sophistication for a little effort that avoids a complicated nightmare from messing about with the browser DOM. John Heenan --~--~---

[web2py:32444] Re: web2py wiki

2009-10-07 Thread John Heenan
2py.com/wiki This is from http://www.mediawiki.org/wiki/Manual:Short_URL http://example.com/wiki/Page_title (this is the standard, same as in Wikipedia) http://wiki.example.com/Page_title (not recommended!) John Heenan --~--~-~--~~~---~--~~ You received

[web2py:33082] CRON issue???

2009-10-17 Thread John Divon
: Shouldn't it be params[:5] instead of params[:4] If we change it to 5 everything seems to be OK, but we still need to check this thing since we only took a quick look. Regards, John. --~--~-~--~~~---~--~~ You received this message because you are subscri

[web2py:38349] Book errata and minor bug in clean sessions script

2010-01-05 Thread John Heenan
irst. John Heenan -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit

[web2py:38351] Re: Book errata and minor bug in clean sessions script

2010-01-05 Thread John Heenan
On Jan 6, 1:40 am, John Heenan wrote: > > Here is a hint for using the book listed command > nohup python web2py.py -S yourapp -R scripts/sessions2trash.py & > in /etc/rc.local, to enable automatic start of this script on boot. > This hint is of course only relevant if you don

[web2py:38415] Re: Book errata and minor bug in clean sessions script

2010-01-05 Thread John Heenan
ory if not enough RAM memory is available. The potential memory use of python is 236MB (VSZ size). Under these circumstances the web2py labelled 'soft cron' option is attractive as no extra processes are spawned: the python process that runs web2py runs web2py specific crontabs in web2py/app

[web2py] Re: Book errata and minor bug in clean sessions script

2010-01-06 Thread John Heenan
occupying memory, no matter for how short, that might risk bringing the swap file into use. Massimo's way of expiring sessions from the model file is less resource intensive, if Python code is used. John Heenan 2010-01-06 15:15:13,876 - INFO - WEB2PY CRON (soft): Application: zgus exec

[web2py] Re: Book errata and minor bug in clean sessions script

2010-01-06 Thread John Heenan
Sorry, fork is not the correct OS term, as the new process is not a copy of the parent process. The new process is just that, a new process. John Heenan On Jan 7, 11:14 am, John Heenan wrote: > My logs indicate that a web2py soft cron command to execute a Python > file at or after a

[web2py] Re: www.web2py.com down?

2010-01-10 Thread John Heenan
can be obtained from http://sourceforge.net/projects/s3tools/files/s3cmd/#files and can be quickly installed with 'python setup.py install'. John Heenan On Jan 11, 10:05 am, mdipierro wrote: > One problem is the size of the web2py*.zip and the pdf documents. I > host many of the

[web2py] Re: Anybody going to PyCon?

2010-01-16 Thread John Heenan
tiveX (or COM) was the latest sexy technology, when the Internet was regarded as the Disneyland of public networks and when Microsoft was stating they would not support the Internet. How ironic given how closely Microsoft is now identified with the Internet by general users. John Heenan -- You r

[web2py] Re: Haiti: Proxy required - Django port? CGI port?

2010-01-24 Thread John Heenan
ache is conditional on what the request method is (namely GET). The above usage is just an alternative that modifiies the already defined proxy function on a per request basis. John Heenan -- You received this message because you are subscribed to the Google Groups "web2py-users" group.

[web2py] Re: Haiti: Proxy required - Django port? CGI port?

2010-01-24 Thread John Heenan
On Jan 25, 10:44 am, John Heenan wrote: > The __call__ function of the Cache global class instance, cache, is More confusion busting that is going off topic and should be placed in a topic of its own that discusses style issues. For those who are not adjusted to the 'web2py way

[web2py] Re: cron issue

2010-01-30 Thread John Heenan
request to add in the following feature to your cron fpr web2py. Provide a mechanism to just perform a Python exec on a string statment. For example a string statement might be "import a; a.mycronaction()" Thanks John Heenan On Jan 31, 6:52 am, AchipA wrote: > Just to chime in, I&

[web2py] Re: cron issue

2010-01-30 Thread John Heenan
Hi AchipA Another feature request, if the cron file is a python file, how about a cron option to open the file and do an exec on the file contents? Thanks John Heenan On Jan 31, 12:33 pm, John Heenan wrote: > Hi AchipA > > Your cron is nice work and neatly deals with the mess

[web2py] Re: Mobile devices + web2py

2010-02-01 Thread John Divon
Hi All, We have found a little bug in this function. Should use the following line : if request.env.http_accept and request.env.http_accept.find('text/ vnd.wap.wml')>=0: instead: if request.env.http_accept and request.env.http_accept.find('text/ vnd.wap.wml'): Cheers. On Jan 28, 9:25 pm, mdipi

[web2py:21021] Re: Validation in Custom Form using crud

2009-05-02 Thread John Heenan
ml" % (request.controller,request.function, request.args[0]) to only use the templates you want Regards John Heenan On May 3, 3:37 am, Gary wrote: > The following MVC is used to create/update/read a single table.  The > validation for not empty works with the {{=form}} but not the custom > HT

[web2py:21023] Re: Validation in Custom Form using crud

2009-05-02 Thread John Heenan
ate action names and so form name manipulations for form actions. John Heenan On May 3, 10:54 am, John Heenan wrote: > Hi Gary > > You have got an interesting approach. However I think it is more > complicated than necessary for what you want to achieve. > > Since your goa

[web2py:21138] Re: Validation in Custom Form using crud

2009-05-04 Thread John Heenan
r the crud controller action def data: return dict(form=crud()) Depending on what the crud form action is as determined from parsing request.env.path_info use the approach in http://mdp.cti.depaul.edu/AlterEgo/default/show/205 to determine how to layout the crud form Regards John Heenan On

  1   2   3   4   >