[web2py:25402] Readable/writable fields and crud.read / SQLFORM readonly

2009-07-01 Thread Peter
well the field does disappear from the crud.read output. Problem (if it is that) seems to be in the underlying SQLFORM(..., readonly=True). Is this behavior correct, or have I misunderstood the semantics for readable/writable... ;-) This is using the 1.64.4 release. Cheers, -Peter

[web2py:25411] Re: Readable/writable fields and crud.read / SQLFORM readonly

2009-07-01 Thread Peter
ou can want to edit/update > the field but not show it in crud.read and SQLTABLEs > > On Jul 1, 8:04 am, Peter wrote: > > > Given this controller: > > def vread(): > >     db.auth_user.something.readable=False > >     db.auth_user.something.writable=True >

[web2py:25433] Re: Readable/writable fields and crud.read / SQLFORM readonly

2009-07-01 Thread Peter
Tested on trunk (r1090), works OK now. Thanks! -P On Jul 1, 5:03 pm, mdipierro wrote: > I think this is now fixed in trunkk, but give it a try. > > On Jul 1, 9:08 am, Peter wrote: > > > > but not show it in crud.read and SQLTABLEs > > > Exactly, that is what I w

[web2py:13097] User management and registration

2008-12-07 Thread Peter
" sounds promising but seems to be a work-in-progress at the moment. If anyone here have example code or advice, I'd be very grateful. Cheers, -Peter --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &qu

[web2py:13235] Re: User management and registration

2008-12-09 Thread Peter
So...I've just finished watching the T2 video on Vimeo. It will take me a few days to digest this, but... wow! I'm going to try and re-write my Django app in web2py, see how far I can get... Thank you! -Peter On Dec 7, 7:42 pm, mdipierro <[EMAIL PROTECTED]> wrote: > http:/

[web2py:13552] Editing T2 -- caching problems?

2008-12-14 Thread Peter
l get the original flash message... which might explain why the log.infos that I put in also come up empty. Thanks in advance, -Peter --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" gr

[web2py:13571] Re: Editing T2 -- caching problems?

2008-12-15 Thread Peter
rror handling); - if so, completely stop and restart web2py after each edit; - in order for email reg to work, T2 assumes a working SMTP server on localhost:25 Cheers, -Peter On Dec 15, 12:57 am, "Yarko Tymciurak" wrote: > Hi Peter - > IF you are doing this for T3, then you s

[web2py:13572] Re: Editing T2 -- caching problems?

2008-12-15 Thread Peter
he startup/shutdown process... Cheers, -Peter On Dec 15, 3:29 pm, Peter wrote: > Yarko, thanks.  I'm doing this "only" for the registration/auth/authZ > functions in T2. > As such, I don't have strong preferences where the code is > located. ;-) > > I instant

[web2py:13585] Re: Editing T2 -- caching problems?

2008-12-15 Thread Peter
OK, thanks! Most Python/web stuff I have experience with doesn't have such long-running processes-- which, in a way, I guess is to web2py's credit. ;-) Anyway, now that I know I can learn to live with it. Cheers, -Peter On Dec 15, 8:29 pm, mdipierro wrote: > Hi Peter, > >

[web2py:14091] Re: IMPORTANT: Bill's patch

2008-12-23 Thread Peter
This looks like what I need: custom forms with fields that can tie into model and database, including validation,etc. But this modified version of "Bill's patch" hasn't yet made it into production yet (1.54), is that correct? -Peter On Nov 10, 8:01 am, mdipierro wrote: >

[web2py:14093] Re: IMPORTANT: Bill's patch

2008-12-23 Thread Peter
Sorry, please ignore. It seems I missed the new thread on this: http://groups.google.com/group/web2py/browse_thread/thread/4cd0a75de54f32aa/2c20dbcbd9d8aa9d?lnk=gst&q=custom+forms#2c20dbcbd9d8aa9d Cheers, -P On Dec 23, 10:55 pm, Peter wrote: > This looks like what I need:customformswith

[web2py:14189] Re: Proposal: MVC separation - son of custom views

2008-12-28 Thread Peter
em: nothing happens if I click submit (no flash message, no update in db). Among much else, I've tried: - adding "action" and "method' attributes to form; - form.accept with "formname=None" instead of session; - form.accept without any second argument -- no luck with

[web2py:14202] Re: Proposal: MVC separation - son of custom views

