[web2py] Re: Lacking nginx deployment guide

2011-03-13 Thread pbreit
It seems like nginx can be run by www-data as well. So: Delete: sudo('adduser --system --no-create-home --disabled-login --disabled-password --group nginx') Edit: sudo('cd /opt/nginx*/; ./configure --prefix=/opt/nginx --user=www-data --group=www-data --with-http_ssl_module') If anyone has an

[web2py] Re: Overview of posts.

2011-03-13 Thread annet
The view profile link next to your name at the beginning of each post?. Yes, I tried the profile link in the drop box under my name top-right, but that just led me to a page to edit my profile. The 'view profile' link is what I was looking for, shouldn't this link be in the drop box too? now I

[web2py] LINK: TyphoonAE

2011-03-13 Thread Tim Michelsen
http://code.google.com/p/typhoonae/ The TyphoonAE project aims at providing a full-featured and productive serving environment to run Google App Engine (Python) applications. It delivers the parts for building your own scalable App Engine while staying compatible with Google's API. Important

Re: [web2py] virtual hosts. single or multiple installation?

2011-03-13 Thread Tom Atkins
I'm currently using one web2py instance and and then running multiple sites using code in routes.py. This example from Jonathan should be helpful: https://groups.google.com/d/msg/web2py/iq_YAstVUCI/pr65jJRY6JwJ This works fine but is not the most efficient way for high volume sites. Various

[web2py] Re: virtual hosts. single or multiple installation?

2011-03-13 Thread Haros
thanks for the reply. I know about the domain redirect methods. My question is different though, which is better, having 1 installation for each domain or 1 installation for multiple domains? On 13 Μαρ, 13:27, Tom Atkins minkto...@gmail.com wrote: I'm currently using one web2py instance and

[web2py] Re: virtual hosts. single or multiple installation?

2011-03-13 Thread Massimo Di Pierro
I think it boils dow to who administers them. If there is only one administrator I would use one installation. If they are managed by different people, I would use different installations under different accounts. If they require a background process, I would use different background processes

[web2py] Re: Overview of posts.

2011-03-13 Thread Mengu
Here is a link of all your posts in the web2py group: http://groups.google.com/groups/search?scoring=dfilter=0enc_author=-aUA7xcAAADH3c2cptFoWyqABz-QtXr_HqZiDvCVswhrZ6TQxKj0ww On Mar 13, 11:17 am, annet annet.verm...@gmail.com wrote: The view profile link next to your name at the beginning of

[web2py] Re: Google GAE Task Queue independence

2011-03-13 Thread dlypka
Here is the traceback: Traceback (most recent call last): File c:\Google\AppEngine\esentrnet\gluon\restricted.py, line 188, in restricted exec ccode in environment File c:\Google\AppEngine\esentrnet\applications\init/controllers/ default.py:upbm2gig, line 246, in module File

Re: [web2py] REST the web2py way - RFC

2011-03-13 Thread contatogilson...@gmail.com
Would not it be better to do this? @request.get() @request.post() @request.put() @request.delete() def api(): (...) return dict(...) _ *Gilson Filho* *Web Developer http://gilsondev.com*

[web2py] Re: Overview of posts.

2011-03-13 Thread annet
Thanks for the link, I bookmarked it. Kind regards, Annet.

Re: [web2py] Re: Japan

2011-03-13 Thread danto
+1 2011/3/13 Anthony abasta...@gmail.com Note, the Sahana Software Foundation is looking for translators to complete a localization of Sahana Eden into Japanese: http://www.sahanafoundation.org/japan Sahana Eden is an open source disaster management system written in web2py. Anthony

[web2py] LOAD() a plugin_wiki page

2011-03-13 Thread danto
Hi, it is possible to just load the content of a plugin_wiki page in a view using the LOAD() function?

Re: [web2py] using routes_onerror

2011-03-13 Thread Marc Smith
I am also experiencing this issue. I see this in routes.example.py: --snip-- # In the event that the error-handling page itself returns an error, web2py will # fall back to its old static responses. You can customize them here. # ErrorMessageTicket takes a string format dictionary containing

[web2py] web2py always writes on language files to translate

2011-03-13 Thread José L .
Hi, running web2py in a directory with restricted permissions I've checked that anytime a translation is used, web2py try to re-write the translation string: /var/lib/python-support/python2.5/gluon/languages.py(284)translate() - write_dict(self.language_file, self.t)

[web2py] Re: Overview of posts.

2011-03-13 Thread pbreit
Are you on the new groups? Did you try this link (see attached)?attachment: Screen shot 2011-03-13 at 9.37.07 AM.png

[web2py] Re: LOAD() a plugin_wiki page

