[web2py] HTTPS Remote Admin Page Access

2012-09-13 Thread Francisco Barretto
Hi There, I'm trying to use web2py in a ubuntu server without graphic interface so I need to access the admin page remotely. Started the server with ip 0.0.0.0 and port 8000 and got the message: "Admin is disabled because insecure channel" I saw some users commenting the above part of access.py

[web2py] HTTPS Admin Page Remote Connection

2012-09-13 Thread Francisco Barretto
Hi There! Deploying web2py on a server gives me some headache about accessing the admin page (on server) from a remote machine. First it throwed the message "'Admin is disabled because insecure channel'. So I found some posts talking about comment the following code i

[web2py] Re: HTTPS Admin Page Remote Connection

2012-09-19 Thread Francisco Barretto
-> Web2PyServer] Thanks! On Thursday, September 13, 2012 10:38:45 AM UTC-3, Francisco Barretto wrote: > > Hi There! > > Deploying web2py on a server gives me some headache about accessing the > admin page (on server) from a remote machine. First it throwed the message &g

[web2py] Re: HTTPS Remote Admin Page Access

2012-09-19 Thread Francisco Barretto
> > > Can you try the full path to certificate files? Are you sure they work? > Meanwhile you can run admin on port 127.0.0.1 and connect via ssl tunnel. > > > On Thursday, 13 September 2012 09:54:18 UTC-5, Francisco Barretto wrote: >> >> Hi There, >> >> I'

[web2py] Re: Run Web2py as a Service? on Ubuntu Lucid?

2013-03-07 Thread Francisco Barretto
Same problem here. Any hints? Did the exact procedure described in http://web2py.com/book/default/chapter/11#Start-as-Linux-Daemon and I get: $ sudo /etc/init.d/web2py start No process in pidfile '/var/run/web2py/web2py.pid' found running; none killed. start-stop-daemon: Unable to start /usr/l

[web2py] How to list all groups that a user belongs to (memberships) ?

2012-10-30 Thread Francisco Barretto
Hi Folks! How do I list all groups that a user belong? I've found out that Auth has this function: groups(self) displays the groups and their roles for the logged in user I dont manage to get it working. I've tried something like this: def myGroups(): return dict(auth.groups(auth.user_id))

Re: [web2py] How to list all groups that a user belongs to (memberships) ?

2012-10-30 Thread Francisco Barretto
amp;(db.auth_group.id >> ==db.auth_membership.group_id)).select(db.auth_group.ALL) >> >> Richard >> >> >> On Tue, Oct 30, 2012 at 11:15 AM, Francisco Barretto >> >> > wrote: >> >>> Hi Folks! >>> >>> How do I list

Re: [web2py] How to list all groups that a user belongs to (memberships) ?

2012-10-30 Thread Francisco Barretto
uld give you what you the information you are searching : >>> >>> db((db.auth_user.email == 'USER_EMAIL')&(db.auth_membership.user_id == >>> db.auth_user.id)&(db.auth_group.id >>> ==db.auth_membership.group_id)).select(db.auth_group.ALL) >>>

Re: [web2py] How to list all groups that a user belongs to (memberships) ?

2012-10-30 Thread Francisco Barretto
>> example). >> >> You could also try as_list() : >> >> http://web2py.com/books/default/chapter/29/06#as_dict-and-as_list >> >> If it doesn't work, use the query I wrote above : >> >> rows = query >> for row in rows: >> do st

Re: [web2py] How to list all groups that a user belongs to (memberships) ?

2012-10-30 Thread Francisco Barretto
) Works just fine: returns a list of user's group names. Thanks Richard! On Tuesday, October 30, 2012 3:19:29 PM UTC-2, Francisco Barretto wrote: > > Ok, It does return a table(). I've tried to parse it so I could access the > information I need (group names) without success.

[web2py] Width not working when resizing an image to use it as a submit button

