[web2py] Re: can web2py "internal webserver" handle serveral requests in parallel?

2011-03-24 Thread John Heenan
e place queues or locks occur. IO (input-output) OS (operating systems) queues or locks are very common and are hidden. I hope this adds a bit more insight. John Heenan

[web2py] Re: Scalability of web2py?

2010-12-02 Thread John Heenan
r maintains a thread for each request, this means that each server needs to be able to maintain nearly 114 threads per server at once. I am not impressed by this. Consider that Lighttpd can handle 10,000 requests per second ON A SINGLE SERVER using year 2000 technology. John Heenan On Dec 2, 9:46 p

[web2py] Re: Scalability of web2py?

2010-12-01 Thread John Heenan
erged into another, where Torvalds is said to play a key role. In addition, the growing acceleration of kernel development has increased the time Torvalds spends reviewing other kernel changes." John Heenan On Dec 2, 11:39 am, John Heenan wrote: > The OP, Lorin, asked "What's the &

[web2py] Re: Scalability of web2py?

2010-12-01 Thread John Heenan
s he has had enough or wants to wind down, 'offcial' Linux continues on. A professional approach requires hard fact and a serious approach to legitimate issues that at the very least acknowledges legitimate issues and avoids propaganda. Hard facts requires real world tests, not evasion, de

[web2py] Re: Scalability of web2py?

2010-12-01 Thread John Heenan
real-time, distributed, and highly-available apps. > > Here's an example (maybe quoted one time too often): > > http://www.sics.se/~joe/apachevsyaws.html > > > > On Wed, Dec 1, 2010 at 6:45 PM, John Heenan wrote: > > The elephant in the room has not gone away Mas

[web2py] Re: Scalability of web2py?

2010-12-01 Thread John Heenan
just does not sink in. I even pointed out how Linux loast a PR war over this issue. There is no need for Python based web frameworks to use thread per request web serving. John Heenan On Nov 30, 4:05 am, mdipierro wrote: > You achieve scalability by replicating the web server behind a l

[web2py] Re: jqgrid plugin display data from multiple tables

2010-12-01 Thread John Heenan
back from web2py and then 3) updates the slave jqgrid table. If this is what you want to do, then working through jqgrid documentation and examples will help. John Heenan On Dec 1, 8:45 pm, Neveen Adel wrote: > Hello, > >  Is there a way to make jqgrid  plugin to display data fro

[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] 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] 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
#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-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-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
, 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: 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: 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] 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: 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] 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: * 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: >

[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-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-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-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: 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: 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 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 >

[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-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-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-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-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
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: 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: 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-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
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-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-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] 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: 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] 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: 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-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-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
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-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-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
e Apache. John Heenan On Feb 12, 12:16 pm, Graham Dumpleton wrote: > On Feb 12, 1:04 pm, John Heenan wrote: > > > Hello Graham, whoever you are. > > > You sound highly confused, clueless aboout how to present objective > > data and a fairly typical bombastic nerd

[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
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
(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
"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
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: 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: 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: 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
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-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: 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: 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: 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: 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: 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: 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: 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: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: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: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: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: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: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: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: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: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: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: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: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: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: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: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: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:21186] Re: Validation in Custom Form using crud

2009-05-04 Thread John Heenan
f form.accept test is conducted. If the test passes data is saved ot the database. If the test fails the form is shown again with indications of where validation failed. If validation fails then forms.error is filled in and is used to populate the error DIVs. > Thank you. Your welcome John

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

2009-05-04 Thread John Heenan
eturn 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 {{pass}} John Heenan On May 5, 12:19 am, John Heenan wrote: >

[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

[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: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