2011-03-13 Thread Massimo Di Pierro
Yes, but instead of http://.../plugin_wiki/page/... you must do {{=LOAD('plugin_wiki','page.load/...',ajax=True)}} On Mar 13, 10:17 am, danto web2py.n...@gmail.com wrote: Hi, it is possible to just load the content of a plugin_wiki page in a view using the LOAD() function?

[web2py] Re: REST the web2py way - RFC

2011-03-13 Thread Massimo Di Pierro
Because I would know how to do @request.get() def api(): return dict() @request.post() def api(): return dict() i.e. have two functions with the same name and select one or the other without ambiguity. On Mar 13, 9:04 am, contatogilson...@gmail.com contatogilson...@gmail.com wrote: Would not

[web2py] Re: LOAD() a plugin_wiki page

2011-03-13 Thread Massimo Di Pierro
You can also do {{=plugin_wiki.render_page('slug')}} if you do not need the ajax trapping. On Mar 13, 10:17 am, danto web2py.n...@gmail.com wrote: Hi, it is possible to just load the content of a plugin_wiki page in a view using the LOAD() function?

[web2py] Re: web2py always writes on language files to translate

2011-03-13 Thread Massimo Di Pierro
How do you know there is no need for it? Did you look at what is being re-written? It should only try to re-write if you have new text needing translation. Massimo On Mar 13, 10:56 am, José L. jredr...@gmail.com wrote: Hi, running web2py in a directory with restricted permissions I've checked

Re: [web2py] Re: REST the web2py way - RFC

2011-03-13 Thread contatogilson...@gmail.com
Or it may be well: @request.get() @request.post() def api(): return dict() As he is a decorator, avoid ambiguities and thus would be more clear the code. _ *Gilson Filho* *Web Developer http://gilsondev.com* 2011/3/13 Massimo Di Pierro

Re: [web2py] Re: web2py always writes on language files to translate

2011-03-13 Thread Jonathan Lundell
On Mar 13, 2011, at 10:33 AM, Massimo Di Pierro wrote: How do you know there is no need for it? Did you look at what is being re-written? It should only try to re-write if you have new text needing translation. José mentioned restricted permissions. If the write fails, might it keep trying?

[web2py] Re: web2py always writes on language files to translate

2011-03-13 Thread José L .
On Sunday, March 13, 2011 6:33:00 PM UTC+1, Massimo Di Pierro wrote: How do you know there is no need for it? Did you look at what is being re-written? It should only try to re-write if you have new text needing translation. ok, catched, so there's not such bug, only my

[web2py] Re: web2py always writes on language files to translate

2011-03-13 Thread pbreit
Interesting idea: Maybe this check should be done with all the language files when a new release is done, so they are complete, avoiding this write attempts Does we know how translation impacts performance in general? And if there are any warranted optimizations?

[web2py] Re: empty record (data) set

2011-03-13 Thread Adnan S.
Just tested _select(). Thanks for that :) It is overwhelming, but I love this framework, so thoughtful and well done!!! And I haven't even scratched the surface yet :) On Mar 12, 8:50 pm, villas villa...@gmail.com wrote: By using the underscore in front of select, you can see the SQL. That

[web2py] Anyone want Acrobat ?

2011-03-13 Thread mart
Hey, Doing some cleanup today and found a box of acrobat pro v.9. (EN) for windows. Anyways, still in its box, unopened and sealed. If anyone interested let me know, I don't want anything for it, just thought I'd ask before I chuck it. Oh, and no worry, it has a legal, authentic and

[web2py] Re: Support for MS Access?

2011-03-13 Thread Philnext
OK I'll try but... the SQL is not the same ! On 12 mar, 18:08, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Nobody has tried byt the mssql adapter (pyodbc) should work with access. The SQL is the same. Try and tel us know what problems you run into. On Mar 12, 9:43 am, Philnext

[web2py] How to setup multiple application using multiple domains on webfaction?

2011-03-13 Thread Tito Garrido
Hi Folks! I have two applications on my webfaction domain. One is init and another one is blog I'd like to point a different domain to blog... would you know how to do that? Regards, Tito -- Linux User #387870 . _/_õ|__| ..º[ .-.___.-._| . . . . .__( o)__( o).:___

Re: [web2py] Re: LOAD() a plugin_wiki page

2011-03-13 Thread danto
thanks, that was very useful 2011/3/13 Massimo Di Pierro massimo.dipie...@gmail.com You can also do {{=plugin_wiki.render_page('slug')}} if you do not need the ajax trapping. On Mar 13, 10:17 am, danto web2py.n...@gmail.com wrote: Hi, it is possible to just load the content of a