2012-11-16 Thread Francisco Barretto
Hi there! I'm having some troubles using an image as a substitute for a submit button... I'm generating the form in the controller and using a local image as follows: INPUT(_type="image", _value="Editar", _width="16", _height="16", _alt= "Editar", _src="/"+request.application+"/static/images/e

[web2py] Get request.var by it's "name"

2012-11-16 Thread Francisco Barretto
Hi there! How do I get a var value which is being passed by post into a controller by its name? I mean, I don't want to get the values using request.args(0), because I'll be stuck with the index. I'd rather do something like "request.args['dnsClass'], for example. Any hints? vars:dnsClass:INow

[web2py] Re: global logging to file

2012-11-30 Thread Francisco Barretto
Hi There! Sorry to resurrect this long time dead post but I'm really wondering what is the proper way to log actions, errors and warns in Web2Py. Tried Hans/Iceberg solution but the log file is not created... Read in other topic about some logging functionality integrated but found none in web

[web2py] Email validation url points to local host

2012-12-04 Thread Francisco Barretto
Hi there! Trying to use email validation for new users and stuck with a problem. Web2Py is running in its own container and listens localhost:8000. Apache is dealing with incoming requests at ports 80 and 443, since I've got other web applications and routes web2py requests to localhost:8000 as

[web2py] Re: Email validation url points to local host

2012-12-04 Thread Francisco Barretto
x27;reset_password']) + '/%(key)s to > reset your password' > > replace request.env.http_host with your own and voilà. > > > > On Tuesday, December 4, 2012 4:07:36 PM UTC+1, Francisco Barretto wrote: >> >> Hi there! >> >> Trying to use email vali

[web2py] Changing textarea columns in a regular FORM

2012-12-05 Thread Francisco Barretto
Hi there, it might be (and probably is) a silly but I have a series of questions concerning the following form: form=FORM(TABLE(TR("Nome:",INPUT(_type="text",_name="name", _value=user_name , _writable=False, requires=IS_NOT_EMPTY())), TR("Email:",INPUT(_type="text",_name="

Re: [web2py] Re: Changing textarea columns in a regular FORM

2012-12-05 Thread Francisco Barretto
that developers in most cases knows shift+enter creates a new line but does our final users know it? Francisco Barretto Doutorando PPG-Arte - Arte e Tecnologia Laboratório de Pesquisa em Arte Computacional (Midialab) Departamento de Artes Visuais Instituto de Artes Universidade de Brasília - UnB C

Re: [web2py] Re: Changing textarea columns in a regular FORM

2012-12-05 Thread Francisco Barretto
Anthony, you're right! Francisco Barretto Doutorando PPG-Arte - Arte e Tecnologia Laboratório de Pesquisa em Arte Computacional (Midialab) Departamento de Artes Visuais Instituto de Artes Universidade de Brasília - UnB Campus Universitário Darcy Ribeiro Asa Norte 70910-900, Brasília

Re: [web2py] Re: Changing textarea columns in a regular FORM

2012-12-05 Thread Francisco Barretto
Third question is still open. How to set an text type input non-editable? _disabled does not work. It always fails on validation, even with a default valid value. Francisco Barretto Doutorando PPG-Arte - Arte e Tecnologia Laboratório de Pesquisa em Arte Computacional (Midialab) Departamento de

Re: [web2py] Re: Changing textarea columns in a regular FORM

2012-12-05 Thread Francisco Barretto
Works fine, Anthony! Francisco Barretto Doutorando PPG-Arte - Arte e Tecnologia Laboratório de Pesquisa em Arte Computacional (Midialab) Departamento de Artes Visuais Instituto de Artes Universidade de Brasília - UnB Campus Universitário Darcy Ribeiro Asa Norte 70910-900, Brasília - DF

[web2py] puppet for web2py

2013-08-28 Thread Francisco Barretto
Hi there! Did Anyone already made some puppet module to manage/install web2py and web2py's app management(install/update) through Puppet? I was thinking about hosting my app in a git repository and use a puppet module to keep web2py updated (by applying both web2py and app changes to client mac

Re: [web2py] puppet for web2py

2013-08-28 Thread Francisco Barretto
> script, to one customer. > > On Wed, Aug 28, 2013 at 11:28 AM, Francisco Barretto > > wrote: > > Hi there! > > > > Did Anyone already made some puppet module to manage/install web2py and > > web2py's app management(install/update) through Puppet?

Re: [web2py] puppet for web2py

2013-08-28 Thread Francisco Barretto
gt; > 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: