Re: [web2py] Re: A Web2py CMS like Joomla ?

2012-08-01 Thread Michele Comitini
+1 2012/8/1 Luther Goh Lu Feng > Hi Massimo: > > Looking at http://web2py.com/poweredby it seems that there are both > examples and derivative projects listed. > > A derivative project imho is a site that is based on web2py as its core > and probably FOSS or installable. I would expect a listi

Re: [web2py] Re: Chrome:LOAD and ajax problem

2012-08-01 Thread tomasz bandura
Hello, My code below: layout.html: {{=LOAD('advert','list.load',ajax=True)}} advert.py def list(): logger.warn('-'*11) adverts = db().select(db.advert.id,db.advert.title) return dict(adverts=adverts) list.load List {{for adv in adverts:}} ... And rendered code/beahaviour:

[web2py] session.cmsadmin_menu=session.create_dropdown=session.retrieve_dropdown=[] unexpected behaviour

2012-08-01 Thread Annet
In my application I build menus based on permissions. When a user logs in I set all menus and dropdowns to [] session.cmsadmin_menu=session.create_dropdown=session.retrieve_dropdown=...=[] Then based on queries I add items to the menus and dropdowns by iterating through rows. What happens is, t

Re: [web2py] Re: Chrome:LOAD and ajax problem

2012-08-01 Thread Mery Sole
Gracias por responderme: Así fue como lo resolví, el siguiente campo lo deje vacio, campo auth_user.registration_key=empty Muchas Gracias por responderme Saludos 2012/8/1 tomasz bandura > Hello, > > My code below: > > layout.html: > > {{=LOAD('advert','list.load',ajax=True)}} >

Re: [web2py] Re: A Web2py CMS like Joomla ?

2012-08-01 Thread Mery Sole
Gracias por responderme: Así fue como lo resolví, el siguiente campo lo deje vacio, campo auth_user.registration_key=empty Muchas Gracias por responderme Saludos 2012/8/1 Michele Comitini > +1 > > > > 2012/8/1 Luther Goh Lu Feng > >> Hi Massimo: >> >> Looking at http://web2py.com/powere

Re: [web2py] session.cmsadmin_menu=session.create_dropdown=session.retrieve_dropdown=[] unexpected behaviour

2012-08-01 Thread Mery Sole
Gracias por responderme: Así fue como lo resolví, el siguiente campo lo deje vacio, campo auth_user.registration_key=empty Muchas Gracias por responderme Saludos 2012/8/1 Annet > In my application I build menus based on permissions. When a user logs in > I set all menus and dropdowns to

Re: [web2py] Re: Recommendations on model file size (database tables)

2012-08-01 Thread Mery Sole
Gracias por responderme: Así fue como lo resolví, el siguiente campo lo deje vacio, campo auth_user.registration_key=empty Muchas Gracias por responderme Saludos 2012/8/1 Johann Spies > On 31 July 2012 15:50, Anthony wrote: > >> With the -S command line option, you can optionally speci

[web2py] Re: new Auth in trunk

2012-08-01 Thread Sole
Como resuelvo esto: Tengo un Mensaje que dice: Registration needs verifications, pero la linea en db.py auth.settings.registration_requires_verification = False esta en false. No puedo ingresar con ningun usuario, ni asignar permisos, >Gracias On Wednesday, May 13, 2009 11:15:40 PM UTC-3, mdi

[web2py] Ticket Issued: Unrecoverable

2012-08-01 Thread r13race
Hello, I made an application using Apache+Web2py+WSGI framework. It was running fine and all of a sudden as i enter the URL of teh startup page it directs me to index.html, it works fine. There i have a login button as i click it, it issues me a ticket "Unrecoverable" Its not a problem of permis

[web2py] Re: new Auth in trunk

2012-08-01 Thread Alan Etkin
> #you MUST write the message for the verificaiton email > #since web2py does not know its own URL > auth.messages.verify_email = > \ > 'Click on the link http://.../verify_email/%(key) > s to verify your > email' Shouldn't auth.message.verify_email default to something, as expected in a

[web2py] web2py hangs while creating the mysql tables

2012-08-01 Thread Aurelijus Useckas
Hi, I've built the app on SQLite and now want to migrate to the server based mysql. BUT web2py hangs in the middle of creating, basicaly just after the auth tables. When I restart the apache I can see auth tables as well as a few from my app. this is the err ticket that I get: (dp1 S'output'

[web2py] Re: web2py hangs while creating the mysql tables

2012-08-01 Thread Aurelijus Useckas
this is the trigger i guess: db.define_table('maps', Field('name'), Field('last_name'), Field('long'), Field('lat'), format='%(name)s') On Wednesday, August 1, 2012 3:30:40 PM UTC+3, Aurelijus Useckas wrote: > > Hi, > > I've built the app on SQLite and now want to migrate to