Re: [web2py] How to setup multiple application using multiple domains on webfaction?

2011-03-13 Thread rochacbruno
I do this using autoroutes I will post my autoroutes.py when I go to the computer. Enviado via iPhone Em 13/03/2011, às 16:20, Tito Garrido titogarr...@gmail.com escreveu: Hi Folks! I have two applications on my webfaction domain. One is init and another one is blog I'd like to point a

[web2py] Re: REST the web2py way - RFC

2011-03-13 Thread mart
this is interesting... I added the function in a app's default controller, the did this: for x in [item.strip().split('/') for item in urllib2.urlopen('http:// 127.0.0.1:8000/appRM/default/api/list.json')]: for item in [string.strip(y,', ') for y in x[1:-1]]:

[web2py] Re: Legacy PostgreSQL Database using case sensitive table and field names

2011-03-13 Thread Ross Peoples
I couldn't find anything in the PG docs. If I were to add another postgres adapter that specifically handles databases created like this, is that something you'd be interested in adding to web2py? On Friday, March 11, 2011 4:42:11 PM UTC-5, Massimo Di Pierro wrote: Then web2py cannot do this

[web2py] Help!!! This slice doesnt work!!!

2011-03-13 Thread Pystar
Hello guys, this slicea href=http://web2pyslices.com/main/slices/ take_slice/77http://web2pyslices.com/main/slices/take_slice/77/a doesnt seem to work as it should. I am using the updated code but it still doesnt work. I am trying to integrate local auth and Twitter, Facebook and Google

Re: [web2py] Re: Lacking nginx deployment guide

2011-03-13 Thread Michele Alzetta
If anyone has an tips, suggestions or corrections, please let me know. I am relatively new to all of this. Looks great. I'm almost tempted to try it myself ... but as at the moment my web2py is under no serious load I'll probably follow the if it works, don't break it philosophy :)

[web2py] Re: How to implement 3rd party authentication on a site with twitter and facebook without going the Janrain route?

2011-03-13 Thread Pystar
Thanks Massimo, But I would like to know how to implement it? Do i have to do the from gluon.tools import * stuff? and what do i do to my controllers and views?

Re: [web2py] Re: Japan

2011-03-13 Thread Stef Mientki
On 13-03-2011 05:52, Anthony wrote: Note, the Sahana Software Foundation is looking for translators to complete a localization of Sahana Eden into Japanese: http://www.sahanafoundation.org/japan Sahana Eden is an open source disaster management system written in web2py. I read google

[web2py] help needed with migration: ProgrammingError: column does not exist

2011-03-13 Thread VP
Well, I tried to modify my model by changing a column. I am using postgres. That apparently messed things up. Setting migration to True does not work. Viewing the database using psql, I saw that that column was deleted, but adding the same field (in web2py) does not recreate that column. Is

Re: [web2py] Re: Lacking nginx deployment guide

2011-03-13 Thread pbreit
I'm having an issue that is affecting my ability to access admin. If you look at the attached, you can see that even though I am accessing an HTTPS url, the wsgi.url_scheme value is reporting HTTP. I'm not sure what the problem is. I've seen some information about including settings in

[web2py] What's the best way to backup/restore a web2py app

2011-03-13 Thread VP
What I have done so far is compress the entire app folder and backup the database separately. I don't think this is the best way, or is it? Thanks.

Re: [web2py] Re: Lacking nginx deployment guide

2011-03-13 Thread pbreit
I think I figured out the solution. Need to add one line to the nginx.conf: uwsgi_param UWSGI_SCHEME$scheme; # HTTPS server server { listen 443; server_name ; ssl on; ssl_certificate /opt/nginx/conf/server.crt;

[web2py] Re: help needed with migration: ProgrammingError: column does not exist

2011-03-13 Thread pbreit
We might need to see your model and then information about your database columns. I'm just getting ready to switch from development mode to production and am getting worried about managing my Postgres (since now I don't worry about it and just re-create the DB when I make big schema changes).

[web2py] appadmin troubles

2011-03-13 Thread mattynoce
hi, i just upgraded to 1.93.2 from 1.89.1 and my appadmin link is no longer working. i get the following error by going to http://localhost:8080/init/appadmin: invalid controller (appadmin/index) the only things i changed from the default routes file were: #

[web2py] Re: appadmin troubles

