[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, mdipie

Re: [web2py] Re: why use the admin interface, at all?

2010-02-12 Thread Jason Brower
Thank you Massimo. I am happy you remember me. :D BR, Jason On Fri, 2010-02-12 at 14:54 -0800, snfctech wrote: > Still my intent with web2py is not to serve only the brightest > > ones. -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post t

Re: [web2py] On the online book

2010-02-12 Thread Jason Brower
The page looks fantastic and very well done. Hopefully you can earn some cash with it as well. BR, Jason On Fri, 2010-02-12 at 15:17 -0800, mdipierro wrote: > The book > > http://web2py.com/book > > Seems to work well enough. I need to add some editor locking to avoid > conflicts and I wil

Re: [web2py] Re: flash message timeout

2010-02-12 Thread Jason Brower
I actually never thought about having it fade out. That sounds like a great idea! Thanks Hamdy! BR, Jason On Fri, 2010-02-12 at 21:21 -0800, mdipierro wrote: > {jQuery('.flash').delay(5000).fadeOut();} -- You received this message because you are subscribed to the Google Groups "web2py-users" g

[web2py] Re: web2py 1.75.1 is Out

2010-02-12 Thread mdipierro
in web2py refers to the python major > version it is supported for.  When it moves to full support for python > 3 it will be web3py. > > Regarding version numbers, I like just the date it was released. > i.e., Version  20100212 instead of 1.75.1 :) > > -wes -- You received this message

[web2py] Re: flash message timeout

2010-02-12 Thread mdipierro
fade out after 5 seconds: jQuery(document).ready(function() {jQuery('.flash').delay(5000).fadeOut();}); jDiv was an experiment. Everything is now achieved by {{=LOAD(...)}} On Feb 12, 10:42 pm, "hamdy.a.farag" wrote: > Hi > > I was curious, How to make the flash message disappear after a whil

[web2py] crud.archive for full app auditing

2010-02-12 Thread mdipierro
Here is a new feature in trunk. Say you have the following table: db.define_table('person', Field('name'), Field('created_by',default=auth.user_id,update=auth.user_id,writable=False), Field('created_on',default=request.now,update=request.now,writable=False)) and you want to store all pre

Re: [web2py] Re: web2py 1.75.1 is Out

2010-02-12 Thread Wes James
hon major version it is supported for. When it moves to full support for python 3 it will be web3py. Regarding version numbers, I like just the date it was released. i.e., Version 20100212 instead of 1.75.1 :) -wes -- You received this message because you are subscribed to the Google Groups &quo

[web2py] flash message timeout

2010-02-12 Thread hamdy.a.farag
Hi I was curious, How to make the flash message disappear after a while I also read about something called "jDiv" which I didn't find , is it a custom helper used in one of the appliances ? Thank you -- You received this message because you are subscribed to the Google Groups "web2py-use

Re: [web2py] Re: web2py 1.75.1 is Out

2010-02-12 Thread Thadeus Burgess
wow... web4py web5py... When will software stop being about versions and just being about feature sets and stability! -Thadeus On Fri, Feb 12, 2010 at 10:12 PM, Jonathan Lundell wrote: > On Feb 12, 2010, at 8:02 PM, mdipierro wrote: > >> Normally we bump because there is a new feature, not

Re: [web2py] Re: web2py 1.75.1 is Out

2010-02-12 Thread Jonathan Lundell
On Feb 12, 2010, at 8:02 PM, mdipierro wrote: > Normally we bump because there is a new feature, not a bug fix. > Technically no features was added in 1.75.1 vs 1.74.11 but many new > features have been added in between 1.74.1 and 1.74.11. All together > they have been tested and together they jus

Re: [web2py] Re: web2py 1.75.1 is Out

2010-02-12 Thread Thadeus Burgess
Looking at the commit logs here is the following. Bug fixes. Reserved SQL keywords checking Parents and siblings Can specify port with Firebird Upgrade an app by unpacking over it -Thadeus On Fri, Feb 12, 2010 at 9:35 PM, Jonathan Lundell wrote: > On Feb 12, 2010, at 7:06 PM, mdipierro

[web2py] Re: web2py 1.75.1 is Out

2010-02-12 Thread mdipierro
Normally we bump because there is a new feature, not a bug fix. Technically no features was added in 1.75.1 vs 1.74.11 but many new features have been added in between 1.74.1 and 1.74.11. All together they have been tested and together they justify a new full version number. I think they jump shoul

Re: [web2py] Re: web2py 1.75.1 is Out

