[web2py] Re: Alert when email not sent sucessfully !

2010-02-12 Thread KMax
I could sudjest to use mail-hooks in two ways. 1. cron check mailbox for bouce messages and get invalid mails from there 2.use /etc/aliases (linux at least) and add there '|/opt/mysqcript' for email address which used to sent mail from. both types I get from RequestTracker

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

2010-02-12 Thread Graham Dumpleton
On Feb 12, 6:16 pm, John Heenan johnmhee...@gmail.com wrote: For lower memory footprint on a tight VPS I do not believe any configuration of Apache with web2py (using mod_wgsi or otherwise) will beat a good lighttpd configuration with a FastCGI UNIX socket interface to web2py. I have helped

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

2010-02-12 Thread John Heenan
I should stop feeding the troll. It is obvious Graham has no relevant benchmarks to prove his case, has no intention of providing them. None of the links provided make a relevant case. The bizarre 'Nginx + Apache/mod_wsgi' reference to refer to using Nginx for static content and Apache with

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

2010-02-12 Thread tiago almeida
Sweet! Thanks. No more searching in pdf index then add an offset to get correct page stuff :) Regards, Tiago - On Fri, Feb 12, 2010 at 6:00 AM, mdipierro mdipie...@cs.depaul.edu wrote: On Feb 11, 11:02 pm, Brian M bmere...@gmail.com wrote: Looks very nice - way to go Massimo!

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

2010-02-12 Thread tiago almeida
Massimo, just one very small detail: the image http://web2py.com/book/static/images/vertical.jpg shows artifacts due to jpg compression. This type of image appears sharper in gif or maybe png. Regards, Tiago - On Fri, Feb 12, 2010 at 9:56 AM, tiago almeida

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

2010-02-12 Thread pistacchio
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 mdipie...@cs.depaul.edu wrote: http://web2py.com/book This is only for testing purposes. Please try get an account and send me

[web2py] Anyplace to look for web2py Developers?

2010-02-12 Thread Benigno
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'd rather go through people I see everyday in posts and that I somehow feel that we share a community rather

[web2py] Re: auth_user registration, password field: Order is relevant (OR other reason) OR bug?

2010-02-12 Thread aure
Thank for your help! On Feb 11, 7:19 pm, mdipierro mdipie...@cs.depaul.edu wrote: make sure you ALWAYS pass CRYPT(auth.setting.hmac_key) to CRYPT. On Feb 11, 9:50 am, aure aureliengir...@googlemail.com wrote: Hi everyone, I have customised my table for authentificaition, as shown by

[web2py] Re: web2py site problem ?!

2010-02-12 Thread selecta
http://www.web2py.com/ down http://204.236.202.204/ up On Feb 12, 2:21 am, Jonathan Lundell jlund...@pobox.com wrote: On Feb 11, 2010, at 5:20 PM, 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

[web2py] Re: Form Dropdown - have value different from displayed text