2011-03-13 Thread pbreit
Sounds like the problem is with your route changes. I think the routes_onerror needs to be inside of the routers dict. Make sure to restart web2py after you edit routes.py. routers = dict( BASE = dict( routes_onerror = [ (r'*/400', r'/init/default/doesnotexist'),

Re: [web2py] Re: appadmin troubles

2011-03-13 Thread Jonathan Lundell
On Mar 13, 2011, at 5:19 PM, pbreit wrote: Sounds like the problem is with your route changes. I think the routes_onerror needs to be inside of the routers dict. Make sure to restart web2py after you edit routes.py. routers = dict( BASE = dict( routes_onerror = [

[web2py] Re: help needed with migration: ProgrammingError: column does not exist

2011-03-13 Thread villas
See the book, chapter 6 fixing broken migration. Here is an excerpt, good luck: The solution consists of disabling migrations for all tables and enabling fake migrations: db.define_table(,migrate=False,fake_migrate=True) This will rebuild web2py metadata about the table according to the

Re: [web2py] How to setup multiple application using multiple domains on webfaction?

2011-03-13 Thread Tito Garrido
Thanks Bruno! Let me know when you get this piece of code! Regards, Tito On Sun, Mar 13, 2011 at 5:27 PM, rochacbruno rochacbr...@gmail.com wrote: I do this using autoroutes I will post my autoroutes.py when I go to the computer. Enviado via iPhone Em 13/03/2011, às 16:20, Tito Garrido

Re: [web2py] appadmin troubles

2011-03-13 Thread Jonathan Lundell
On Mar 13, 2011, at 5:07 PM, mattynoce wrote: hi, i just upgraded to 1.93.2 from 1.89.1 and my appadmin link is no longer working. i get the following error by going to http://localhost:8080/init/appadmin: invalid controller (appadmin/index) Generally speaking, this suggests that web2py

[web2py] Re: Groups and Roles using LDAP

2011-03-13 Thread Nont
as far as I know, ldap_auth is not support to do this. please take a look at web2py/gluon/contrib/login_methods/ldap_auth.py On Mar 11, 5:55 am, Ialejandro ialejandr...@gmail.com wrote: Hi! I have this question, how could I use LDAP auth and use roles. So I need to take the users from an

Re: [web2py] How to setup multiple application using multiple domains on webfaction?

2011-03-13 Thread Bruno Rocha
Here it is you need two files in the root web2py folder this http://snipt.net/rochacbruno/routesconf/ and this http://snipt.net/rochacbruno/routespy/ in routes.conf you can simply do: blog.domain.com /blog/default domain.com /init/default It is working for me in 2 websites on webfaction --

[web2py] Re: Groups and Roles using LDAP

2011-03-13 Thread mart
Last time I worked on windows at this level was... ok, a while back (i think we had NT 3.5 (or was it called something other than NT? - can't remember)). Anyways, I would guess with pretty fair odds that using LDAP probably requires that the logged-on user has sufficient rights and privileges to

[web2py] Auction closed - Anyone want Acrobat ?

2011-03-13 Thread mart
Hey, Will be sending it out to the first reply, and a gave dibs to the first runner up of anymore Acrobats (or close relatives) found. Still have 4 or 5 boxes to go through and wife is convinced I have more in there... Who knows, maybe. Will re-open Mart's Auction House if more are found (I just

[web2py] Paypal slice question

2011-03-13 Thread Andrew Evans
So I have finally gotten around to trying to implement paypal into my site. But I am facing some issues and was hoping some one could help me figure out my questions. I am trying to figure out how to use this example http://www.web2pyslices.com/main/slices/take_slice/106 but I need to know: What

[web2py] Re: Paypal slice question

2011-03-13 Thread pbreit
I'll put this into a slice when the new slice site comes. But here's an example of PayPal's Express Checkout interface which is more modern. There are two main functions in the controller and a module. def paypal(): session.recipient_id = '' item =

Re: [web2py] Re: Paypal slice question

2011-03-13 Thread Andrew Evans
I assume at import urlib and below is the module does it matter what I name the controller or module? *cheers

Re: [web2py] Re: Paypal slice question

2011-03-13 Thread Andrew Evans
Do I need to add the button code in my view? what is this file 'PAYMENTREQUEST_0_NOTIFYURL': 'http://mysite.com/ipn'} how do I add this to my site... sorry I have been wrecking my head over this the past week and am going crazy your code looks way simpler though imo just some questions I have

[web2py] Re: How to setup multiple application using multiple domains on webfaction?

2011-03-13 Thread Christopher Steel
Sweet! I was looking at the layout on Webfaction recently and it seems like it would also be possible to run two instances of web2py relatively easy as well. On the Webfaction admin web interface you would install a python2.x/wsgi application two times but use a different name, then you would end

[web2py] Re: Japan

2011-03-13 Thread Christopher Steel
+1 On Mar 11, 11:58 am, Massimo Di Pierro massimo.dipie...@gmail.com wrote: We all feel very close to our friends in Japan, and we are saddened by what has happened.