2010-02-12 Thread Jonathan Lundell
On Feb 12, 2010, at 7:06 PM, mdipierro wrote: > If this something you sent me? I do not recall anything on the > subject. The question is: how did you decide to go from 1.74 to 1.75, instead of bumping the third field. > > On Feb 12, 6:52 pm, Alexandre Andrade > wrote: >> If minor fixes, why

[web2py] Re: why use the admin interface, at all?

2010-02-12 Thread mdipierro
There is a video on vimeo about using the shell and emacs. On Feb 12, 8:01 pm, Thadeus Burgess wrote: > Your points are valid snfctech. The presentation I gave the other > night to a group of django developers, most of them had heard about > web2py and stopped using it because they "thought" they

[web2py] Re: web2py 1.75.1 is Out

2010-02-12 Thread mdipierro
If this something you sent me? I do not recall anything on the subject. On Feb 12, 6:52 pm, Alexandre Andrade wrote: > If minor fixes, why 1.15.1 and not 1.74.12? > > Between the fixes, is the one about change/personalize auth tables? > > 2010/2/12, mdipierro : > > > Please check it out. Minor fi

Re: [web2py] Requiring arguments

2010-02-12 Thread Tiago Almeida
Yes it's a possibility! -- Tiago On Sat, Feb 13, 2010 at 2:06 AM, Thadeus Burgess wrote: > what about default cases. > > I don't need to redirect if a var does not exist, but instead use a > default value. Perhaps a dict instead of tuples ? > > -Thadeus > > > > > > On Fri, Feb 12, 2010 at 7:53 P

Re: [web2py] Requiring arguments

2010-02-12 Thread Thadeus Burgess
what about default cases. I don't need to redirect if a var does not exist, but instead use a default value. Perhaps a dict instead of tuples ? -Thadeus On Fri, Feb 12, 2010 at 7:53 PM, Tiago Almeida wrote: > Sorry, spoke too soon. I saw how auth works and did something similar. > right now

Re: [web2py] Re: why use the admin interface, at all?

2010-02-12 Thread Thadeus Burgess
Your points are valid snfctech. The presentation I gave the other night to a group of django developers, most of them had heard about web2py and stopped using it because they "thought" they had to use the built in editor/shell. Most people when looking for a framework don't read past the first lin

Re: [web2py] Requiring arguments

2010-02-12 Thread Tiago Almeida
Sorry, spoke too soon. I saw how auth works and did something similar. right now it is something like this, mind that names can be changed: @req_args.requires_validVars( 'www.google.com', ('search',), ('search','highlight')) first param is where to redirect on error

Re: [web2py] web2py 1.75.1 is Out

2010-02-12 Thread Alexandre Andrade
If minor fixes, why 1.15.1 and not 1.74.12? Between the fixes, is the one about change/personalize auth tables? 2010/2/12, mdipierro : > Please check it out. Minor fixes. > > -- > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To post to this g

Re: [web2py] Re: Bug in webfolder plugin

2010-02-12 Thread Alexandre Andrade
thanks, I will look at it and improve. 2010/2/12, selecta : > While waiting for Alexandres access management you can have a look at > my unfinished user admin plugin > I thought I would get around to improve it sooner but it does not seem > like that now. Some of you might take this as a base f

[web2py] Re: No groupby in appengine?

2010-02-12 Thread Richard
seems not, so I am doing the grouping manually in Python. On Feb 12, 12:24 pm, Richard wrote: > Is "groupby" supported by web2py on appengine? > > I noticed "groupby" is one of the valid_attributes (in gql.py) but > using it raises: > "Set: no groupby in appengine" -- You received this message

Re: [web2py] Requiring arguments