2008-12-28 Thread Peter
UT I keep having the same problem as described above with my T2_PERSON extended table. Adding the name="id" field makes no difference. If you have any further ideas, please let me know... Somehow related to T2?? Cheers, -Peter In db.py: db.define_table('t2_person', SQ

[web2py:14204] Re: Proposal: MVC separation - son of custom views

2008-12-28 Thread Peter
t (no flash message, no update in db). << Cheers, -Peter On Dec 28, 6:50 pm, Peter wrote: > Massimo, thanks for the incredibly fast turnaround -- on a Sunday > even. ;-) > > I've done some more experimenting. This works beautifully on my > PRODUCT table. I do have to

[web2py:14210] Re: Proposal: MVC separation - son of custom views

2008-12-28 Thread Peter
Check -- that did the trick. I didn't know that specifying the fields in the SQLFORM had this effect on the scope of the update. You live and learn... Thanks for the support! -Peter On Dec 28, 7:48 pm, mdipierro wrote: > I see. You need > >     form=SQLFORM(db.t2_perso

[web2py:14220] Inline images in SQLFORM, general SQLFORM API...

2008-12-28 Thread Peter
able to get going quickly with SQLFORM and T2 CRUD, but so far, it's been a bit of an uphill battle, I'm afraid... All the more frustrating because I think it's very very close to what I need. Cheers, -Peter --~--~-~--~~~---~--~~ You received this message

[web2py:14223] Re: Inline images in SQLFORM, general SQLFORM API...

2008-12-28 Thread Peter
t you need. Maybe I should give it another shot. Care to share some T2 secrets? ;-) Cheers, -Peter On Dec 29, 12:14 am, Fran wrote: > On Dec 28, 9:42 pm, Peter wrote: > > > BTW, I would really appreciate a more formal API for SQLFORM that is > > more geared towards using it pi

[web2py:14237] Re: Inline images in SQLFORM, general SQLFORM API...

2008-12-29 Thread Peter
way is to manipulate the components[..] stuff -- eg, through the new elements interface? Cheers again... -Peter On Dec 29, 7:10 am, mdipierro wrote: > define a widget, something like: > > def myhelper(field,value): >     field_id='%s_%s' % (field._tablename,field.name) &g

[web2py:14259] Re: Inline images in SQLFORM, general SQLFORM API...

2008-12-29 Thread Peter
When do you expect this functionality to appear in a production release? If that is within a week or two, I can use trunk for my current project... Cheers & thanks for a great tool, -Peter On Dec 29, 3:21 pm, mdipierro wrote: > 1) I am sorry. I do not understand without a code example. &

[web2py:14263] Re: Inline images in SQLFORM, general SQLFORM API...

2008-12-29 Thread Peter
t should have but instead it starts afresh with , ie, the top table row. I can send you both html outputs if you like. Cheers, -Peter On Dec 29, 3:21 pm, mdipierro wrote: > 1) I am sorry. I do not understand without a code example. > > 2) not possible. I agree there should be

[web2py:15090] Custom forms again

2009-01-18 Thread Peter
Hi Massimo et al, First of all, the onvalidation callback that is now in SQLFORM (in trunk) is a real winner, thanks! The validation rules in my app are largely context-sensitive, and that was a big problem -- until now. I am still struggling to find the best way to customize SQLFORM views, thou

[web2py:15104] Re: Custom forms again

2009-01-18 Thread Peter
send you a patch for html.py, but I'm afraid I am lacking both in experience and in time... ;-) Cheers, -Peter On Jan 19, 3:34 am, mdipierro wrote: > At this time using [i], .element, .append and .insert are the only > methods to manipulate the form. Can you provide an example of t

[web2py:15116] Re: Custom forms again

2009-01-19 Thread Peter
27;submit_record__row') # get rid of the submit button and append two new INPUTs in its place del(submit_tr[1][0]) submit_tr[1].append( INPUT( _type='button', _value=T ('<>') ) ) Looks a lot better, doesn't it? :-) This way, I can really "go to

[web2py:15117] Re: Custom forms again

2009-01-19 Thread Peter
ue=T > ('<     submit_tr[1].append( INPUT( _type='submit', _value=T('Next>>') ) ) > > Looks a lot better, doesn't it? :-)  This way, I can really "go to > town" on the html as generated by SQLFORM. > Thanks again! > -Peter > &g

[web2py:15295] Re: future of T2 is *almost* here

