Re: [web2py] Re: Uwsgi-error: ImportError: No module named 'globals'

2013-09-13 Thread nils
Hi, I had a problem along the same lines, it turned out that uwsgi was compile with python 3.3 support. This was Ubuntu 13.04 and I installed it via apt-get , check the entire uwsgi logs for the python version. regards, Nils On Fri, Sep 13, 2013 at 10:48 AM, Johann Spies wrote: > On

Re: [web2py] puppet for web2py

2013-08-28 Thread nils
Hi, You should take a look a http://docs.saltstack.com/ref/python-api.html This is like fabric and puppet all in one and its really easy to use. Regards, Nils On Wed, Aug 28, 2013 at 3:28 PM, Francisco Barretto wrote: > Hi there! > > Did Anyone already made some puppet module

Re: [web2py] pyfilesystem support (store uploads in S3)

2012-06-01 Thread nils
. Nils On May 31, 2012 6:56 p.m., "Massimo Di Pierro" wrote: > Here is an example: > > easy_install pyfilesystem > > >>> import fs.s3fs > >>> myfs = fs.s3fs.S3FS(bucket, prefix, aws_access_ke, aws_secret_key) > >>> db.define_table('

Re: [web2py] Re: storing more than 1 millions uploaded files

2012-05-12 Thread nils
Amazon's S3 is ideal for this, I use it I mount s3 using fuse interface. Works pretty well for me. Nils On May 12, 2012 7:53 PM, "Sebastian E. Ovide" wrote: > just wondering... (I know that it is not a normal application)... where > would you store a couple of millions pict

Re: [web2py] db manipulation

2012-02-22 Thread nils
Hi, Do you not need to specify a type='string' etc ? Regards, nils On Wed, Feb 22, 2012 at 7:16 PM, davidjensen wrote: > In db.py, I created a db 'contacts' with a table 'mytable'. I later > added a field 'date' to mytable. > > db.define_tabl

Re: [web2py] Re: db manipulation

2012-02-22 Thread nils
Hi, Do you not need to specify a type='string' etc ? Regards, nils On Wed, Feb 22, 2012 at 7:35 PM, Anthony wrote: > Did you turn off migrations via DAL(..., migrate=False) or DAL(..., > migrate_enabled=False)? Is this in a web2py app, or an external script or > shell?

Re: [web2py] Re: ssh tunnel to admin panel with lighttpd=> ERROR:web2py.cache:corrupted file

2012-01-29 Thread nils
Hi, . Lighty runs under the user of www-data and so folders or files that need to be written too, have to have the ownership changed to www-data other wise you will get this error, same goes for a download/upload folder if you are uploading content via your application. Regards, Nils On Sun

Re: [web2py] Initial db setup using csv import for relational tables?

2012-01-25 Thread nils
Hi, I had a similar problem, my solution was somthing like this: import csv dr = csv.DictReader(open('csvfile.csv'), delimiter=',') for data in dr: if data['team'] =='text': team = 1 or (the team id in your table) elif data['team'] =='more text': team = 2 or (the team

Re: [web2py] string not recognized

2012-01-18 Thread nils
Hi, Could you not use {{=XML(string...)}} Regards, Nils On Jan 18, 2012 9:43 a.m., "davidjensen" wrote: > This is not recognized asa string: > "{{this is a string}}" in: > {{=PRE("{{this is a string}}"))}in a web page > but it works on the

Re: [web2py] web2py sitting behind load balancer showing lb IP not client IP

2011-12-23 Thread nils
Hi, what load balancer are you using? Regards, Nils On Dec 23, 2011 5:17 a.m., "Dave" wrote: > Since I've moved my installation behind a load balancer all my session > IP addresses show as the back-side IP of the load balancer, not the > real client IP. > > Have a

Re: [web2py] Re: ssl certificate?

2011-12-23 Thread nils
Hi, Ive used go daddy, works perfect for me and they are cheap Regards, Nils On Dec 23, 2011 4:49 a.m., "guruyaya" wrote: > I've used it myself, but note this certificate is not insured in any > way, and it allows a pretty weak protection, in the free edition. It >

Re: [web2py] problem with mod_wsgi deployment

2011-12-18 Thread nils
Hi, What is the contents of your httpd.conf file. can you post it ? Regards, Nils On Mon, Dec 19, 2011 at 6:23 AM, Johann Spies wrote: > Dear Hassan, > > On 15 December 2011 12:32, Web2Py Freak wrote: >> >> Dear All, >> i am trying to use mod_wsgi with apache on

Re: [web2py] Make an image Thumb

2011-11-17 Thread nils
te=lambda r: THUMB(r['image'])) Regards, Nils On Thu, Nov 17, 2011 at 3:27 PM, Web2Py Freak wrote: > Dear All, > > i am trying to make a Thumb and i used this code here : > > Model: > > db.define_table('uploads', >    Field('name','s

Re: [web2py] Authentication

2011-11-08 Thread nils
Hi, Ok this sound good, I figured i could, I was thinking of storing session in database, but I don't think user will be logged into the 2 apps at the same time, and I don't really want a complicated CAS setup. Regards, Nils On Tue, Nov 8, 2011 at 12:55 PM, Anthony wrote: &g

[web2py] Authentication

2011-11-08 Thread Nils Olofsson
now tested this but would this work ? Nils

Re: [web2py] Re: Has anyone configured web2py on the "Basic Amazon Linux AMI"?

2011-08-27 Thread nils
Hi Chris, I do this ssh -i key.pem -L 8000:localhost:8000 root@amazon-Ec2-VPS I then run on the amazon instance ./web2py -a password You can then access web2py via http://localhost:8000 Regards, Nils On Sat, Aug 27, 2011 at 4:40 PM, Chris wrote: > I could, but the problem

Re: [web2py] Has anyone configured web2py on the "Basic Amazon Linux AMI"?

2011-08-26 Thread nils
Hi, How exactly are you trying to access it ? I have no problems accessing my VPS on amazon. Regards, Nils On Fri, Aug 26, 2011 at 11:09 PM, Chris wrote: > I'm trying to set up and use web2py using the Amazon-branded Linux AMI > -- aka ami-8c1fece5 > > I seem to have it run

Re: [web2py] Any LDAP auth users out there?

2011-07-28 Thread nils
Hi, Have your tried wireshark or tcpdump ? Regards, Nils On Thu, Jul 28, 2011 at 4:06 AM, Ismael Serratos wrote: > So how do you know it's not working? Do you get any error? or just you can't > login? > > On Wed, Jul 27, 2011 at 8:39 PM, Brian M wrote: >> >

Re: [web2py] Re: upload - S3 storage

2011-07-26 Thread nils
Hi, I forgot about Mounting S3 as partition, I'm already using the boto interface. The computer field sounds like an Idea, but now to come up with the code :) Thanks for the tips. Regards, Nils On Tue, Jul 26, 2011 at 6:32 AM, howesc wrote: > pbreit might be right - you would stil

[web2py] Re: upload - S3 storage

2011-07-25 Thread Nils Olofsson
functionality as the default store/retrieve will this work out of the box if i replace in the Field ('photo','s3upload') or is there other things i need to be looking at ? This is assuming that all the bugs of uploading and retrieving will be sorted :) Regards, Nils On Jul 25,

Re: [web2py] upload - S3 storage

2011-07-25 Thread nils
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 wrote: > Hi all, > >  Before I go off and make an  a

[web2py] upload - S3 storage

2011-07-25 Thread Nils Olofsson
I've only used the functionality of web2py, I never had to change or customize it, so any help or pointer would be appreciated. Regards, Nils

Re: [web2py] Re: database replication

2011-07-22 Thread nils
Hi Anthony, yes, migrate is set for fields in the aut table. Also another note, shuffle did not work for me I have to, from random import sample. then change DAL(sample(['mysql connection string','mysql connection string'],1),migrate_enabled=False) Regards, Nils On Fri,

Re: [web2py] Re: database replication

2011-07-22 Thread nils
Hi Anthony, That worked, maybe the docs should be updated. I did try migrate=False, thought they were both the same thing. Regards, Nils On Fri, Jul 22, 2011 at 3:05 PM, Anthony wrote: > Have all the tables already been created in the slave databases (web2py may > be trying to create

[web2py] Re: database replication

2011-07-22 Thread Nils Olofsson
ould not find a way to tell the DAL that mysql is read only. any ideas ? Regards, Nils On Jul 22, 1:58 pm, Anthony wrote: > You could define 'read_only_actions' anywhere it makes sense, for example: > > read_only_actions = ['list','another_read_action&#

[web2py] Re: database replication

2011-07-22 Thread Nils Olofsson
on in read_only_action: db =... ... else db = and this is in the model/db.py file. I just don't understand where to define read_only_action or it is used ? Regards, Nils On Jul 21, 9:16 pm, Anthony wrote: > That's just some (incomplete) example code. You have to define > 'r

[web2py] Re: database replication

2011-07-21 Thread Nils Olofsson
ons: NameError: name 'read_only_actions' is not defined (name 'read_only_actions' is not defined) This error is the reason i asked where it should go. Maybe some one could shed some light on it ? Regards, Nils On Jul 21, 7:44 pm, Anthony wrote: > It would go in your m

[web2py] Re: database replication

2011-07-21 Thread Nils Olofsson
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 this code. Regards, Nils On Jul 21, 6:48 pm, Massimo Di Pierro wrote: > You would only use this if you have a replicated database. I.e. you >

[web2py] database replication

2011-07-21 Thread Nils Olofsson
sure where exactly I should be using this ? And does anyone have some sample code as to how it should be used ? Nils

[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] double insert.

2011-06-18 Thread Nils Olofsson
uot;form has errors" else: print "fill out form" return dict(form=form) Every time I add a record it gets inserted twice. There is a slight difference in records, 1st has no tags added while the 2nd has the tags correctly added. Any idea why this is happening ? Regards, Nils

[web2py] SQL forms

2011-06-16 Thread Nils Olofsson
print "fill out form" return dict(form=form) this is part of the database model is this: Field('image', 'upload',label=T('Profile Image')), Field('userid',db.auth_user,default = auth.user and auth.user.id), Field('tags','list:reference event_tags') Whenever I submit the form, 2 records get added. I'm not sure as to why this is happening. Could anyone shed some light on this problem ? Nils