2010-02-12 Thread Tiago Almeida
Hello, I think i've finished doing this but I'm having trouble accessing the request object from the decorator function. How would you define a decorator that accesses the request? I have something like this class require_args(object): def __call__(self, f): def decorated(*

[web2py] On the online book

2010-02-12 Thread mdipierro
The book http://web2py.com/book Seems to work well enough. I need to add some editor locking to avoid conflicts and I will do next week. There are some issues with IE8 so if you want to be an editor, you better use Firefox. If you want to start creating pages or editing please go ahead ... a

[web2py] Re: why use the admin interface, at all?

2010-02-12 Thread snfctech
Okay, that makes sense. And if it doesn't produce a bunch of tickets which distract developers, then great. I guess I would just include a little more up-front explanation in the book or elsewhere so more experienced developers don't get distracted. Such as Feel free to use your favorite shell a

[web2py] Re: web2py site problem ?!

2010-02-12 Thread AchipA
When you are creating an EBS volume you can choose a snapshot to prepopulate it with. On Feb 12, 8:32 pm, mdipierro wrote: > I have an instance with root mounted on EBS storage and if take > snapshots of the latter. If I understand how this works the root > filesystem should be backed up in the s

[web2py] Re: web2py site problem ?!

2010-02-12 Thread AchipA
That is not correct. EBS provides permanent storage, but even without that, you have instance level consistency, so if you reboot your instance, your stuff will still be there. You also have monitoring features that make it easy to bring back a service on an another instance. AWS is not built to a

[web2py] web2py 1.75.1 is Out

2010-02-12 Thread mdipierro
Please check it out. Minor fixes. -- 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,

[web2py] Re: Ladies and Gentelmen... the web2py book is online

2010-02-12 Thread Nico de Groot
Update: 1. The problem doesn't occur when IE (8.0) is placed in the compatibility-mode 2. According to the WMD website the editor is not supported (yet) on IE 8.0 3. After some time the wiki edit field *are* visible, very much to the right and the bottom of the page. If I check the HTML as displaye

[web2py] Re: about docs

2010-02-12 Thread mdipierro
http://web2py.com/book/default/wikipage/how-to-contribute On Feb 12, 3:46 pm, Thadeus Burgess wrote: > So I guess my real question is > > I want to add the documentation on reserved sql keywords checking. > Should this be included as a WIKI page linked to the Connection > Strings section, or shou

Re: [web2py] Re: about docs

2010-02-12 Thread Thadeus Burgess
So I guess my real question is I want to add the documentation on reserved sql keywords checking. Should this be included as a WIKI page linked to the Connection Strings section, or should this go in that section? Same for the custom csv delimiters, in the book or as a wiki linked? -Thadeus

[web2py] Re: how to NOT IN with DAL?

2010-02-12 Thread mdipierro
db(~db.a.asof.belongs(db()._select(db.b.asof)).select(db.a.asof) On Feb 12, 3:20 pm, baloan wrote: > Hello, > > given two tables: > > >>> db.define_table('A', Field('asof'), Field('data')) > >>> db.define_table('B', Field('asof'), Field('other')) > > I'd like to to identify all rows in A having n

[web2py] first gae app

2010-02-12 Thread Wes James
This is my first gae app. http://web2pyapi.appspot.com/ide/default/models It started out as a test to create a simple IDE for web2py with a model on the left and the options for the model on the right and you would drag the items on the right in to the model on the left using jquery drag and drop

[web2py] how to NOT IN with DAL?

2010-02-12 Thread baloan
Hello, given two tables: >>> db.define_table('A', Field('asof'), Field('data')) >>> db.define_table('B', Field('asof'), Field('other')) I'd like to to identify all rows in A having no row with the same 'asof' in B. SELECT A.ASOF FROM A, B WHERE A.ASOF NOT IN (SELECT B.ASOF FROM B) What is the

[web2py] Re: Ladies and Gentelmen... the web2py book is online

2010-02-12 Thread rev
Some text runs off the page, e.g. http://web2py.com/book/default/section/7/2?search=person_image -- 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 e

Re: [web2py] Re: apache question. page caching

2010-02-12 Thread Timothy Farrell
My church server runs Ubuntu 6.06 (old I know) and it has /usr/lib/apache2/modules/mod_expires.so as part of the normal apache package. Perhaps someone with a newer Ubuntu can help. On 2/12/2010 2:23 PM, mdipierro wrote: I do not have it. How do I install it under ubuntu? On Feb 12, 12:46 pm

[web2py] Re: Ladies and Gentelmen... the web2py book is online

2010-02-12 Thread mdipierro
oops. fixed On Feb 12, 2:07 pm, aure wrote: > Great news! Thank you! > > The lulu and amazon links to purchase the book seem not to point to > the right place (they both point tohttp://web2py.com/book/default/section) > > Aurelien > > On Feb 12, 2:30 am, mdipierro wrote: > > >http://web2py.com/b

Re: [web2py] Re: Ladies and Gentelmen... the web2py book is online

2010-02-12 Thread Tiago Almeida
There is a formatting issue at http://web2py.com/book/default/section/4/6 , near "*request.vars:*" Tiago -- On Fri, Feb 12, 2010 at 8:07 PM, aure wrote: > Great news! Thank you! > > The lulu and amazon links to purchase the book seem not to point to > the right place (they both point to http://

[web2py] Re: apache question. page caching

2010-02-12 Thread mdipierro
I do not have it. How do I install it under ubuntu? On Feb 12, 12:46 pm, Timothy Farrell wrote: > There are two ways to go about this: > > Long cache time (only ask for files periodically): > > # Configure Expires Header for PDFs > ExpiresActive On > ExpiresByType image/jpeg "access plus 1 months

[web2py] Re: Ladies and Gentelmen... the web2py book is online

2010-02-12 Thread aure
Great news! Thank you! The lulu and amazon links to purchase the book seem not to point to the right place (they both point to http://web2py.com/book/default/section) Aurelien On Feb 12, 2:30 am, mdipierro wrote: > http://web2py.com/book > > This is only for testing purposes. > Please try get a

[web2py] Re: web2py site problem ?!

2010-02-12 Thread szimszon
Sometimes there is a 1day delay in recursive dns servers to refresh entries... On febr. 12, 17:36, Álvaro Justen [Turicas] wrote: > On Thu, Feb 11, 2010 at 23:20, mdipierro wrote: > > It has moved. It is not here: > > >http://204.236.202.204/ > > > My DNS has not refreshed in 2hrs. I tried > > >

[web2py] Re: web2py site problem ?!

2010-02-12 Thread mdipierro
I have an instance with root mounted on EBS storage and if take snapshots of the latter. If I understand how this works the root filesystem should be backed up in the snapshots. What puzzle me if that I cannot find a way to restore the snapshots and any test involing taking up/down the instance are

[web2py] Re: web2py and GQL in operator

2010-02-12 Thread mdipierro
http://groups.google.com/group/web2py/browse_thread/thread/a3fce424f890c668/0807b65b1471e132?lnk=gst&q=ListProperty#0807b65b1471e132 On Feb 12, 12:19 pm, Wes James wrote: > How is the gql "in"operator used in web2py?  They say you can use a > list. What is the format of the list? > > -wes -- Yo

[web2py] Re: How to locale web2py date calendar widget

2010-02-12 Thread Stefan
I've been poking around the documentation for the jQuery datepicker and I can't seem to find an answer to a question of mine. Is there any way to limit the the choices that a user can make in the current datepicker? Anotherwords, block out / allow certain days? Thanks! On Dec 28 2009, 6:22 pm, md

Re: [web2py] Re: apache question. page caching

2010-02-12 Thread Timothy Farrell
There are two ways to go about this: Long cache time (only ask for files periodically): # Configure Expires Header for PDFs ExpiresActive On ExpiresByType image/jpeg "access plus 1 months" ExpiresByType image/jpg "access plus 1 months" ExpiresByType image/png "access plus 1 months" ExpiresByType

Re: [web2py] Re: web2py site problem ?!

2010-02-12 Thread Thadeus Burgess
Just keep in mind, if you have an EC2 server, if it goes down ever for ANY reason you lose ALL of the data on the server. Do not rely on Amazon to be a permanent will-be-there-always solution for the data -Thadeus On Fri, Feb 12, 2010 at 10:47 AM, mdipierro wrote: > I am not suing any of th

[web2py] web2py and GQL in operator

2010-02-12 Thread Wes James
How is the gql "in"operator used in web2py? They say you can use a list. What is the format of the list? -wes -- 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 thi

Re: [web2py] Re: gae error

2010-02-12 Thread Wes James
How do you get subsets of data on subsets of field data or does it just need to be > = stuff? oh i see: http://code.google.com/appengine/docs/python/datastore/gqlreference.html searches become rather limited, but less process intensive I guess -wes On Fri, Feb 12, 2010 at 10:37 AM, mdipier

[web2py] Re: why use the admin interface, at all?

2010-02-12 Thread mdipierro
You do not have to use it. I rarely use it. It is not hard to maintain (the code is very small). I found it very useful in two occasions: 1) access a server remotely when no ssh available. It has happened that a bug showed up during a presentation using a machine not mine and I was able to inspect

[web2py] Re: gae error

2010-02-12 Thread mdipierro
yes. No like on gae. On Feb 12, 11:32 am, Wes James wrote: > What does this mean on gae: > > File > "/base/data/home/apps/web2pyapi/1.339837915316861623/gluon/contrib/gql.py", > line 592, in __init__ >     self._tables = [filter.left._tablename for filter in where.filters] > AttributeError: 'Que

[web2py] why use the admin interface, at all?

2010-02-12 Thread snfctech
I'm just getting started with web2py and I must say - I love the code. Adding validation logic with the DAL and building forms on the fly with the CRUD helper is awesome. That said, I don't understand the point of the admin interface - especially the online database designer and the editor. The

[web2py] gae error

2010-02-12 Thread Wes James
What does this mean on gae: File "/base/data/home/apps/web2pyapi/1.339837915316861623/gluon/contrib/gql.py", line 592, in __init__ self._tables = [filter.left._tablename for filter in where.filters] AttributeError: 'Query' object has no attribute 'filters' I'm using: rows=db(db.ideModelAPI.i

[web2py] Re: apache question. page caching

2010-02-12 Thread mdipierro
I use the apache config file configured by this: http://code.google.com/p/web2py/source/browse/scripts/setup-web2py-ubuntu.sh apache serves them directly. This is not a web2py issue but an apache issue. On Feb 12, 11:10 am, Timothy Farrell wrote: > Clarify this a little.  Is Apache serving the s

Re: [web2py] Re: Book 6.8. Exporting and Importing Data ( CSV and remote Database Synchronization )

2010-02-12 Thread Thadeus Burgess
Ah sure did, my bad. Sorry -Thadeus On Fri, Feb 12, 2010 at 10:48 AM, raven wrote: > I see the problem.  You misread the code I posted. > >    import cStringIO >    s = cStringIO.StringIO() >          ^ c missing from book >                         ^ no leading c, neither in book nor my code

[web2py] Re: Bug in sql.Set ?

2010-02-12 Thread mdipierro
I think this is now fixed. please check it in trunk. On Feb 11, 12:48 am, Alexey Nezhdanov wrote: > Hi. > Sorry, didn't check if that bug still exists in latest version. > Here is the problem: in Oracle substracting one datetime column from the > other gives the floating number (days). > However

Re: [web2py] apache question. page caching

2010-02-12 Thread Timothy Farrell
Clarify this a little. Is Apache serving the static files or is web2py serving them through Apache? On 2/12/2010 10:50 AM, mdipierro wrote: In my setup apache+mod_wsgi serve static files. How do I make sure apache sends a header which sets a long cache time? -- You received this message

[web2py] apache question. page caching

2010-02-12 Thread mdipierro
In my setup apache+mod_wsgi serve static files. How do I make sure apache sends a header which sets a long cache time? -- 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 f

[web2py] Re: Book 6.8. Exporting and Importing Data ( CSV and remote Database Synchronization )

2010-02-12 Thread raven
I see the problem. You misread the code I posted. import cStringIO s = cStringIO.StringIO() ^ c missing from book ^ no leading c, neither in book nor my code On Feb 12, 11:02 am, Thadeus Burgess wrote: > No its not missing the leading c. There is no le

[web2py] Re: Book 6.8. Exporting and Importing Data ( CSV and remote Database Synchronization )

2010-02-12 Thread mdipierro
cStringIO.StringIO not cStringIO.cStringIO On Feb 12, 10:03 am, Thadeus Burgess wrote: > Python 2.6.4 (r264:75706, Dec  7 2009, 18:45:15) > [GCC 4.4.1] on linux2 > Type "help", "copyright", "credits" or "license" for more information.>>> > import cStringIO > >>> cStringIO.cStringIO > > Traceba

[web2py] Re: web2py site problem ?!

2010-02-12 Thread mdipierro
I am not suing any of the advanced features like load balancing. I have an Instance with EBS storage. I do not completely understand the backup process. I hope that making a snapshot of the storage results in data backup. Not clear to me how to recover from one the snapshots. On Feb 12, 10:42 am,

[web2py] Re: Book 6.8. Exporting and Importing Data ( CSV and remote Database Synchronization )

2010-02-12 Thread raven
Thadeus, Thank you for your interest. I pasted the code directly from my working application - I see no complaints about cStringIO. On Feb 12, 11:02 am, Thadeus Burgess wrote: > No its not missing the leading c. There is no leading c. Try importing > cStringIO.cStringIO and see the stacktrace co

[web2py] Re: about docs

2010-02-12 Thread mdipierro
http://web2py.com/book On Feb 12, 10:41 am, Renato-ES-Brazil wrote: > Sorry, where is this online version of the book? > > On 12 fev, 04:03, mdipierro wrote: > > > now that the book is almost online, after we merge it with alterego I > > am considering removing all documentation (but epydoc) fro

[web2py] Re: web2py site problem ?!

2010-02-12 Thread villas
On Feb 12, 4:01 pm, mdipierro wrote: > hmmm that costs more money. Well, people moving to Amazon aren't going there to save any money, that's for sure. The main thing you are paying for is the massive global up-scaling you can instantly turn on. Must have geared up for some big spikes on acces

[web2py] Re: about docs

2010-02-12 Thread Renato-ES-Brazil
Sorry, where is this online version of the book? On 12 fev, 04:03, mdipierro wrote: > now that the book is almost online, after we merge it with alterego I > am considering removing all documentation (but epydoc) from examples > and just link the book.  This will make web2py lighter. > > Any obje

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

2010-02-12 Thread mdipierro
I think this is an excellent point. > My data demonstrated a 40MB memory solution is feasible. > > I am absolutely amazed and disappointed I cannot get such simple > points gracefully acknowledged by a self styled 'expert' and by the > moderator. The reason I suggested opening a new thread was to

Re: [web2py] Re: web2py site problem ?!

2010-02-12 Thread Álvaro Justen [Turicas]
On Thu, Feb 11, 2010 at 23:20, mdipierro wrote: > It has moved. It is not here: > > http://204.236.202.204/ > > My DNS has not refreshed in 2hrs. I tried > > sudo dscacheutil -flushcache > > I rebooted. Tried two browser. Still web2py.com does not map into the > above address. See: http://reports

[web2py] Re: Anyplace to look for web2py Developers?

2010-02-12 Thread Benigno
Ok, thanks a lot Massimo, looking forward to that. I am looking for web2py developers with a strong side on UI (I am not particular about any specific jQuery, ajax or whatnot). Please contact me if you are interested and I will send you information so that you can provide a Quotation for the proje

Re: [web2py] about docs

2010-02-12 Thread Zoom.Quiet
On Sat, Feb 13, 2010 at 00:06, Thadeus Burgess wrote: > On another note, certain features are in web2py that are still under > testing/development. I suppose it will be you to decide what gets put > in the official documentation or not ? > doc is realy should must synchronizing code... ever featu

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

2010-02-12 Thread John Heenan
The title of the thread is "How much memory does web2py need on Unix". I provided a concrete answer. The question is not answered by stating mod_wgsi is the 'best' way to deploy web2py with Apache. I provided real data about using lighthttpd and a UNIX socket. There is every reason to believe th

[web2py] Re: Ladies and Gentelmen... the web2py book is online

2010-02-12 Thread mdipierro
I just fixed the latter issue. I do not know how to fix the editor issue. textarea has cols and rows. On Feb 12, 10:18 am, Nico de Groot wrote: > Looks good, some problems in IE: > > Adding a Wiki page in IE doesn't work. Look like a similar issue I had > with CKeditor. The textarea the editor is

[web2py] Re: Ladies and Gentelmen... the web2py book is online

2010-02-12 Thread Nico de Groot
Looks good, some problems in IE: Adding a Wiki page in IE doesn't work. Look like a similar issue I had with CKeditor. The textarea the editor is applied to, keeps expanding when the page is opened. I think it can be fixed by specifying _cols and _rows for textarea. The links in the sidebar to t

Re: [web2py] Re: web2py site problem ?!

2010-02-12 Thread tyoc 213
Havent read the whole tread... but if you are talking only about dynamic dns I think http://freedns.afraid.org/ is free and OK service... at less for something basic it should work the basic free plan (even some mail setup I think)... -- You received this message because you are subscribed to the

Re: [web2py] about docs

2010-02-12 Thread Thadeus Burgess
On another note, certain features are in web2py that are still under testing/development. I suppose it will be you to decide what gets put in the official documentation or not ? -Thadeus On Fri, Feb 12, 2010 at 9:35 AM, Thadeus Burgess wrote: > No. But we do need quickstart section and the e

Re: [web2py] Re: Book 6.8. Exporting and Importing Data ( CSV and remote Database Synchronization )

2010-02-12 Thread Thadeus Burgess
Python 2.6.4 (r264:75706, Dec 7 2009, 18:45:15) [GCC 4.4.1] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import cStringIO >>> cStringIO.cStringIO Traceback (most recent call last): File "", line 1, in AttributeError: 'module' object has no attribute 'cStr

Re: [web2py] Re: Book 6.8. Exporting and Importing Data ( CSV and remote Database Synchronization )

2010-02-12 Thread Thadeus Burgess
No its not missing the leading c. There is no leading c. Try importing cStringIO.cStringIO and see the stacktrace complaining there is no cStringIO module in the cStringIO package. -Thadeus On Fri, Feb 12, 2010 at 9:19 AM, raven wrote: > In the export controller > > * need to import cStringI

Re: [web2py] Requiring arguments

2010-02-12 Thread Tiago Almeida
Shouldn't be hard to implement that decorator, though. I'll try later (at work now) because this is useful. Regards, Tiago On Fri, Feb 12, 2010 at 12:19 AM, minh wrote: > Is there a way to require arguments/vars in the controller functions > other than explicitly checking for them? > > It would

[web2py] Re: validation from the shell

2010-02-12 Thread mdipierro
perhaps. First send me an example of how it should work in your view and report errors. Mind that al current validators are designed to take a string as input. On Feb 12, 9:51 am, Thadeus Burgess wrote: > validators are only for crud / SQLFORM. > > If you want to verify the record you must do so

[web2py] Re: web2py site problem ?!

2010-02-12 Thread mdipierro
hmmm that costs more money. On Feb 12, 9:43 am, Jonathan Lundell wrote: > On Feb 12, 2010, at 6:48 AM, mdipierro wrote: > > > The DNS has not refreshed. It will take some time. Does anybody know > > how to setup DNS on EC2. If I stop and restart the VM I get another IP > > and it takes long time

[web2py] Re: Requiring arguments

2010-02-12 Thread mdipierro
true. On Feb 12, 9:39 am, DenesL wrote: > Only if you trust the contents of request.args[0], > it will still blow up with 'abc' in it for example. > > On Feb 11, 8:14 pm, mdipierro wrote: > > > I define > > > def error(message=''): > >     session.flash=message > >     redirect(URL(r=request,f='

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

2010-02-12 Thread mdipierro
We do not have to close it as long as there is a change of tone. In web2py.py comment this line: import gluon.import_all and you should be good to go with less memory. Massimo On Feb 12, 9:02 am, raven wrote: > " John has provided excellent benchmarks that can help us improve and >  can help

[web2py] Re: Book 6.8. Exporting and Importing Data ( CSV and remote Database Synchronization )

2010-02-12 Thread raven
In the import controller * underscores are missing from the form attributes * The code tries to update EVERY table in db - and fails because they do not all have uuid fields. def importandsync(): form = FORM(INPUT(_type='file', _name='data'), INPUT(_type='submit')) if form.accepts(reque

Re: [web2py] validation from the shell

2010-02-12 Thread Thadeus Burgess
validators are only for crud / SQLFORM. If you want to verify the record you must do so manually before insertion. (value, error) = IS_NOT_EMPTY()(myvalue) # value is the same as myvalue, but in the case of validators such as IS_UPPER() it is converted to upper case. # error is either a blank str

[web2py] Re: improvement in web2py compatibility with legacy postgresql datbases column sequence name

2010-02-12 Thread kralin
Thanks Massimo, probably the better way to do this kind of bindings is at the db level if multiple applications needs to access the db. otherwise an application level check works too. On 12 Feb, 15:51, mdipierro wrote: > Thanks for your patch. I will include it. > > Currently in web2py you can o

Re: [web2py] Re: web2py site problem ?!

2010-02-12 Thread Jonathan Lundell
On Feb 12, 2010, at 6:48 AM, mdipierro wrote: > The DNS has not refreshed. It will take some time. Does anybody know > how to setup DNS on EC2. If I stop and restart the VM I get another IP > and it takes long time for the DNS to propagate the change (which I > must do manually) and meanwhile the

[web2py] Re: Requiring arguments

2010-02-12 Thread DenesL
Only if you trust the contents of request.args[0], it will still blow up with 'abc' in it for example. On Feb 11, 8:14 pm, mdipierro wrote: > I define > > def error(message=''): > session.flash=message > redirect(URL(r=request,f='error_page')) > > and > > def get_record(): > record

Re: [web2py] about docs

2010-02-12 Thread Thadeus Burgess
No. But we do need quickstart section and the examples does help with that, especially the DAL/tools/interactive examples page is a nice quick reference. -Thadeus On Fri, Feb 12, 2010 at 12:03 AM, mdipierro wrote: > now that the book is almost online, after we merge it with alterego I > am c

Re: [web2py] Re: web2py site problem ?!

2010-02-12 Thread Jonathan Lundell
On Feb 12, 2010, at 4:04 AM, Nicolás de la Torre wrote: > I cant reach web2py.com but www.web2py.com is working. > > $ host web2py.com > web2py.com has address 140.192.37.194 This is the old DePaul address. > > $ host www.web2py.com > www.web2py.com has address 204.236.202.204 This is the new

[web2py] Re: Book 6.8. Exporting and Importing Data ( CSV and remote Database Synchronization )

2010-02-12 Thread raven
In the export controller * need to import cStringIO * cStringIO is missing leading c def export(): import cStringIO s = cStringIO.StringIO() db.export_to_csv_file(s) response.headers['Content-Type'] = 'text/csv' return s.getvalue() -- You received this message because you a

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

2010-02-12 Thread raven
" John has provided excellent benchmarks that can help us improve and can help us make better usage of the memory." He certainly helped me to get up and running! " Something I am interested in following up on." Great. It would be really great if there was an out of the box command line switch

[web2py] Book 6.8. Exporting and Importing Data ( CSV and remote Database Synchronization )

2010-02-12 Thread raven
Thank you very much for placing the book online. The code in section 'CSV and remote Database Synchronization' does not run, even after indentation is fixed. Line 7 - there seems to be an extra comma and quote in the italicized code: * the underscore is missing from define_table and IS_IN_DB *

[web2py] Re: improvement in web2py compatibility with legacy postgresql datbases column sequence name

2010-02-12 Thread mdipierro
Thanks for your patch. I will include it. Currently in web2py you can only set unique multicol constraints at the web2py level (IS_NOT_IN_DB(subset,...)). This could be added but would make migrations a nightmare. Massimo On Feb 12, 8:42 am, kralin wrote: > I've being doing some testing > and a

[web2py] Re: web2py site problem ?!

2010-02-12 Thread mdipierro
The DNS has not refreshed. It will take some time. Does anybody know how to setup DNS on EC2. If I stop and restart the VM I get another IP and it takes long time for the DNS to propagate the change (which I must do manually) and meanwhile the server is unreachable. Clearly there must be a solution

[web2py] Re: Bug in webfolder plugin

2010-02-12 Thread mdipierro
sweet. On Feb 12, 5:40 am, selecta wrote: > While waiting for  Alexandres access management you can have a look at > my unfinished user admin plugin > I thought I would get around to improve it sooner but it does not seem > like that now. Some of you might take this as a base for writing > someth

[web2py] Re: Anyplace to look for web2py Developers?

2010-02-12 Thread mdipierro
It is correct to post here but I will also post an app for that. On Feb 12, 4:51 am, Benigno wrote: > Is there any set place to look for web2py developers?. > > Is it correct to post a project offer here?. > > Else, where should those be sent to?. > > Of course there is elance and the like, but I

[web2py] Re: Ladies and Gentelmen... the web2py book is online

2010-02-12 Thread mdipierro
I did get 3 donations and thank you very very much!. Massimo On Feb 12, 4:41 am, pistacchio wrote: > seems like a very promising start! i was happy to donate (even if i > still don't see the counter going up :( ) > > i'll contribute as i can > > On Feb 12, 2:30 am, mdipierro wrote: > > >http://

[web2py] Re: improvement in web2py compatibility with legacy postgresql datbases column sequence name

2010-02-12 Thread kralin
I've being doing some testing and actually setting primarykey=[] seems to work for creating tables without primary key and read and write them. however appadmin interface crash because it expect a primarykey to pass a query. I fixed this by changing in appadmin.html: {{if request.function=='ind

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

2010-02-12 Thread mdipierro
Let's cool down. You are both very much welcome on this list and you have both shown ability to provide excellent contributions to this list. Graham wrote mod_wsgi for apache and knows it inside out. No question about that. mod_wsgi is the best way to deply web2py on apache. Period. John has pro

[web2py] Re: def data() - problem

2010-02-12 Thread mdipierro
I need more more piece of info. How are you calling the data action? What is the URL? Did you try using sqlite? Does it work? On Feb 12, 12:02 am, Johann Spies wrote: > When I use the "default/data/update" on an unchanged existing record I > get the following error: > > Traceback (most recent ca

[web2py] Re: Bug in sql.Set ?

2010-02-12 Thread mdipierro
PS. For now you can do: db('(time_stop-time_start)>0.0034722').select(db.PINGER_RESULTS.ALL) On Feb 12, 1:02 am, Alexey Nezhdanov wrote: > Hmmm. I thought that the code snippets I provided is enough. NP, here is > more: > db.define_table('PINGER_RESULTS', >     Field('ip','string',length=16), >

  1   2   >