2009-01-22 Thread Peter
s as well. I'd be happy to contribute where I can -- within the limitations that come with my "occasional" status. Hope this helps, Cheers, -Peter On Jan 21, 10:46 am, mdipierro wrote: > yes but only so that you can test them and provide feedback. I hope to > finalize the AP

[web2py:15878] Re: new web site?

2009-02-04 Thread Peter
ation, it's all there. If you do decide to try Mediawiki, be sure to also copy the CSS over from the WP codex. ;-) Cheers, -Peter On Feb 4, 8:35 pm, mdipierro wrote: > oops. Thank you > > On Feb 4, 12:57 pm, Douglas Andrade wrote: > > > Hi Massimo, > &g

[web2py:16015] MySQL and 1.56.1: 'no such record' error

2009-02-08 Thread Peter
the old t2 module I still use? Cheers, -Peter # default.py: def testmysql(): pers = db(db.t2_person.id==t2.person_id).select()[0] form = SQLFORM(db.t2_person,pers) if form.accepts(request.vars,session): redirect(URL(r=request,f='index')) return dict(form=f

[web2py:16019] Re: MySQL and 1.56.1: 'no such record' error

2009-02-08 Thread Peter
Hi Massimo, The printed values are " '9' 9L " in both cases. Your first suggestion is ineffective, but the second one solves this problem: self.table._db(self.table.id==self.record.id).update(**fields) I have another issue that seems to be mysql related, I'll post

[web2py:16021] Re: MySQL and 1.56.1: 'no such record' error

2009-02-08 Thread Peter
the fields array as passed to SQLFORM, and in 1.56 it includes all fields in the database table? Is that possible? At any rate, I can repair this by explicitly specifying the fields to be validated in the validator function. Cheers, -Peter On Feb 8, 6:39 pm, mdipierro wrote: > I think th

[web2py:16028] Re: MySQL and 1.56.1: 'no such record' error

2009-02-08 Thread Peter
7; list that has ALL fields in the table, instead of the fields array that I passed to SQLFORM -- which I think is how it should be. Note that this is *not* mysql-related, it also occurs with sqlite. Cheers, -Peter # default.py def valtest(): pers = db(db.t2_person.id==t2.person_id).select(

[web2py:16040] Re: MySQL and 1.56.1: 'no such record' error

2009-02-08 Thread Peter
] =='': form.errors[f]='error' > >   form=SQLFORM(db.t2_person,pers,fields=fields) > >   if form.accepts(request.vars, session, onvalidation=lambda > form,fields=fields: > myvalidator(form,fields)): >     redirect(URL(r=request,f='index')) > >  

[web2py:16041] Re: new puppy example please?

2009-02-08 Thread Peter
, linkto=URL(r=request,f='data',args= ['read'])) return dict(form=form, items=items) (Note: the T2 requires_login had the option of specifying a 'next' function which was passed in the vars._destination... This is missing in tools for now, AFAICT) --- I don&#x

[web2py:16060] Re: new puppy example please?

2009-02-08 Thread Peter
T2" needs to be redone, I have more interest in documenting and expanding what is now in tools.py than what was left out of it. ;-) Cheers, -Peter On Feb 9, 12:47 am, mdipierro wrote: > Peter, > > if you and some others (Fran? Ceej?) want to take over T2 and move it > on top of t

[web2py:16071] Re: new puppy example please?

2009-02-09 Thread Peter
for that user. If you run into any problems, please post. I'm in Amsterdam GMT+1 so timewise that's closer than you may think. ;-) Cheers, -Peter On Feb 9, 2:59 pm, murray3 wrote: > Peter, > thanks for this I will have a go later (I'm in Dublin GMT), just one > thing

[web2py:16079] Re: new puppy example please?

2009-02-09 Thread Peter
be something like auth.messages.verify_email = \ 'Click on the link: %(validate_url)s/%(key)s to verify your email' I would be happy to suggest a patch, but I don't want to sneak in a fullurl() helper... ;-) Cheers, -Peter On Feb 9, 3:56 pm, Peter wrote: > Hi Chris,

[web2py:16083] Re: new puppy example please?

2009-02-09 Thread Peter
h nah nah nah nah" or 2. Fix it, since it is trivial enough. ;-) Maybe this is my chance to contribute: please put my suggestion to Chris in the "official web2py documentation", by way of implementing option 1. ;-)) Cheers, -Peter On Feb 9, 5:07 pm, Wes James wrote: > As ment

[web2py:16086] Re: new puppy example please?

2009-02-09 Thread Peter
olute) link to the verify_email function, currently not easily provided by web2py -- that is what this is about. Cheers, -Peter On Feb 9, 5:07 pm, Wes James wrote: > As mentioned before it is so the developer can put in their own messge. > > -wj > > On Mon, Feb 9, 2009 at 9