Re: [web2py] Re: web2py hangs while creating the mysql tables

2012-08-01 Thread tomasz bandura
Is it 'long' a mysql's reserved word? Regards Tomasz 2012/8/1 Aurelijus Useckas > this is the trigger i guess: > > db.define_table('maps', > Field('name'), > Field('last_name'), > Field('long'), > Field('lat'), > format='%(name)s') > > On Wednesday, August 1, 2012 3:30:40 PM

Re: [web2py] Re: web2py hangs while creating the mysql tables

2012-08-01 Thread Aurelijus
I really have no clue.. Could it be? On Wed, Aug 1, 2012 at 3:36 PM, tomasz bandura wrote: > Is it 'long' a mysql's reserved word? > > Regards > Tomasz > > 2012/8/1 Aurelijus Useckas > >> this is the trigger i guess: >> >> db.define_table('maps', >> Field('name'), >> Field('last_name'),

Re: [web2py] Re: web2py hangs while creating the mysql tables

2012-08-01 Thread tomasz bandura
Please look at: http://dev.mysql.com/doc/refman/5.0/en/reserved-words.html and probably it causes an error please try with different field's name. T. 2012/8/1 Aurelijus > I really have no clue.. Could it be? > > On Wed, Aug 1, 2012 at 3:36 PM, tomasz bandura > wrote: > >> Is it 'long' a mysq

Re: [web2py] Re: web2py hangs while creating the mysql tables

2012-08-01 Thread Aurelijus Useckas
I've changed the long into longitude and it seems to be solved but I still get errors: p2 S' (1005, u"Can\'t create table \'./lpkdb/asoc.frm\' (errno: 150)")' Now it says it cannot create next table, which is: db.define_table('asoc', Field('name', label='Pavadinimas', unique=True), Fie

Re: [web2py] Re: Chrome:LOAD and ajax problem

2012-08-01 Thread Anthony
> > Chrome: > > 1 > 2 > 3 > > > > > > > During page reload there are a message 'loading...' for ~1second, and > then div is still empty. > Also there aren't any logs in console. > Are you saying the div does load pro

[web2py] Re: Possible scheduler bug, stable version

2012-08-01 Thread Tim Richardson
On Wednesday, 1 August 2012 01:36:51 UTC+10, Niphlod wrote: > > uhm. try the trunk version remains a valid point. > Anyway, are you aware that results are json encoded (so to read back them > into python dictionary you have to do simplejson.loads(results)) ? > Wasn't. Thanks. And will try the

[web2py] Re: session.cmsadmin_menu=session.create_dropdown=session.retrieve_dropdown=[] unexpected behaviour