2010-02-12 Thread selecta
Field(..., requires=IS_IN_SET([(1,'a'),(2,'b')(3,'c')]) should work for order preserving list Field(..., requires=IS_IN_SET({1:'a', 2:'b', 3:'c'}) should work for non order preserving lists On Feb 12, 2:12 am, Brian M bmere...@gmail.com wrote: You could also try this

[web2py] validation from the shell

2010-02-12 Thread Christopher Steel
It appears that validation only works via forms. I want to insert a value one time but from db.py, what would be the best way to do this. I tried this, but the same value gets inserted over and over again... db.define_table('mytable', Field('myfield')) db.mytable.myfield.requires =

[web2py] Re: Bug in webfolder plugin

2010-02-12 Thread 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 for writing something more sophisticated. Blocking and deleting users

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

2010-02-12 Thread Nicolás de la Torre
I cant reach web2py.com but www.web2py.com is working. $ host web2py.com web2py.com has address 140.192.37.194 $ host www.web2py.com www.web2py.com has address 204.236.202.204 -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this

[web2py] Re: dynamic content with jquery trigger/bind?

2010-02-12 Thread selecta
Finally got around to try it out - works like a charm, this makes component based design of applications really f**king awesome, excuse me French. I will force myself to write a slice about that soon. This should also go into the official documentation since this IS A KEY feature of web2py for

[web2py] SOLVED: validation from the shell or db.py or any Model after db.py

2010-02-12 Thread Christopher Steel
Gee, getting a little sleepy! This has the desired effect: test_for = 'test' dbvalue='None' rows=db(db.application.name==test_for).select(db.application.ALL) for row in rows: dbvalue = row.name if dbvalue == 'None': db.application.insert(name=test_for) On Feb 12, 6:36 am,

[web2py] Re: conditional display of elements

2010-02-12 Thread G. Clifford Williams
Thanks.. This is the way implemented it for those wondering: in the model (db.py): from gluon.fileutils import check_credentials in the template (views/layout.html) {{if response.menu_edit and ( auth.has_membership(1) or check_credentials(request)) :}} div

[web2py] Re: web2py site problem ?!

2010-02-12 Thread stefaan
Here only web2py.com works $ host www.web2py.com www.web2py.com has address 140.192.37.194 $ host web2py.com web2py.com has address 204.236.202.204 -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to

[web2py] Re: Bug in sql.Set ?

2010-02-12 Thread mdipierro
I understand. You are right. Your previous email should have been sufficient. Let me think about this... On Feb 12, 1:02 am, Alexey Nezhdanov snak...@gmail.com wrote: Hmmm. I thought that the code snippets I provided is enough. NP, here is more: db.define_table('PINGER_RESULTS',    

[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 snak...@gmail.com wrote: Hmmm. I thought that the code snippets I provided is enough. NP, here is more: db.define_table('PINGER_RESULTS',    

[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 johann.sp...@gmail.com wrote: When I use the default/data/update on an unchanged existing record I get the following error:

[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

[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

[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 pistacc...@gmail.com 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

[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 bca...@albendas.com 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

[web2py] Re: Bug in webfolder plugin

2010-02-12 Thread mdipierro
sweet. On Feb 12, 5:40 am, selecta gr...@delarue-berlin.de 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

[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

[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 andrea.pierle...@gmail.com wrote: I've being

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

[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

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 mdipie...@cs.depaul.edu wrote: now that the book is almost online, after we merge it

[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 mdipie...@cs.depaul.edu wrote: I define def error(message=''): session.flash=message redirect(URL(r=request,f='error_page')) and def

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: 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 mdipie...@cs.depaul.edu wrote: Thanks for your patch. I will include it.

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

[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

[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 ravenspo...@yahoo.com wrote: John has provided excellent benchmarks that can help us

[web2py] Re: Requiring arguments

2010-02-12 Thread mdipierro
true. On Feb 12, 9:39 am, DenesL denes1...@yahoo.ca 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 mdipie...@cs.depaul.edu wrote: I define def error(message=''):     session.flash=message    

[web2py] Re: web2py site problem ?!

2010-02-12 Thread mdipierro
hmmm that costs more money. On Feb 12, 9:43 am, Jonathan Lundell jlund...@pobox.com 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

[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 thade...@thadeusb.com wrote: validators are only for crud / SQLFORM. If you want to verify the

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 mdn0...@gmail.com wrote: Is there a way to require arguments/vars in the controller functions other than explicitly checking for

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 ravenspo...@yahoo.com wrote: In the export controller * need

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 stdin, line 1, in module AttributeError: 'module' object has no attribute

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 thade...@thadeusb.com wrote: No. But we do need

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

[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

[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 ndegr...@chello.nl 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

[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

Re: [web2py] about docs

2010-02-12 Thread Zoom.Quiet
On Sat, Feb 13, 2010 at 00:06, Thadeus Burgess thade...@thadeusb.com 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

[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

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

2010-02-12 Thread Álvaro Justen [Turicas]
On Thu, Feb 11, 2010 at 23:20, mdipierro mdipie...@cs.depaul.edu 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:

[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

[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 mdipie...@cs.depaul.edu 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

[web2py] Re: web2py site problem ?!

2010-02-12 Thread villas
On Feb 12, 4:01 pm, mdipierro mdipie...@cs.depaul.edu 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

[web2py] Re: about docs

2010-02-12 Thread mdipierro
http://web2py.com/book On Feb 12, 10:41 am, Renato-ES-Brazil renatoa...@gmail.com wrote: Sorry, where is this online version of the book? On 12 fev, 04:03, mdipierro mdipie...@cs.depaul.edu wrote: now that the book is almost online, after we merge it with alterego I am considering

[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 thade...@thadeusb.com wrote: No its not missing the leading c. There is no leading c. Try importing cStringIO.cStringIO and

[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 mdipierro
cStringIO.StringIO not cStringIO.cStringIO On Feb 12, 10:03 am, Thadeus Burgess thade...@thadeusb.com 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

[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 thade...@thadeusb.com wrote: No its not missing the

[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

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

[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 snak...@gmail.com 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

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 ravenspo...@yahoo.com 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

[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 tfarr...@swgen.com wrote: Clarify this a little.  Is

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

[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] Re: gae error

2010-02-12 Thread mdipierro
yes. No like on gae. On Feb 12, 11:32 am, Wes James compte...@gmail.com 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]

[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

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,

[web2py] web2py and GQL in operator

2010-02-12 Thread Wes James
How is the gql inoperator 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 this

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 mdipie...@cs.depaul.edu wrote: I

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

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

[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

[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] alvarojus...@gmail.com wrote: On Thu, Feb 11, 2010 at 23:20, mdipierro mdipie...@cs.depaul.edu wrote: It has moved. It is not here: http://204.236.202.204/ My DNS has

[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 mdipie...@cs.depaul.edu wrote: http://web2py.com/book This is only for testing

[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 tfarr...@swgen.com 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

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 aureliengir...@googlemail.com wrote: Great news! Thank you! The lulu and amazon links to purchase the book seem not to point to the right place

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

2010-02-12 Thread mdipierro
oops. fixed On Feb 12, 2:07 pm, aure aureliengir...@googlemail.com 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

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

[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

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

[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

[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 balo...@googlemail.com 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

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: about docs

2010-02-12 Thread mdipierro
http://web2py.com/book/default/wikipage/how-to-contribute On Feb 12, 3:46 pm, Thadeus Burgess thade...@thadeusb.com 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

[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

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

[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 mdipie...@cs.depaul.edu 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

[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 boldFeel free to use your favorite

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

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

[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 richar...@gmail.com 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

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 gr...@delarue-berlin.de: 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

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 mdipie...@cs.depaul.edu: Please check it out. Minor fixes. -- You received this message because you are subscribed to the Google Groups web2py-users group.

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] 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 line

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 tiago.b.alme...@gmail.com wrote: Sorry, spoke too soon. I saw how auth works and did

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 thade...@thadeusb.com 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

  1   2   >