[web2py] Re: sqlform.grid search widget

2012-07-19 Thread peter
so as to correct it? Peter On Wednesday, 18 July 2012 15:30:59 UTC+1, Elcimar wrote: > > > Works like a charm, but the "Clear" button is working exactly like the > "Search" one, without clearing 'search_text' before submit > Is there another method to d

Re: [web2py] Re: sqlform.grid search widget

2012-07-20 Thread peter
to be 'google like'. Peter On Thursday, 19 July 2012 16:22:21 UTC+1, Richard wrote: > > I think it will solve one of the issue I had with using sqlform.grid in > place of sqltable + Datatables. Since Datatables has a pretty simple > search/filter and my users knows how

[web2py] Re: Centos 5 script for Nginx with Uwsgi and Web2py

2012-07-28 Thread peter
Glad you got it working in the end. It is useful that it has now been independently tested. Peter On Saturday, 28 July 2012 15:55:38 UTC+1, Alan Etkin wrote: > > Well, I finally found a way of getting the server to serve web2py apps. > The only problem with your recipe for my host w

[web2py] Re: Centos 5 script for Nginx with Uwsgi and Web2py

2012-07-30 Thread peter
else in the usgi_python folder. If you have a revised script I can test it. Thanks Peter On Sunday, 29 July 2012 15:26:37 UTC+1, Alan Etkin wrote: > > The fixed peter scrip to install Python 2.7.3 and self-signed certs for > ssl enabled apps. It retrieves the base architecture also

[web2py] Re: Centos 5 script for Nginx with Uwsgi and Web2py

2012-08-01 Thread peter
#x27; 'cp -R ./$version/* /opt/uwsgi-python/*' changed to 'cp -R ./$version/* /opt/uwsgi-python' after "cd /opt/uwsgi-python echo 'build using python 2.7' python2.7 setup.py build" I get ImportError no module named setuptools. Any ideas why you did not

[web2py] Re: Centos 5 script for Nginx with Uwsgi and Web2py

2012-08-02 Thread peter
has been tested in this manner. The only thing my script does not set up is the parameters_443.py file for the password. I copied this in manually. Peter On Wednesday, 1 August 2012 18:30:37 UTC+1, Alan Etkin wrote: > > >> I have got through 5 issues on your instructions so far: >

[web2py] Re: Centos 5 script for Nginx with Uwsgi and Web2py

2012-08-02 Thread peter
if anyone submitting a script tests it on a bare operating system install. This is what I have done. Peter On Thursday, 2 August 2012 13:37:44 UTC+1, Alan Etkin wrote: > > > Python2.7 causes problems, eg no sqlite > > I have web2py apps working both with sqlite and postgres

[web2py] Re: Centos 5 script for Nginx with Uwsgi and Web2py

2012-08-02 Thread peter
Massimo: it depends how long Alan will take to come up with a tested script for python 2.7. A working python2.6 script is better than an almost working 2.7 one. Peter On Thursday, 2 August 2012 15:22:27 UTC+1, Alan Etkin wrote: > > > The script I attached in my previous email is your s

[web2py] Re: Centos 5 script for Nginx with Uwsgi and Web2py

