[web2py] Authentication

2011-11-08 Thread Nils Olofsson
Hi, Just wondering if this is possible, I think it should be... I have a 2 web2py application, but i want them to have a common authentication db. I was thinking of doing this in the model DB for both. authdb = DAL('mysql database') Then auth = Auth(globals(),authdb) I have now tested

[web2py] upload - S3 storage

2011-07-25 Thread Nils Olofsson
Hi all, Before I go off and make an attempt at creating a S3 upload function, I was just wondering if anyone has a working version ? I read the discussion on this and for me I need a way of storing uploaded images on S3 to share between a few VPS on Amazon's EC2. The only other way to

[web2py] Re: upload - S3 storage

2011-07-25 Thread Nils Olofsson
nils.olofs...@gmail.com wrote: HI, Just looking at dal.py and there is a SQLCustomType, I was wondering if the functionality i would require could be added via  this class?, Would this be the way to go ? Nils On Mon, Jul 25, 2011 at 1:04 PM, Nils Olofsson nils.olofs...@gmail.com wrote

[web2py] Re: database replication

2011-07-22 Thread Nils Olofsson
the change. Anthony On Thursday, July 21, 2011 3:54:20 PM UTC-4, Nils Olofsson wrote: Hi, I did this but i got : Traceback (most recent call last):   File /var/www/web2py/gluon/restricted.py, line 192, in restricted     exec ccode in environment   File /var/www/web2py

[web2py] Re: database replication

2011-07-22 Thread Nils Olofsson
that you would use the slave databases for actions that don't need to write to the db -- it's just a stand-in for an actual list of such actions. Anthony On Friday, July 22, 2011 6:50:31 AM UTC-4, Nils Olofsson wrote: Hi, I'm still not sure as to how to go about using this. Say, I have

[web2py] database replication

2011-07-21 Thread Nils Olofsson
Hi, I see this in the Documentation: if request.action in read_only_actions: db = DAL(shuffle(['mysql://...1','mysql://...2','mysql://...3'])) else: db = DAL(shuffle(['mysql://...3','mysql://...4','mysql://...5'])) I'm not sure where exactly I should be using this ? And does anyone have

[web2py] Re: database replication

2011-07-21 Thread Nils Olofsson
. you are running many database servers synced with each other. For example:http://en.wikipedia.org/wiki/Multi-master_replication On Jul 21, 12:44 pm, Nils Olofsson nils.olofs...@gmail.com wrote: Hi, I see this in the Documentation: if request.action in read_only_actions:    db

[web2py] Re: database replication

2011-07-21 Thread Nils Olofsson
model file -- the same place where you would normally define the db connection. Anthony On Thursday, July 21, 2011 2:29:45 PM UTC-4, Nils Olofsson wrote: Hi Massimo, I'm testing amazon's RDS and EC2 , 1 master many slaves. I could not find out where exactly I am suppose to be putting

[web2py] double insert.

2011-06-18 Thread Nils Olofsson
Hi, I'm having a problem: web2py: Version 1.96.4 (2011-06-07 21:08:15) Running on Rocket 1.2.2 Database is mysql. I have this code: form

[web2py] Re: double insert.

2011-06-18 Thread Nils Olofsson
Hi, Yes, that was me, sorry, I never got an email stating that it was posted :( or a response. Thanks for the quick response. BTW, web2py is great, only learning at the moment:) Nils

[web2py] SQL forms

2011-06-16 Thread Nils Olofsson
Hi, I have this: tags=db().select(db.event_tags.ALL) form =SQLFORM(db.events,fields=['title','venue','starttime','endtime','location','image','cost','website','booking','latlng','information']) #form = SQLFORM(db.events) my_extra_element = TR(,INPUT(_id='Lookup',_value=Check