2012-08-01 Thread Anthony
Yes, all those variables are pointing to the same object in memory (the list). If you just mutate the list, they're all still pointing to that same list. If you completely re-assign one of the variables to a different object, then that won't affect the other variables (which will still refer to

Re: [web2py] Ticket Issued: Unrecoverable

2012-08-01 Thread Richard Vézina
I am pretty sure that some of your app files permissions are not correctly setted. chown www-data.www-data -R web2py/applications/yourapp Richard On Wed, Aug 1, 2012 at 4:36 AM, r13race wrote: > Hello, > > I made an application using Apache+Web2py+WSGI framework. > It was running fine and all

Re: [web2py] Re: A Web2py CMS like Joomla ?

2012-08-01 Thread Massimo Di Pierro
So perhaps poweredby apps should have a flag and flagged apps should always be on top. On Tuesday, 31 July 2012 21:00:39 UTC-5, Luther Goh Lu Feng wrote: > > Hi Massimo: > > Looking at http://web2py.com/poweredby it seems that there are both > examples and derivative projects listed. > > A deri

Re: [web2py] Re: web2py hangs while creating the mysql tables

2012-08-01 Thread Massimo Di Pierro
db = DAL('mysql://', check_reserved=['common','mysql']) Anyway, I am not sure your problem is that you are using a reserved keyword. Perhaps the table exists already. I am also surprised you are getting a pymysql InternalError and not an OperationalError. On Wednesday, 1 August 2012 07:45:

[web2py] Re: Making part of User's Profile public - viewable by anyone with url

2012-08-01 Thread Massimo Di Pierro
If you want to sue this URL: http://127.0.0.1:8000/ProfilePublic/~jsmith routes should be like this: # begin routes_in = [ ('/ProfilePublic/~$anything','/ProfilePublic/default/userinfo/$anything' ), ] #end routes_out = [ ('/ProfilePublic/default/userinfo/$anything','/ProfilePublic/~$anythin

Re: [web2py] Ticket Issued: Unrecoverable

2012-08-01 Thread Massimo Di Pierro
chown www-data:www-data -R web2py/applications/ On Wednesday, 1 August 2012 08:47:23 UTC-5, Richard wrote: > > I am pretty sure that some of your app files permissions are not correctly > setted. > > chown www-data.www-data -R web2py/applications/yourapp > > Richard > > On Wed, Aug 1, 2012 at 4

[web2py] Web2py site/app with several deily accesses

2012-08-01 Thread vinicius...@gmail.com
This question has been asked here from time to time, but always things get up to date. So, do you have some case using web2py to serve several (hundreds of thousands, or millions) page hits a day? What is your app architecture? Model based? Modelless? What database do you use? Tell us someth

Re: [web2py] Re: web2py hangs while creating the mysql tables

2012-08-01 Thread Aurelijus Useckas
Thank you Massimo, but the 1005/150 mysql problem seems to be smth wring with foreign key (merging of tables). Are there any flaws in my DAL syntax? This line seems to be the trigger: Field('City', db.city, 'list:reference city', label='Miestas'), it references: db.define_table('city', Fie

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

2012-08-01 Thread peter
The instructions I gave at the top had been tested on a bare centos 5 machine and worked. I have got through 5 issues on your instructions so far: 'force-reload' not recognised so removed from uwsgi 'tar's had '-zxvf' as options, changed to 'zxvf' 'cp -R ./$version/* /opt/uwsgi-python

Re: [web2py] Re: A Web2py CMS like Joomla ?

2012-08-01 Thread Michele Comitini
Massimo, Why not put open source or commercial (products that are on sale) software programs in a different section? "built on web2py" is different from "made with web2py" IMHO. This of course could be not the best way to present things, marketing/communication is not my field. The important thi

[web2py] Re: Django vs. Web2py

2012-08-01 Thread yamandu
Wow, we could have a presentation like that http://www.silverstripe.org/ Em segunda-feira, 30 de julho de 2012 09h02min56s UTC-3, Gour escreveu: > > On Mon, 30 Jul 2012 21:45:15 +1000 > Alec Taylor > wrote: > > > If I wasn't working on a separate sizable web2py project (a > > social-network)

Re: [web2py] Re: A Web2py CMS like Joomla ?

2012-08-01 Thread Anthony
On Wednesday, August 1, 2012 9:50:07 AM UTC-4, Massimo Di Pierro wrote: > > So perhaps poweredby apps should have a flag and flagged apps should > always be on top. > That is already the case, though we don't make a distinction between "examples" and "derivative projects" for that purpose. An

[web2py] Re: Ticket Issued: Unrecoverable

2012-08-01 Thread AbrahamLinksys
Are 100% sure it's not permissions (e.g. you've run chmod recursively on the root of your app)? If so, I've also seen this error when mod_wsgi is misconfigured. In my case, I was able to visit one application (which was the default_app set in routers.BASE) but visiting the other resulted in the

[web2py] existing tables in plugin_wiki

2012-08-01 Thread Larry Wapnitsky
I'm attempting to access database tables created in my db.py file using different aspects of plugin_wiki. Whenever I enter the table name, I get the following as my results on my "page": Traceback (most recent call last): File "/home/lwapnitsky/web2py/applications/EARS_web2py/models/plugin_w

[web2py] Web2py in apache mod_wsgi with virtualenv

2012-08-01 Thread Daniel Gonzalez
Hi, I am deploying a web2py application, and I will be serving it with Apache via mod_wsgi. I have the following WSGI directives in my virtual host configuration: WSGIDaemonProcess web2py user=www-data group=www-data \ display-name=%{GROUP} WSGIProcessGroup web2py WSGIScriptAlias / /var/www/web

[web2py] format attribute in Record Representation

2012-08-01 Thread lyn2py
I refer to http://web2py.com/books/default/chapter/29/6 under Record representation > The format attribute will be used for two purposes: > >- To represent referenced records in select/option drop-downs. > > >- To set the db.othertable.person.represent attribute for all fields >

[web2py] Re: format attribute in Record Representation

2012-08-01 Thread Anthony
Have you explicitly set any validators for the field (e.g., IS_IN_DB)? I believe you only get the default represent attribute when you don't explicitly set a validator (perhaps that should be changed). Anthony On Wednesday, August 1, 2012 11:17:24 AM UTC-4, lyn2py wrote: > > I refer to http://w

[web2py] Re: session.cmsadmin_menu=session.create_dropdown=session.retrieve_dropdown=[] unexpected behaviour

2012-08-01 Thread Annet
Hi Anthony, This might help: > http://inst.eecs.berkeley.edu/~selfpace/cs9honline/Q2/mutation.html. That was helpful. As you know I am working on a network application, which is node i.e nodeID driven. When nodeID's change I need a way to reset all variable's stored in session, to use them i

[web2py] Vars dictionary -- legal to have 'int'?

2012-08-01 Thread AbrahamLinksys
Hi, I have an appilcation that has been running for a while, and suddenly today it gave an error on this line in my view: [show all attachements] This worked fine, but then I think I upgraded from 1.99.4 to 1.99.7, and it throws an error complaining that it cannot concatenate string and

Re: [web2py] Re: A Web2py CMS like Joomla ?

2012-08-01 Thread Luther Goh Lu Feng
On Wednesday, August 1, 2012 10:40:20 PM UTC+8, Anthony wrote: > > On Wednesday, August 1, 2012 9:50:07 AM UTC-4, Massimo Di Pierro wrote: >> >> So perhaps poweredby apps should have a flag and flagged apps should >> always be on top. >> > > That is already the case, though we don't make a dist

Re: [web2py] Web2py in apache mod_wsgi with virtualenv

2012-08-01 Thread Jonathan Lundell
On 1 Aug 2012, at 8:13 AM, Daniel Gonzalez wrote: > I am deploying a web2py application, and I will be serving it with Apache via > mod_wsgi. I have the following WSGI directives in my virtual host > configuration: > > WSGIDaemonProcess web2py user=www-data group=www-data \ > display-name=%{GRO

Re: [web2py] Re: web2py hangs while creating the mysql tables

2012-08-01 Thread Massimo Di Pierro
Yes. this is wrong: Field('City', db.city, 'list:reference city', label='Miestas'), should be Field('City', 'list:reference city', label='Miestas'), On Wednesday, 1 August 2012 09:15:07 UTC-5, Aurelijus Useckas wrote: > > Thank you Massimo, but the 1005/150 mysql problem seems to be smth wring

[web2py] Re: session.cmsadmin_menu=session.create_dropdown=session.retrieve_dropdown=[] unexpected behaviour

2012-08-01 Thread Anthony
I think the main issue is with the lists, which are mutable -- if all the variables refer to the same list and you mutate the list, all the variables will still refer to that changed list. If you want to be able to change one of the lists without affecting the others, then you need the separate

[web2py] Re: format attribute in Record Representation

2012-08-01 Thread lyn2py
Do you mean like: requires=IS_IN_DB(db,'sometable.id','%(name)s (%(description)s)') If so, yes I have them there. The purpose is to create the drop down menu... unless I'm doing it wrong? Or is there another way about it so that the references will appear per the manual? Thanks Anthony! On We

Re: [web2py] Re: A Web2py CMS like Joomla ?

2012-08-01 Thread Massimo Di Pierro
We could make that distinction (additional flag) and have two tabs. On Wednesday, 1 August 2012 09:40:20 UTC-5, Anthony wrote: > > On Wednesday, August 1, 2012 9:50:07 AM UTC-4, Massimo Di Pierro wrote: >> >> So perhaps poweredby apps should have a flag and flagged apps should >> always be on top

[web2py] Re: existing tables in plugin_wiki

2012-08-01 Thread Massimo Di Pierro
This is a bug in plugin_wiki but the bug is triggered by record_id: id id should be a number. On Wednesday, 1 August 2012 10:07:17 UTC-5, Larry Wapnitsky wrote: > > I'm attempting to access database tables created in my db.py file using > different aspects of plugin_wiki. Whenever I enter the

Re: [web2py] Re: existing tables in plugin_wiki

2012-08-01 Thread Larry G. Wapnitsky
got it. thanks. On 8/1/2012 11:38 AM, Massimo Di Pierro wrote: This is a bug in plugin_wiki but the bug is triggered by record_id: id id should be a number. On Wednesday, 1 August 2012 10:07:17 UTC-5, Larry Wapnitsky wrote: I'm attempting to access database tables created in my db.py fil

Re: [web2py] Re: A Web2py CMS like Joomla ?

2012-08-01 Thread Anthony
> > Please refer to what Drupal has done: > > - For sites that have been built with Drupal: > http://drupal.org/case-studies > http://web2py.com/poweredby is intended to serve this purpose. > - For distributions of Drupal with site features and functions for a > specific type of site as a si

[web2py] Re: Vars dictionary -- legal to have 'int'?

2012-08-01 Thread Massimo Di Pierro
in trunk. please check it. On Wednesday, 1 August 2012 10:23:11 UTC-5, AbrahamLinksys wrote: > > Hi, > > I have an appilcation that has been running for a while, and suddenly > today it gave an error on this line in my view: > > > [show > all attachements] > > This worked fine, but then I t

[web2py] Giving a talk promoting web2py over Django

2012-08-01 Thread Alec Taylor
Tonight I'm going to present my little social-network to a user-group. I'm going to show them my code, some slides, the website, the mobile apps and tell them when Django isn't as good as web2py. Are there any particular features of web2py you would recommend I highlight? - Also, are there any ma

Re: [web2py] Re: A Web2py CMS like Joomla ?

2012-08-01 Thread Michele Comitini
Would be nice that each "appliance" should have at least a github or whatever to have a live project and not a dead one that no one is going to pickup or contribute to. mic 2012/8/1 Anthony > Please refer to what Drupal has done: >> >> - For sites that have been built with Drupal: >> http://dr

Re: [web2py] Re: A Web2py CMS like Joomla ?

2012-08-01 Thread Luther Goh Lu Feng
I think the drupal site really presents their case studies and distributions very well, each with tagging and blog posts. Web2py probably can learn from it... Probably post this on a separate thread On Wednesday, August 1, 2012 11:40:15 PM UTC+8, Anthony wrote: > > Please refer to what Drupal

Re: [web2py] Vars dictionary -- legal to have 'int'?

2012-08-01 Thread Jonathan Lundell
On 1 Aug 2012, at 8:23 AM, AbrahamLinksys wrote: > I have an appilcation that has been running for a while, and suddenly today > it gave an error on this line in my view: > > > [show all > attachements] > > This worked fine, but then I think I upgraded from 1.99.4 to 1.99.7, and it > thro

Re: [web2py] Re: A Web2py CMS like Joomla ?

2012-08-01 Thread Anthony
On Wednesday, August 1, 2012 11:37:03 AM UTC-4, Massimo Di Pierro wrote: > > We could make that distinction (additional flag) and have two tabs. > We could, though see my other reply. Not all derivatives/distributions have a running demo site, so it's probably best to include those kinds of proj

Re: [web2py] Web2py in apache mod_wsgi with virtualenv

2012-08-01 Thread Daniel Gonzalez
Quoting from the link you posted: "The purpose of such Python virtual environments is to allow one to create multiple distinct Python environments for the same version of Python, but with different sets of Python modules and packages installed into the Python 'site-packages' directory." This d

Re: [web2py] Re: Vars dictionary -- legal to have 'int'?

2012-08-01 Thread Jonathan Lundell
On 1 Aug 2012, at 8:42 AM, Massimo Di Pierro wrote: > in trunk. please check it. Per my earlier message, this should not be necessary. There must be something else wrong, and str() unfortunately just papers over whatever the real problem is. > > On Wednesday, 1 August 2012 10:23:11 UTC-5, Abr

Re: [web2py] Web2py in apache mod_wsgi with virtualenv

2012-08-01 Thread Jonathan Lundell
On 1 Aug 2012, at 8:52 AM, Daniel Gonzalez wrote: > Quoting from the link you posted: > > "The purpose of such Python virtual environments is to allow one to create > multiple distinct Python environments for the same version of Python, but > with different sets of Python modules and packages i

Re: [web2py] Giving a talk promoting web2py over Django

2012-08-01 Thread vinicius...@gmail.com
We2bpy strengths over Django: 1) Automatic migrations. It enforces baby steps design just out-of-the-box. South migrations is a powerful tool, but Django doesn't have it natively yet. 2) Web2py shows a generic template when you don't have one created. Yet, baby steps guaranteed. I see these

Re: [web2py] Re: web2py hangs while creating the mysql tables

2012-08-01 Thread Aurelijus Useckas
tried it, still the same error :( thnx anyway On Wednesday, August 1, 2012 6:31:52 PM UTC+3, Massimo Di Pierro wrote: > > Yes. this is wrong: > > Field('City', db.city, 'list:reference city', label='Miestas'), > > should be > > Field('City', 'list:reference city', label='Miestas'), > > On Wednesda

[web2py] Can I ignore ssl with apache for windows?

2012-08-01 Thread joe
Hello This is my first time doing this, and* *I am not at all sure about what I am doing. I am using a dedicated windows server, the my application is going to be running on my company's secure intranet. When I have to work with the database's code, I'll be doing so by remotely connecting to

Re: [web2py] Re: existing tables in plugin_wiki

2012-08-01 Thread Larry G. Wapnitsky
what about search? i specify one field to show, and it shows me all search fields? On 8/1/2012 11:38 AM, Larry G. Wapnitsky wrote: got it. thanks. On 8/1/2012 11:38 AM, Massimo Di Pierro wrote: This is a bug in plugin_wiki but the bug is triggered by record_id: id id should be a number.

Re: [web2py] Giving a talk promoting web2py over Django

2012-08-01 Thread Michele Comitini
Less boilerplate code. Sane defaults. mic 2012/8/1 vinicius...@gmail.com > We2bpy strengths over Django: > > 1) Automatic migrations. It enforces baby steps design just > out-of-the-box. South migrations is a powerful tool, but Django doesn't > have it natively yet. > 2) Web2py shows a generic

Re: [web2py] Giving a talk promoting web2py over Django

2012-08-01 Thread Bruno Rocha
web2py has a more flexible template engine, you can use Python there and does not need to create a tons of template filters to get simple things done. Also in Django the template language sucks a lot because of the limitations. Let me give an example: To build a map using google maps API you have

Re: [web2py] Giving a talk promoting web2py over Django

2012-08-01 Thread Michele Comitini
http://www.web2py.com/examples/static/web2py_vs_others.pdf 2012/8/1 Michele Comitini > Less boilerplate code. > Sane defaults. > > mic > > > 2012/8/1 vinicius...@gmail.com > > We2bpy strengths over Django: >> >> 1) Automatic migrations. It enforces baby steps design just >> out-of-the-box. Sou

[web2py] Re: format attribute in Record Representation

2012-08-01 Thread Anthony
> > Do you mean like: > > requires=IS_IN_DB(db,'sometable.id','%(name)s (%(description)s)') > > If so, yes I have them there. The purpose is to create the drop down > menu... unless I'm doing it wrong? Or is there another way about it so that > the references will appear per the manual? > Yes,

[web2py] Re: Giving a talk promoting web2py over Django

2012-08-01 Thread Anthony
http://www.quora.com/What-are-the-advantages-of-web2py-over-Django On Wednesday, August 1, 2012 11:46:48 AM UTC-4, Alec Taylor wrote: > > Tonight I'm going to present my little social-network to a user-group. > > I'm going to show them my code, some slides, the website, the mobile apps > and tell

Re: [web2py] Web2py in apache mod_wsgi with virtualenv

2012-08-01 Thread Daniel Gonzalez
Thanks Jonathan, On Wednesday, August 1, 2012 5:56:37 PM UTC+2, Jonathan Lundell wrote: > > On 1 Aug 2012, at 8:52 AM, Daniel Gonzalez wrote: > > Quoting from the link you posted: > > "The purpose of such Python virtual environments is to allow one to create > multiple distinct Python environmen

Re: [web2py] Web2py in apache mod_wsgi with virtualenv

2012-08-01 Thread Jonathan Lundell
On 1 Aug 2012, at 9:30 AM, Daniel Gonzalez wrote: > On Wednesday, August 1, 2012 5:56:37 PM UTC+2, Jonathan Lundell wrote: > On 1 Aug 2012, at 8:52 AM, Daniel Gonzalez wrote: >> Quoting from the link you posted: >> >> "The purpose of such Python virtual environments is to allow one to create >>

[web2py] Re: Giving a talk promoting web2py over Django

2012-08-01 Thread Luther Goh Lu Feng
Backward compatibilty is a strong plus for me especially for very old sites that you leave idle for a long time and then want to upgrade to the latest web2py version On Thursday, August 2, 2012 12:22:57 AM UTC+8, Anthony wrote: > > http://www.quora.com/What-are-the-advantages-of-web2py-over-

[web2py] Re: Giving a talk promoting web2py over Django

2012-08-01 Thread Anthony
If it's a Django-friendly crowd, it might also be helpful to be prepared to handle the inevitable criticisms that will come. The big issues that tend to arise are (a) global objects/lack of imports/lack of explicitness/too much magic, (b) use of exec, and (c) pure Python in views. The links belo

Re: [web2py] Re: A Web2py CMS like Joomla ?

2012-08-01 Thread Massimo Di Pierro
I believe Marin is already working on improving the appliances site. On Wednesday, 1 August 2012 10:52:28 UTC-5, Anthony wrote: > > On Wednesday, August 1, 2012 11:37:03 AM UTC-4, Massimo Di Pierro wrote: >> >> We could make that distinction (additional flag) and have two tabs. >> > > We could, th

Re: [web2py] Re: Vars dictionary -- legal to have 'int'?

2012-08-01 Thread Massimo Di Pierro
yes but by converting the object to string we can see what it is in the generated url. I cannot reproduce the problem. On Wednesday, 1 August 2012 10:54:10 UTC-5, Jonathan Lundell wrote: > > On 1 Aug 2012, at 8:42 AM, Massimo Di Pierro > wrote: > > in trunk. please check it. > > > Per my earlie

Re: [web2py] Re: web2py hangs while creating the mysql tables

2012-08-01 Thread Massimo Di Pierro
Try Field('City', 'list:reference City', label='Miestas'), On Wednesday, 1 August 2012 11:05:02 UTC-5, Aurelijus Useckas wrote: > > tried it, still the same error :( thnx anyway > > On Wednesday, August 1, 2012 6:31:52 PM UTC+3, Massimo Di Pierro wrote: >> >> Yes. this is wrong: >> >> Field('City

Re: [web2py] Re: Vars dictionary -- legal to have 'int'?

2012-08-01 Thread Jonathan Lundell
On 1 Aug 2012, at 10:02 AM, Massimo Di Pierro wrote: > yes but by converting the object to string we can see what it is in the > generated url. I cannot reproduce the problem. My point, though, is that if it's not *already* a string (and url-encoded to boot), it's an error, and if it happens t

Re: [web2py] Re: Vars dictionary -- legal to have 'int'?

2012-08-01 Thread AbrahamLinksys
Hmm, I tried again with a simpler example in an app built from the welcome app. I got the same error, but I noticed this: (a=None, c=None, f=None, r=, 'post_vars': }>, args=[], vars={'a': 2}, anchor='', extension=None, env=, hmac_key=None, hash_vars=True, salt=None, user_signature=None, scheme

[web2py] Re: format attribute in Record Representation

2012-08-01 Thread lyn2py
I'm trying to understand... Do you mean that if I leave out the validator, i.e. make it requires=IS_IN_DB(db,'sometable.id') or do you mean to remove the whole "requires" attribute? Yes, they are exactly the same (the format attributes in table and in the reference), and I don't wish to repeat

[web2py] Re: Giving a talk promoting web2py over Django

2012-08-01 Thread Massimo Di Pierro
I really have nothing to add but some history. I was a Django programmer (although never a Django contributor) and I have developed web sites for the United Nations in Django. I have taught Django here at DePaul University. I started web2py as a teaching because I found the learning curve with

Re: [web2py] Re: Vars dictionary -- legal to have 'int'?

2012-08-01 Thread Jonathan Lundell
On 1 Aug 2012, at 10:11 AM, AbrahamLinksys wrote: > Hmm, I tried again with a simpler example in an app built from the welcome > app. > > I got the same error, but I noticed this: > > (a=None, c=None, f=None, r= 0..._vars': , 'post_vars': }>, args=[], vars={'a': > 2}, anchor='', extension=None

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

2012-08-01 Thread Alan Etkin
> > > I have got through 5 issues on your instructions so far: > > > 'force-reload' not recognised so removed from uwsgi > > Didn't test that command, it came with the example uwsgi startup script, but I think there's no need of it 'tar's had '-zxvf' as options, changed to 'zxvf' > tar man page

Re: [web2py] Web2py in apache mod_wsgi with virtualenv

2012-08-01 Thread Daniel Gonzalez
Thanks Jonathan, I will try this later today. Regards, Daniel On Wednesday, August 1, 2012 6:44:24 PM UTC+2, Jonathan Lundell wrote: > > On 1 Aug 2012, at 9:30 AM, Daniel Gonzalez wrote: > > On Wednesday, August 1, 2012 5:56:37 PM UTC+2, Jonathan Lundell wrote: > > On 1 Aug 2012, at 8:52 AM,

[web2py] Re: Vars dictionary -- legal to have 'int'?

2012-08-01 Thread AbrahamLinksys
Wow, I certainly did something silly at some point -- in my source (gluon/html.py), url_encode is set to false: I checked out a new version, and the build times match 100%, so it HAS to be my silliness (Version 1.99.7 (2012-03-04 22:12:08) stable). Apologies for the wild goose chase -- I seem

[web2py] Re: JSONRPC authentication without disabling normal authentication?

2012-08-01 Thread howesc
for Starmaker's API we are now using the @restful decorator chained with a decorator we wrote that checks OAuth. all requests made by the client are OAuth signed requests. i'm sure you can use a similar method to use basic auth for the API calls, while leaving the regular auth decorators for t

Re: [web2py] Re: passing javascript variables to python code in web2py view

2012-08-01 Thread howesc
in these cases i do all the python on the server side and format the resulting JSON in a way that i can handle easily in javascript. we don't yet have web browsers that run python. :( On Monday, July 30, 2012 1:58:22 PM UTC-7, curiouslearn wrote: > > Anthony, thanks for your response. Please se

[web2py] possible scheduler bug

2012-08-01 Thread Vincenzo Ampolo
Hi, I'm writing an application that uses the scheduler heavily. I create new task using this simple function (there is a commit() because it's in an external script): def schedule_movie(*args, **kwargs): db_scheduler.scheduler_task.insert( status='QUEUED', application_name='mi

Re: [web2py] passing javascript variables to python code in web2py view

2012-08-01 Thread Vincenzo Ampolo
On 07/30/2012 10:55 AM, Curiouslearn wrote: > The above does not work. Is there a way that above can be made to > work? If so, can above work for cases in which the javascript variable > is an array or a json object. Make an ajax call using $.getScript() encoding the variables you want in the requ

Re: [web2py] passing javascript variables to python code in web2py view

2012-08-01 Thread Vincenzo Ampolo
On 08/01/2012 11:31 AM, Vincenzo Ampolo wrote: > > $.getScript({{=URL('gen_javascript')}}/my_js_variable1/my_js_variable2) sorry. It shoudl be $.getScript("{{=URL('gen_javascript')}}"+"/"+my_js_variable1+"/"my_js_variable2) not tested though. so other problem may appear. but I hope I've given

Re: [web2py] passing javascript variables to python code in web2py view

2012-08-01 Thread Niphlod
I usually do the following: controller.py def function(): jhelper = dict(myvar='1', myothervar='2') return dict(whatever=whatever, jhelper=XML(json(jhelper))) in view controller/myfunction.html . So

[web2py] Re: possible scheduler bug

2012-08-01 Thread Niphlod
you're using the "old" scheduler. the new one operates on a totally different logic and it was coded with scalability in mind. you can find the relevant code in trunk, the gluon/scheduler.py file is what are you looking for. PS: there is an app to show off the new scheduler behaviour (and shortc

Re: [web2py] Re: possible scheduler bug

2012-08-01 Thread Vincenzo Ampolo
On 08/01/2012 11:52 AM, Niphlod wrote: > you're using the "old" scheduler. the new one operates on a totally > different logic and it was coded with scalability in mind. > you can find the relevant code in trunk, the gluon/scheduler.py file is > what are you looking for. Updated to trunk and work

[web2py] Re: Making part of User's Profile public - viewable by anyone with url

2012-08-01 Thread Rob_McC
Massimo . Once again, *many* thanks. *It worked 100%* ~ Rob . I have summarized what you taught me here: What file does: ** * http://somesocialwebsite/~jsmith * will redirect to: *http://somesocialwebsite/default/user/profile* FileName: *routes.py* *File Loc

[web2py] Re: JSONRPC, XMLRPC or REST?

2012-08-01 Thread pbreit
I believe most JavaScript frameworks expect REST/JSON. --

Re: [web2py] Re: possible scheduler bug

2012-08-01 Thread Niphlod
Happy to see someone noticing actual improvements :P If you need any further explanations / tips&tricks, just ask. PS: another italian added to web2py-users ;) --

[web2py] response menu styling

2012-08-01 Thread BlueShadow
I like to use the response menu. But I got major problems getting it styled right. I cant get a space between the menu items. I cant get this arrow removed which indicates that there is a drobdown menu. --

Re: [web2py] Re: possible scheduler bug

2012-08-01 Thread Vincenzo Ampolo
On 08/01/2012 12:49 PM, Niphlod wrote: > Happy to see someone noticing actual improvements :P > If you need any further explanations / tips&tricks, just ask. > > PS: another italian added to web2py-users ;) Thanks :) just some considerations though. I noticed that now in scheduler_run all the C

[web2py] Re: grid search behaviour with foreign keys

2012-08-01 Thread Mike
I'm also trying to get around this issue - anyone have any recommendations? On Monday, July 2, 2012 12:08:46 PM UTC-4, simon wrote: > > When you have a grid with a reference field then the search functionality > does not work as expected. > > For example grid shows: > >Owner Dog >

Re: [web2py] Re: possible scheduler bug

2012-08-01 Thread Niphlod
The consideration behind that is that if your function doesn't return anything, you don't need the results. Backward compatibility is quite broken in that sense (but scheduler is still marked as experimental). If the function returns something, the scheduler_run record is preserved (unless the d

[web2py] Re: format attribute in Record Representation

2012-08-01 Thread Anthony
You have to remove the entire "requires" attribute. Try defining the health table after the types and tabs tables: db.define_table('types', Field('name','string',length=255,requires=IS_NOT_EMPTY()), Field('description','text',requires=IS_NOT_EMPTY()), format='%(name)s (%(description)s

[web2py] ajax call from a page on a non-web2py server is not seen as ajax?

2012-08-01 Thread simon
I have a page served by a php application where a button makes an ajax call to a web2py controller. However when it arrives the request.ajax field is false and it then tries to redirect to the login page. Is it possible to make an ajax call to a web2py server from a non-web2py page and send the

Re: [web2py] ajax call from a page on a non-web2py server is not seen as ajax?

2012-08-01 Thread Richard Vézina
Are you using web2py ajax or jQuery.ajax, I don't see why it shouldn't works with the later, but with the former I think it's not possible since it is a web2py subset of jQueyr ajax functions intent to work in a certain context within web2py. http://web2py.com/books/default/chapter/29/11 Richard

[web2py] Re: Giving a talk promoting web2py over Django

2012-08-01 Thread Cliff Kachinske
I auditioned a lot of web frameworks in various languages. Web2py was the only one that allowed me to be instantly productive when it came to porting my PHP apps. On Wednesday, August 1, 2012 11:46:48 AM UTC-4, Alec Taylor wrote: > > Tonight I'm going to present my little social-network to a us

[web2py] Re: ajax call from a page on a non-web2py server is not seen as ajax?

2012-08-01 Thread Anthony
Yes, you can make Ajax calls to web2py and get a response back -- and that is independent of whether request.ajax is True. Here's the code used to set request.ajax: x_req_with = str(request.env.http_x_requested_with).lower() request.ajax = x_req_with == 'xmlhttpre

Re: [web2py] Re: possible scheduler bug

2012-08-01 Thread Vincenzo Ampolo
On 08/01/2012 01:19 PM, Niphlod wrote: > The consideration behind that is that if your function doesn't return > anything, you don't need the results. Backward compatibility is quite > broken in that sense (but scheduler is still marked as experimental). > If the function returns something, the sch

  1   2   >