2012-08-04 Thread peter
Thanks for this Alan. I will independently test and feedback, but imagine it will work for me too. Peter On Saturday, 4 August 2012 00:23:21 UTC+1, Alan Etkin wrote: > > Updated the script to: > > - Write port 443 admin password > - Create welcome.w2p package (for solving a

[web2py] Re: Centos 5 script for Nginx with Uwsgi and Web2py

2012-08-04 Thread peter
Script tested and working. Thanks Alan Peter On Saturday, 4 August 2012 10:50:45 UTC+1, peter wrote: > > Thanks for this Alan. I will independently test and feedback, but imagine > it will work for me too. > Peter > > On Saturday, 4 August 2012 00:23:21 UTC+1, Alan Etkin wr

[web2py] post deleted

2012-08-29 Thread peter
I added a post called routes.py and patterns with routes_app and it has been deleted within an hour of being added. Does anyone know why? Thanks Peter --

[web2py] routes.py and patterns with routes_app

2012-08-29 Thread peter
. I need to use pattern based routing within an app, so I need to get on top of this. I would like, within routes_app to be able to route according to domain name. So what would routes_app look like to route 127.0.0.1:8002 to welcome, and localhost:8002 to admin Thanks Peter --

Re: [web2py] post deleted

2012-08-29 Thread peter
I saw it up there, and then later it was deleted. I could actually click on the link and when I did this, it said that the post had been deleted. As you say maybe it is a bug in google groups. I will always click email updates to me, then at least I will have a copy. Peter On Wednesday, 29

[web2py] Re: routes.py and patterns with routes_app

2012-08-29 Thread peter
n application specific routes.py (in the application folder rather > than the web2py root folder). I think you want to use routes_in (probably > with a matching routes_out) instead. See > http://web2py.com/books/default/chapter/29/4#Pattern-based-system. > > Anthony > On Wednesd

[web2py] routes.py and patterns with routes_app

2012-08-29 Thread peter
em that is causing the example at the top of this post not to work. Thanks for any help here. Peter --

Re: [web2py] Re: routes.py and patterns with routes_app

2012-08-29 Thread peter
y modified: I would like, within routes_in to be able to route according to domain name. So what would routes_in look like to route 127.0.0.1:8002 to welcome, and localhost:8002 to admin Thanks Peter On Wednesday, 29 August 2012 14:59:36 UTC+1, Jonathan Lundell wrote: > > On 29 Aug 2

Re: [web2py] Re: routes.py and patterns with routes_app

2012-08-29 Thread peter
to be able to route according to domain name. So what would routes_in look like to route 127.0.0.1:8002 to welcome, and localhost:8002 to admin Thanks Peter On Wednesday, 29 August 2012 14:59:36 UTC+1, Jonathan Lundell wrote: > > On 29 Aug 2012, at 6:46 AM, peter > > wrote: &

Re: [web2py] Re: routes.py and patterns with routes_app

2012-08-29 Thread peter
n matching routes.py for british_jazz I am sure other people would like to do the equivalent of domains with patterns Thanks Peter On Wednesday, 29 August 2012 16:21:12 UTC+1, Jonathan Lundell wrote: > > A little below that is the general structure of the incoming pattern. > > '

Re: [web2py] Re: routes.py and patterns with routes_app

2012-08-29 Thread peter
Thanks for the suggestion Massimo It did not match with localhost or 127.0.0.1 eg localhost:8002/gallery Peter On Wednesday, 29 August 2012 18:19:26 UTC+1, Massimo Di Pierro wrote: > > Are you trying to match the remote address as localhost? The problem is that > it depends on

Re: [web2py] Re: routes.py and patterns with routes_app

2012-08-30 Thread peter
#x27;,'/myapp/$anything'), ('.*://mydomain:(get|post) /$anything','/myapp/$anything')] or if using routes_app routes_app=[('.*://mydomain:(get|post) /$anything','myapp'), Peter On Wednesday, 29 August 2012 19:15:03 UTC+1, peter wrote

Re: [web2py] Re: routes.py and patterns with routes_app

2012-08-30 Thread peter
7;myapp'), is given in the book as an example of mapping a domain to an app. I do not think that anyone would get to the above from the docs without a lot of trial and error. Thanks Peter On Thursday, 30 August 2012 15:39:51 UTC+1, Jonathan Lundell wrote: > > On 30 Aug 2012, at

Re: [web2py] Re: sqlform.grid search widget

2012-09-04 Thread peter
rid call, before the call add search_text=request.get_vars.keywords query=search_query(db.tablea.id,search_text, [db.tablea.fielda,db.tablea.fieldb]) Peter On Friday, 20 July 2012 22:12:10 UTC+1, Elcimar wrote: > > it works now =) > thanks dude > about the search query >

Re: [web2py] Re: sqlform.grid search widget

2012-09-04 Thread peter
Sorry the previous email did not contain the final version. Here it is. def search_form(self,url): form = FORM('', INPUT(_name='keywords',_value=request.get_vars.keywords, _style='width:200px;', _id='keywords'), INPUT(_type='submit',_value=T('Sear

[web2py] alphabetic search and sqlform.grid

2012-09-04 Thread peter
In a previous post I showed a solution for a more google like search for SQLFORM.grid - " sqlform.grid *search* *widget* ". I have now extended this to allow alphabetic searches by clic

[web2py] Re: dropbox python api

2012-09-10 Thread peter
Joseph your code for dropbox is no longer there. Is there any chance of you putting it up again? Thanks Peter On Thursday, 5 January 2012 17:28:41 UTC, Joseph Jude wrote: > > If anyone is interested, you can look into the code for dropbox connection > here: > > http://goo.gl/QY

[web2py] Re: dropbox python api

2012-09-10 Thread peter
ck (most recent call last): File "C:\Users\Peter\web2pyn\gluon\main.py", line 528, in wsgibase session._try_store_on_disk(request, response) File "C:\Users\Peter\web2pyn\gluon\globals.py", line 594, in _try_store_on_disk cPickle.dump(dict(self), response.session_f

[web2py] Re: dropbox python api

2012-09-10 Thread peter
Problem sorted by Massimo in under 12 hours. Amazing responsiveness Peter --

[web2py] Re: form checkbox keepvalues

2012-09-13 Thread Peter
Hi, I have this: tuple1 = [] for k in data.domain.attributes: tuple1.append(k.name) form = FORM(TR(SELECT(_name='search_category_1', *[OPTION(tuple1[i], _value=i) for i in range(len(tuple1))]), value=request.vars.search_category_1), TR("",INPUT(_type="text"

[web2py] web2py and the dropbox api

2012-09-13 Thread peter
ll textfile it works fine. However with a zipfile of only 720KB I get. TRACEBACK 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. Traceback (most recent call last): File "C:\Users\Peter\web2pyn\gluon\restricted.py", line 205, in restricted exec ccode i

[web2py] Re: web2py and the dropbox api

2012-09-14 Thread peter
I am glad to say that this problem is a windows problem. My local host is a windows machine, but this is just for testing. My actual server is a linux machine and dropbox put_file works fine on the linux machine. Peter On Thursday, 13 September 2012 14:17:28 UTC+1, peter wrote: > > T

[web2py] compute not working on update

2012-05-25 Thread peter
t occurred. Similarly if I edit a record and submit, no compute. Yet if I add a record, the compute does take place. Anyone any ideas why? Thanks Peter

[web2py] Re: compute not working on update

2012-05-25 Thread peter
Thanks I should have used update_record. However still no compute, and compute does not work when editing also. Peter On Friday, May 25, 2012 6:50:33 PM UTC+1, peter wrote: > > I am using web2py 1.99.7 > > I have a compute as > > db.image.thumb.compute=lambda r:THUMB(r['

[web2py] Re: compute not working on update

2012-05-25 Thread peter
uding both insertions and updates, if a value for the field is not provided, web2py tries to compute from the other field values using the compute function. " Peter On Friday, May 25, 2012 6:50:33 PM UTC+1, peter wrote: > > I am using web2py 1.99.7 > > I have a compute as >

[web2py] Re: compute not working on update

2012-05-26 Thread peter
s executed when one creates a new record, but does not get executed when one edits a record, even when one changes the image which is stored in 'file'. the editing is done by clicking the 'edit' link in SQLFORM.grid. Peter On Friday, May 25, 2012 6:50:33 PM UTC+1, p

[web2py] problem with update

2012-06-02 Thread peter
that postcode does not get updated to the value it already contains, but gets updated to 'clubs.postcode'.* *This does not seem consistent with the book.* *I know I could do a loop and update_record, but this seems to do a commit on each update_record, and therefore take a lot longer than* *if I can do it in one update.* * * * * *Peter* * * * * * *

[web2py] Centos 5 script for Nginx with Uwsgi and Web2py

2012-06-13 Thread peter
Installing Web2py with Nginx and Uwsgi on Centos 5 is really tricky. There are lots of subtleties of ownership, and one has to take care when installing python 2.6 not to stop the systems python2.4 from working. I have finally developed a script that does all the installation from a clean sta

[web2py] using a virtual machine

2012-06-13 Thread peter
g system's connection. I used this virtual box approach to develop a script for Nginx with Uwsgi and Web2py on Centos 5. This prevented my site being down for significant amounts of time. Peter

[web2py] Re: using a virtual machine

2012-06-14 Thread peter
welcome app. Peter On Thursday, 14 June 2012 05:37:40 UTC+1, Craig Matthews wrote: > > Hi. Can you put this vm image up and provide a link to it? > > > On Wednesday, June 13, 2012 2:47:51 PM UTC-4, peter wrote: >> >> If you are setting up a website on a remote server yo

[web2py] Re: Web2Py compute fields not working on update

2012-06-18 Thread peter
I would try removing the readable and writeable false for the compute fields. It seems that it does automatically not show them. I found that setting readable and writeable to False means the thumbs only get computed on insert, not update. I reported this a while back. Peter On Monday, 18

Re: [web2py] Re: How much python is needed to learn web2py

2012-07-03 Thread peter
trying to hype it up or something. I do recognise that you have often given valuable feedback to the group about how to ensure that web2py sites do run efficiently and I have learnt from your feedback. Peter On Tuesday, 3 July 2012 19:07:50 UTC+1, Bruce Wade wrote: > > My site is probab

Re: [web2py] Re: How much python is needed to learn web2py

2012-07-04 Thread peter
out on web2py. I pretty much learnt python from the web2py examples, and on the job. So I learnt python by writing ukjazz.net. This site is pretty complete but not yet promoted. I found python very easy to learn and such a nice language. Web2py plus python is a dream come true. Peter On Tu

[web2py] Re: Centos 5 script for Nginx with Uwsgi and Web2py

2013-01-30 Thread peter
options. I think we would be wiser to make the standard script one for python 2.6 because of the problems with python 2.7 Peter On Wednesday, 12 September 2012 14:49:19 UTC+1, Alan Etkin wrote: > > I'm trying step to step now...and only was needed an little changes >> > >

[web2py] Re: Centos 5 script for Nginx with Uwsgi and Web2py

2013-01-30 Thread peter
Good solution Alan. Peter On Wednesday, 30 January 2013 16:36:17 UTC, Alan Etkin wrote: > > > I think we would be wiser to make the standard script one for python 2.6 > because of the problems with python 2.7 > > Just before opening an issue, what do you think? (see attached)

[web2py] Re: How can I run multiple applications with multiple domains on nginx?

2013-03-23 Thread peter
p1/static/$anything'), (r'.*://www.site1.com:\w* /$anything', r'/app1/default/$anything'),) routes_out = (('/app1/default/(?P.*)', '/\g'),) and similarly for app2 I hope this helps Peter On Thursday, 21 March 2013 16:06:46 UTC, Massimo Di Pierro wrote:

[web2py] Dropbox backup of sqlite database

2012-10-29 Thread peter
I thought I would share some routines I find useful for backing up sqlite to dropbox I believe safely. The nice thing about backing up to dropbox, is that the backup ends up on your local machine and so can be backed up more safely from there. First execute 'setup_dropbox'. This should only nee

[web2py] Re: Help With Dropbox idea

2012-10-29 Thread peter
I have posted a related solution Dropbox backup of sqlite database<https://groups.google.com/forum/?fromgroups=#!topic/web2py/p1QeoKltkL8> in this forum Peter On Monday, 22 October 2012 12:48:28 UTC+1, Hassan Alnatour wrote: > > Dear ALL , > > I want to make function tha

[web2py] Re: Dropbox backup of sqlite database

2012-10-29 Thread peter
Okay thanks that is much neater. Peter On Monday, 29 October 2012 11:47:57 UTC, Niphlod wrote: > > ps: don't use os.getcwd() + '/applications/' + request.application . Use > request.folder. > > On Monday, October 29, 2012 12:08:27 PM UTC+1, peter wrote: >

Re: [web2py] Re: Dropbox Error : to many values to unpack

2012-10-29 Thread peter
I tried the example in the book in 2.1.1 It logs in okay, but when I try stream = open('afile.txt','rb') mydropbox.put('destfile.txt',stream) I get a ticket 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. Traceback (most recent call last): File "C:\Users

Re: [web2py] Re: Dropbox Error : to many values to unpack

2012-10-30 Thread peter
I am sure that I am not the only one who would try and put the relevant application folder (in dropbox) there. Peter On Tuesday, 30 October 2012 03:23:00 UTC, Massimo Di Pierro wrote: > > I think I know what the problem is. I made a change in trunk. Can you > check if it solves it? >

[web2py] problem with share button

2012-11-04 Thread peter
With 2.2.1 stable. *On the welcome App, if I click the share button bottom right, and then google+, fill in the comment and target email address, and then click 'share' I get:* There was a problem saving your post. Please try again. this happens repeatedly. Peter --

[web2py] Re: problem with share button

2012-11-04 Thread peter
I just tried filling in this bit in db.py ## configure email mail = auth.settings.mailer mail.settings.server = 'logging' or 'smtp.gmail.com:587' mail.settings.sender = 'y...@gmail.com' mail.settings.login = 'username:password' with my details but I stil

[web2py] problem in Examples in 2.2.1

2012-11-04 Thread peter
I Just clicked on the link for examle 6 in the examples app. I get. invalid view (simple_examples/hello6.html) similar problem for status.html Peter --

[web2py] Re: How to add a column?

2012-11-06 Thread peter
Thanks Niphlod this is a really clear explanation. It seems to me somewhat clearer than the section in the book on migrations. Maybe you could refresh the bit in the book with some of this post. Peter On Monday, 5 November 2012 21:04:36 UTC, Niphlod wrote: > > in the "normal"

[web2py] Re: problem with share button

2012-11-07 Thread peter
Does the share button work properly for anyone when using google+? If it works for you, is there any tip that you have. If it does not work for anyone, can this bug be fixed. Thanks Peter On Sunday, 4 November 2012 11:08:47 UTC, peter wrote: > > I just tried filling in this bit in

[web2py] Re: Very simple issue: redirect on login - auth.settings.login_next

2012-11-14 Thread peter
URL will cause the redirection. They all then find out the hard way it does not work. Trawl through the forums and try various things until coming up with a solution. I wonder how much time has been wasted on this (and the login_next etc). Peter > > --

[web2py] Re: Very simple issue: redirect on login - auth.settings.login_next

2012-11-15 Thread peter
have to set the referrer_actions argument to auth.navbar() appropriately" auth.navbar(referrer_actions=None) did not work for Rob or for myself. Peter On Wednesday, 14 November 2012 19:27:35 UTC, Anthony wrote: > > If setting auth.user.settings to a URL stopped the bit of code tha

[web2py] Re: Very simple issue: redirect on login - auth.settings.login_next

2012-11-16 Thread peter
I have already issued a bug report. for auth.navbar(referrer_actions=None) Peter On Friday, 16 November 2012 18:03:12 UTC, Anthony wrote: > > How does someone arrive at your login page? Is it via the "Login" link > generated by the auth.navbar()? > > Anthony > >

[web2py] Re: Very simple issue: redirect on login - auth.settings.login_next

2012-11-17 Thread peter
Thanks Anthony. I think Rob was tempting fate by putting 'Very Simple' in the heading of this thread. Peter On Saturday, 17 November 2012 15:46:47 UTC, Anthony wrote: > > Note, I just marked the issue as invalid, as it appears you were calling > auth.navbar in a model file

[web2py] Re: request args

2012-11-18 Thread peter
folder of your app. Remember to restart web2py to allow the changes in the module folder to filter through. This works for me and I find pyfpdf pretty good. Peter On Tuesday, 13 November 2012 23:28:59 UTC, Paul Rykiel wrote: > > Hi just learning WEB2py and I have a question: > > why

[web2py] Re: Very simple issue: redirect on login - auth.settings.login_next

2012-11-18 Thread peter
lines auth.settings.login_next = URL('user/profile') # uncomment, and change the URL() if you want user to go to a URL after saving profile # auth.settings.profile_next = URL('pageyouwanttogoto') # RAM END - - - - - - - - - - - - - - Peter --

[web2py] Re: request args

2012-11-19 Thread peter
Paul I think you will find that you have created a file. The file tuto1.pdf will be in your web2py folder which is maybe why you are not seeing it. if you do pdf.output(name=request.folder+'/static/tuto1.pdf') It would put it in the static folder of your application. Peter

[web2py] Re: How to get register_next to move on to the desired URL

2012-11-19 Thread peter
b.py - located BELOW the setting under > ## configure auth policy lines auth.settings.register_next = URL('user/profile') Peter On Sunday, 18 November 2012 22:51:14 UTC, Daniele wrote: > > Hey guys, I would like to set register_next to move on to a URL upon > successful registr

Re: [web2py] Re: request args

2012-11-19 Thread peter
Don't have this statement return response.stream(open('tuto1.pdf')) Instead redirect to wherever you want to go next, or just have a plain old return and use your routine as a function. Peter On Monday, 19 November 2012 12:06:51 UTC, Paul Rykiel wrote: > > yes, I re

  1   2   3   4   5   >