[web2py] Paid project: Open source GAE blobstore upload feature in web2py

2011-07-11 Thread anandvc
Hello Web2py Wizards, I'm making a site using Web2py where vendors upload their product images. The site is deployed on Google App Engine (GAE). The problem I'm facing is that web2py image uploads on GAE only support files of upto 1 mb by default. I currently do not have the in-depth knowledge of

[web2py] R: Re: Web Shell problem on Mozilla Firefox 5 and Internet Explorer 9 (PC with Vista)

2011-07-11 Thread Valter Foresto
Thanks Anthony, I believe that : - when we use *web2py Web Shell* we have all the web2py system running in the background concurrently - when we use a *Python console with web2py* (like standard or IPython for example) we have (like web2py Web Shell) the complete web2py environment

[web2py] Re: Helpers (general question and call for sticky)

2011-07-11 Thread apple
1) There is generally less typing in helpers and mistakes are easier to pick up. If you miss a closing bracket then it will throw an error. If you miss a tag then it may just display incorrectly. 2) It is also much more concise and easier to read in complex views. You avoid the special characters

[web2py] ssl for sending mail

2011-07-11 Thread Manuele Pesenti
what settings I need if I have to use ssl connection to my smtp server on port 465? I tryed: mail.settings.server = 'my.smtp.server:465' mail.settings.sender = 'm...@gmail.com' mail.settings.login = False # beacuse I don't want to use # authentication within interna

[web2py] Re: Datatables, jqgrid

2011-07-11 Thread Ross Peoples
I think because when a table is hidden behind a tab that it can't resize what's not visible. So if you listen for the tab change event and force datatables to refresh after a tab change, that should solve the problem.

Re: [web2py] Re: Linking directly to an uploaded image

2011-07-11 Thread Ivica Kralj
Hi Pbreit, It does, but if you are trying to open an image in browser using download() function with A tag ( wrote: > Does the download() function handle the file paths properly? >

[web2py] Re: ssl for sending mail

2011-07-11 Thread Ross Peoples
I'm pretty sure you have to set mail.settings.tls = True for web2py to start a secured connection with a mail server.

[web2py] fields and field_labels argument in crud.seach

2011-07-11 Thread niknok
This example from the epydoc doesn't work: form, results = crud.search(db.test, queries = ['equals', 'not equal', 'contains'], query_labels={'equals':'Equals', 'not equal':'Not equal

[web2py] Re: ssl for sending mail

2011-07-11 Thread Ross Peoples
Oh, and looking at the code, it doesn't want to start a secured session unless mail.settings.login is set. Not sure why this is. Maybe because mail servers typically don't allow anonymous logins anymore.

[web2py] one form for multiple tables - updating record

2011-07-11 Thread niknok
I've read the section about "one form for multiple tables" and following the example created my function that updates four tables: def register(): form=SQLFORM.factory(db.person, db.affiliation, db.address, db.card) if form.accepts(request.vars): id = db.person.insert(**db.person

[web2py] Many modal windows on one page

2011-07-11 Thread Kenneth Lundström
Hello everybody, I´m trying to create a page with a list of items. On every row a item is shown and every row has an Edit button. Instead of going to a new page to edit the record I´m trying to use modal window via AJAX to edit the record. Mmodal plugin gets me quite close to a solution, but

Re: [web2py] one form for multiple tables - updating record

2011-07-11 Thread Kenneth Lundström
def display(): record = db.person(request.args(0)) form=SQLFORM.factory(db.person, db.affiliation, db.address, db.card, record) if form.accepts(request.vars, session): record.update_record(**dict(form.vars)) return dict(form=form) The problem is that your are g

[web2py] Python 3 and the future of web2py

2011-07-11 Thread Francisco Costa
I read this on the announcement of the latest Python release: http://www.python.org/download/releases/3.2.1/ "Since the final release of Python 2.7, the 2.x line will only receive bugfixes, and new features are developed for 3.x only." Does web2py have any plans to migrate to Python 3.x now that

[web2py] Re: looping through fields & updating

2011-07-11 Thread DenesL
Hi Mart, to be able to use the key in the update you have to pass it in a dict. I would do: id=db.local_user.insert(dateTime=datetime.now()) # you seem to be updating one rec only rec = db(db.local_user.id==id) for key,value in localUserDict.items(): if key in db.local_user.fields: rec.upda

[web2py] How web2py works - performance

2011-07-11 Thread Francisco Costa
Hi, is there any visual chart or text that explain what happens when a page request is made? For my knowledge this is the order: - Models - Controller - View But what exactly is executed? I know if I open a certain page it only executes that controller and view, but it seams that Models are all

[web2py] Re: Python 3 and the future of web2py

2011-07-11 Thread Ross Peoples
I know it's on the radar, but I don't know to what extent. I am guessing that it won't be an immediate priority until operating systems like Mac OS X, Ubuntu, and RHEL/CentOS start shipping Python3 by default. Python3, being the next-generation of Python as it were, is still new and these operat

Re: [web2py] Re: Linking directly to an uploaded image

2011-07-11 Thread pbreit
I was thinking that if download works then you could look at the download code to see how it does it.

[web2py] Application Scope?

2011-07-11 Thread David J.
Is there place to specify a global object that runs when the application runs? Like application scope? Thanks.

[web2py] Re: R: Re: Web Shell problem on Mozilla Firefox 5 and Internet Explorer 9 (PC with Vista)

2011-07-11 Thread Anthony
I'm not sure I understand your distinction regarding web2py "running in the background". I think the web shell is intended to emulate the functionality of the standard Python shell as much as possible. In both cases, you're in a REPL where your statements are evaluated in the same environment in

[web2py] Re: fields and field_labels argument in crud.seach

2011-07-11 Thread Massimo Di Pierro
I will fix this thanks. On Jul 11, 6:48 am, niknok wrote: > This example from the epydoc doesn't work: > >         form, results = crud.search(db.test, >                                queries = ['equals', 'not equal', 'contains'], >                                query_labels={'equals':'Equals',

[web2py] Re: Application Scope?

2011-07-11 Thread Anthony
All the model files in the root /models folder are run on every request to the application, so any object defined in one of those files will be available application wide. Is that what you're looking for? Note, as of version 1.96.1, there are also conditional model files that execute only when

[web2py] Re: How web2py works - performance

2011-07-11 Thread Massimo Di Pierro
Models in the top modes/ are all executed. Models in subfolder are executed conditionally. For example models in a folder with the name of a controller are executed when the controller with the same name is executed. On Jul 11, 8:38 am, Francisco Costa wrote: > Hi, is there any visual chart or t

[web2py] Re: How web2py works - performance

2011-07-11 Thread Ross Peoples
The less your models do, the better in general. When a page comes in, web2py does it's thing, then executes ALL models, then executes the appropriate controller->function, then the function executes the view. However, with newer versions of web2py, there are conditional models, so in your model

Re: [web2py] Re: web2py added on PyPy compatibility page

2011-07-11 Thread Richard Vézina
;-) Richard On Thu, Jul 7, 2011 at 5:31 PM, cjrh wrote: > That is a complicated question: > > 1) Single page load: no. This is generally an IO-bound kind of system, > e.g. an infinitely fast processor would have almost no effect on response > time. > > 2) Concurrency/Scaling: generally, no. T

[web2py] Re: Python 3 and the future of web2py

2011-07-11 Thread Massimo Di Pierro
When Python 3.x gets better than Python 2.x (faster, better concurrency, better web support), than we will consider a web3py. Do not worry about the statements above. I am prepared to bet money there will be a 2.8 and it not there will be a fork from sombody. On Jul 11, 8:52 am, Ross Peoples wrot

[web2py] Re: How web2py works - performance

2011-07-11 Thread Anthony
On Monday, July 11, 2011 9:38:03 AM UTC-4, Francisco Costa wrote: > > Hi, is there any visual chart or text that explain what happens when a > page request is made? > For my knowledge this is the order: > > - Models > - Controller > - View > > But what exactly is executed? > > I know if I o

Re: [web2py] Re: Application Scope?

2011-07-11 Thread Jonathan Lundell
On Jul 11, 2011, at 7:08 AM, Anthony wrote: > All the model files in the root /models folder are run on every request to > the application, so any object defined in one of those files will be > available application wide. Is that what you're looking for? > > Note, as of version 1.96.1, there ar

Re: [web2py] Re: Application Scope?

2011-07-11 Thread David J.
Anthony; Thanks; I wanted my object to be created on application startup; I know that I can put objects in my model and they are available; but I wanted something like application scope that has a life longer than the request; What I am trying to accomplish is an event queue type system. so

Re: [web2py] Re: Application Scope?

2011-07-11 Thread Anthony
OK, have you seen this: http://web2py.com/book/default/chapter/04#Background-Processes-and-Task-Queues ? On Monday, July 11, 2011 10:19:59 AM UTC-4, David J wrote: > Anthony; > > Thanks; I wanted my object to be created on application startup; > > I know that I can put objects in my model and

Re: [web2py] Re: ssl for sending mail

2011-07-11 Thread Jonathan Lundell
On Jul 11, 2011, at 4:52 AM, Ross Peoples wrote: > Oh, and looking at the code, it doesn't want to start a secured session > unless mail.settings.login is set. Not sure why this is. Maybe because mail > servers typically don't allow anonymous logins anymore. I think that's right. It seems wrong

Re: [web2py] SQL UNIQUE IN WEB2PY : CONSTRAINT unique_test UNIQUE (num_part1, num_part2, num_part3, title)

2011-07-11 Thread Richard Vézina
This solution work well at least with Postgres. Richard On Mon, Jul 11, 2011 at 10:34 AM, Richard Vézina < ml.richard.vez...@gmail.com> wrote: > Just to close this thread nicely, here the solution I found (thanks to > Bruno for concatenation :) > > import datetime > now = datetime.datetime.today

[web2py] Re: looping through fields & updating

2011-07-11 Thread mart
Hi Denes, Thanks for the great explanation! now, its making sense to me!! I'll apply the changes below Thanks :) Mart :) On Jul 11, 9:34 am, DenesL wrote: > Hi Mart, > > to be able to use the key in the update you have to pass it in a dict. > I would do: > > id=db.local_user.insert(dateTime=d

Re: [web2py] Re: Application Scope?

2011-07-11 Thread David J.
Anthony; We are getting closer; now the question is how can I run this if I am running wsgi? This is exactly what needs to get done; so can I pass to my wsgi handler to do this as well? Thanks. On 7/11/11 10:26 AM, Anthony wrote: OK, have you seen this: http://web2py.com/book/default/cha

Re: [web2py] Re: Python 3 and the future of web2py

2011-07-11 Thread Richard Vézina
You might be very secured by this presentation : http://www.google.com/events/io/2011/sessions/python-google.html Guido himself expose a planning of Python future... Very instructive presentation actually... A lot of littles insides informations for outsider... Richard On Mon, Jul 11, 2011 at 1

Re: [web2py] Re: ssl for sending mail

2011-07-11 Thread Ross Peoples
Quick correction, set: mail.settings.login = None Setting this to False will probably cause an error, as it specifically checks for None, and assumes the value is a string otherwise.

Re: [web2py] Re: looping through fields & updating

2011-07-11 Thread David J.
You may want to look at the _filter_fields Look at web2py slices; this way you can pass a dict and it updates with the relevant fields/ On 7/11/11 10:38 AM, mart wrote: Hi Denes, Thanks for the great explanation! now, its making sense to me!! I'll apply the changes below Thanks :) Mart :)

Re: [web2py] Python 3 and the future of web2py

2011-07-11 Thread Ovidio Marinho
Hello Men's, still do not control everything that can offer web2py with Python 2.7, and I think we can not worry about versions, the important features are present, we need to master well web2py, python Guido cares about him. Ovidio Marinho Falcao Neto ovidio...@gmail.com

Re: [web2py] Re: Application Scope?

2011-07-11 Thread Anthony
I'm not sure -- I think you just have to start the background process separately. You might consider having it start via cron @reboot. Maybe others have suggestions. On Monday, July 11, 2011 10:38:52 AM UTC-4, David J wrote: > Anthony; > > We are getting closer; now the question is how can I

Re: [web2py] Re: Application Scope?

2011-07-11 Thread Jonathan Lundell
On Jul 11, 2011, at 7:54 AM, Anthony wrote: > I'm not sure -- I think you just have to start the background process > separately. You might consider having it start via cron @reboot. Maybe others > have suggestions. Massimo is promising Celery integration by mid-August. Would that work? > >

Re: [web2py] Re: Application Scope?

2011-07-11 Thread David J.
Yes; I am waiting patiently; :) But till then... Thanks. On 7/11/11 11:05 AM, Jonathan Lundell wrote: On Jul 11, 2011, at 7:54 AM, Anthony wrote: I'm not sure -- I think you just have to start the background process separately. You might consider having it start via cron @reboot. Maybe ot

[web2py] Elementary questions about menu.py

2011-07-11 Thread Cliff
I have the basic functionality working for my port from PHP, and now it's time to start working on look and feel issues. I have two simple questions about menu.py to which I have not been able to find answers this morning: 1. Why is it in the models directory? 2. How does menu.py get included s

[web2py] Re: web2py added on PyPy compatibility page

2011-07-11 Thread Massimo Di Pierro
:-) On Jul 11, 9:13 am, Richard Vézina wrote: > ;-) > > Richard > > > > > > > > On Thu, Jul 7, 2011 at 5:31 PM, cjrh wrote: > > That is a complicated question: > > > 1) Single page load: no.  This is generally an IO-bound kind of system, > > e.g. an infinitely fast processor would have almost no

Re: [web2py] Re: Application Scope?

2011-07-11 Thread Jonathan Lundell
On Jul 11, 2011, at 8:08 AM, David J. wrote: > Yes; I am waiting patiently; > > :) > > But till then... From the comments I've seen here, you can go ahead and play with Celery on your own, without integration. I have no experience with it myself. > > Thanks. > > > > On 7/11/11 11:05 AM, Jo

[web2py] Re: Application Scope?

2011-07-11 Thread Massimo Di Pierro
If anybody is using celery with web2py and have example to share it will be useful to many of us. On Jul 11, 10:13 am, Jonathan Lundell wrote: > On Jul 11, 2011, at 8:08 AM, David J. wrote: > > > Yes; I am waiting patiently; > > > :) > > > But till then... > > From the comments I've seen here, yo

[web2py] Re: Elementary questions about menu.py

2011-07-11 Thread Massimo Di Pierro
Models in web2py are defined as "code that must be executed to create the environment for controllers". meny.py is there because it was simple but you can move the code into a controller if you like. Anything defined in models is exposed to both controllers and views. On Jul 11, 10:15 am, Cliff

Re: [web2py] Re: Application Scope?

2011-07-11 Thread David J.
I am not using celery; The more I think about it I think celery would be easier to work with than what I had asked; Celery is a process that runs in the background its uses AMPQ so that service is running; so if there were a client you could easily integrate the two; what I am asking would

[web2py] Re: Elementary questions about menu.py

2011-07-11 Thread Cliff
Thank you. I found the answer in the Dispatching div of chapter 4 less than two minutes after posting the question. By the way, I'm pleased with my project progress so far. Once I get the syntax into muscle memory I think it will improve my speed and quality considerably. On Jul 11, 11:18 am, M

Re: [web2py] Re: Application Scope?

2011-07-11 Thread Roberto De Ioris
Il giorno 11/lug/2011, alle ore 17.27, David J. ha scritto: > I am not using celery; > > The more I think about it I think celery would be easier to work with than > what I had asked; > > Celery is a process that runs in the background its uses AMPQ so that service > is running; so if there w

Re: [web2py] Re: Application Scope?

2011-07-11 Thread David J.
Roberto; Thanks so much; this is almost the information I am looking for; Spooler. I have to see how I would use this in web2py. Thanks. On 7/11/11 11:42 AM, Roberto De Ioris wrote: Il giorno 11/lug/2011, alle ore 17.27, David J. ha scritto: I am not using celery; The more I think about i

Re: [web2py] Re: Application Scope?

2011-07-11 Thread Roberto De Ioris
Il giorno 11/lug/2011, alle ore 17.48, David J. ha scritto: > Roberto; > > Thanks so much; this is almost the information I am looking for; > Spooler. > > I have to see how I would use this in web2py. > > Thanks. I have just realized that there is no doc about uwsgi api + web2py integration.

[web2py] computed field won't hide when select...

2011-07-11 Thread Richard Vézina
Hello, I have this code in a select function that work in command line to display or not a computed field, so I can't figure out why it's not working in app... The computed field in red should not appear in grid view... CONTROLLER : elif auth.has_membership(auth.id_group('admin')): fieldsBlackL

Re: [web2py] Re: Application Scope?

2011-07-11 Thread pbreit
Looking forward to seeing the doc. This is currently the biggest piece of missing functionality in my app. Right now I am running various cron jobs that run through various tables looking for jobs to do but this doesn't seem like the best approach. Will this resemble Rails "Delayed Jobs" in any

[web2py] Re: How web2py works - performance

2011-07-11 Thread apple
The detailed visual chart is here: http://web2py.com/book/default/chapter/01#Model-View-Controller On Jul 11, 3:15 pm, Anthony wrote: > On Monday, July 11, 2011 9:38:03 AM UTC-4, Francisco Costa wrote: > > > Hi, is there any visual chart or text that explain what happens when a > > page request

Re: [web2py] Re: Application Scope?

2011-07-11 Thread Bruno Rocha
** I Meant Celery is a Task/queue manager, which depends on a Message Broker! DAL can be used I guess.

Re: [web2py] Re: Application Scope?

2011-07-11 Thread Bruno Rocha
On Mon, Jul 11, 2011 at 12:20 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > If anybody is using celery with web2py and have example to share it > will be useful to many of us. I am using Celery standalone and have worked in a project with Django DjCelery[1] Celery is very smart,

[web2py] Tiny example on uwsgidecorators+web2py

2011-07-11 Thread Roberto De Ioris
Just a tiny example, but should be enough for spooler jobs and timers http://projects.unbit.it/uwsgi/wiki/Decorators#Example:web2pyspoolertimer Obviously you can call web2py module/functions in the mytasks.py file (just import them as a normal python app) -- Roberto De Ioris http://unbit.it

Re: [web2py] Tiny example on uwsgidecorators+web2py

2011-07-11 Thread David J.
Roberto; Thank you for this. On 7/11/11 1:34 PM, Roberto De Ioris wrote: Just a tiny example, but should be enough for spooler jobs and timers http://projects.unbit.it/uwsgi/wiki/Decorators#Example:web2pyspoolertimer Obviously you can call web2py module/functions in the mytasks.py file (jus

Re: [web2py] Tiny example on uwsgidecorators+web2py

2011-07-11 Thread David J.
Roberto; Do you need the latest version of uwsgi or will http://projects.unbit.it/downloads/uwsgi-0.9.8.1.tar.gz This work? I see the docs say 0.9.8.2? not 0.9.8.1. On 7/11/11 1:34 PM, Roberto De Ioris wrote: Just a tiny example, but should be enough for spooler jobs and timers http://pr

Re: [web2py] Tiny example on uwsgidecorators+web2py

2011-07-11 Thread Roberto De Ioris
> Roberto; > > Do you need the latest version of uwsgi or will > http://projects.unbit.it/downloads/uwsgi-0.9.8.1.tar.gz > > This work? > > I see the docs say 0.9.8.2? not 0.9.8.1. You have to take the version from mercurial repository, it has tons of fixes for the signal framework. (the official

Re: [web2py] Tiny example on uwsgidecorators+web2py

2011-07-11 Thread David J.
Thanks for the heads up... Will try now. On 7/11/11 2:17 PM, Roberto De Ioris wrote: Roberto; Do you need the latest version of uwsgi or will http://projects.unbit.it/downloads/uwsgi-0.9.8.1.tar.gz This work? I see the docs say 0.9.8.2? not 0.9.8.1. You have to take the version from mercu

[web2py] R: Re: R: Re: Web Shell problem on Mozilla Firefox 5 and Internet Explorer 9 (PC with Vista)

2011-07-11 Thread Valter Foresto
When I run web2py and my app/controller inside a Python console I have all the environment available ... but the web server is not running in the background. I think this is the difference with using web2py Web Shell. I'm trying to interact from 'console' with a web2py running app/controller

[web2py] load restricted errors

2011-07-11 Thread apple
I am using LOAD to load a component. If there is an error in the controller then web2py reports a "restricted error" for the line with the LOAD on it. However the actual error could be anywhere in the controller. Is there any way of getting a more informative error message?

[web2py] Re: Python 3 and the future of web2py

2011-07-11 Thread cjrh
On Monday, 11 July 2011 16:13:39 UTC+2, Massimo Di Pierro wrote: > > Do not worry about the statements above. I am prepared to bet money there > will be a 2.8 and it not there will be a fork from sombody. > :) I have seen a lot of quite strong statements from various members of the core Python

Re: [web2py] Re: Datatables, jqgrid

2011-07-11 Thread Roberto Perdomo
Thanks, was solved using: onclick="$('#id_tab').load('url_to_page');" My complete code of the tans page: {{extend 'layout.html'}} $(function() { $("#tabs").tabs(); $("#tabs1").tabs(); $("#tabs2").tabs(); }); {{=T('Nomin

[web2py] Re: load restricted errors

2011-07-11 Thread Ross Peoples
I see this a lot when there is a problem in the view. If this is the case, then you'll see a line number on the error, which if you scroll all the way down to the bottom on the ticket, you will see the view code converted to Python code and you will see which line it is talking about in the view

[web2py] Re: Python 3 and the future of web2py

2011-07-11 Thread cjrh
The other wild idea, of course, is to keep web2py on Python 2.x (assuming that is going to be around as long as you suggest) and make web3py for Python 3.x, IOW a new framework where different ideas can be tried without affecting backward compatiblityI'm sure you have played with this idea

[web2py] Re: Python 3 and the future of web2py

2011-07-11 Thread Ross Peoples
I'd be interested to see what something like 2to3 would say about web2py's compatibility with Python3: http://docs.python.org/library/2to3.html http://diveintopython3.org/porting-code-to-python-3-with-2to3.html

Re: [web2py] Python 3 and the future of web2py

2011-07-11 Thread Jonathan Lundell
On Jul 11, 2011, at 6:32 AM, Francisco Costa wrote: > > I read this on the announcement of the latest Python release: > http://www.python.org/download/releases/3.2.1/ > > "Since the final release of Python 2.7, the 2.x line will only receive > bugfixes, and new features are developed for 3.x only

[web2py] Re: looping through fields & updating

2011-07-11 Thread mart
Will this day ever end!? ;) Thanks David, will have a look at that too! :) Thanks, Mart :) On Jul 11, 10:50 am, "David J." wrote: > You may want to look at the _filter_fields > > Look at web2py slices; this way you can pass a dict and it updates with > the relevant fields/ > > On 7/11/11 10:38

Re: [web2py] Python 3 and the future of web2py

2011-07-11 Thread cjrh
http://www.python.org/download/releases/3.2.1/ I highlighted the ones I am interested in below: - numerous improvements to the unittest module - PEP 3147 , support for .pyc repository directories - PEP 3149

Re: [web2py] Python 3 and the future of web2py

2011-07-11 Thread cjrh
Oh, I also watched a video from PyCon: the dictionary-based logging system is supposed to be the final word on how to do Python logging for all apps and users. Apparently there were a lot of custom-made in-house logging systems for many different projects, and they tried to make one to replace

Re: [web2py] Python 3 and the future of web2py

2011-07-11 Thread cjrh
I just realized you asked about Python *3* not 3.2! The stuff I posted was the delta from 3.1 to 3.2 only. To see what changes from 2 to 3, read here (isn't too long, worth skimming at the very least): http://docs.python.org/py3k/whatsnew/3.0.html

[web2py] Re: Python 3 and the future of web2py

2011-07-11 Thread cjrh
It may, in fact, be necessary. According to http://docs.python.org/py3k/whatsnew/3.0.html: "It is not recommended to try to write source code that runs unchanged under both Python 2.6 and 3.0; you’d have to use a very contorted coding style, e.g. avoiding print statements, metaclasses, and muc

Re: [web2py] Tiny example on uwsgidecorators+web2py

2011-07-11 Thread David J.
Robeto; I am not exactly sure how I would start my application in the background using this method; I thought I could use @thread and then call it somehow. But I am not sure how to access the object once I do that. The examples you showed are using @spool I dont think I need to create a sp

[web2py] Re: R: Re: R: Re: Web Shell problem on Mozilla Firefox 5 and Internet Explorer 9 (PC with Vista)

2011-07-11 Thread Anthony
On Monday, July 11, 2011 3:10:57 PM UTC-4, Valter Foresto wrote: > When I run web2py and my app/controller inside a Python console I have all > the environment available ... but the web server is not running in the > background. > I think this is the difference with using web2py Web Shell. T

Re: [web2py] Tiny example on uwsgidecorators+web2py

2011-07-11 Thread Bruno Rocha
Is it possible to include these options in the init script? 127.0.0.1:9006 /home/www-data/myapp/ wsgihandler

[web2py] Reference field not required

2011-07-11 Thread Jim Steil
Hi I have a situation where I have a field that is referencing a field in another table. I added the .requires = IS_IN_DB to get CRUD to create the dropdown for selection of the field. But, that's not really what I want. I would like the dropdown to get generated in CRUD, but for the field

[web2py] Re: Reference field not required

2011-07-11 Thread GoldenTiger
It exists productClass.rebateClassId.requires = IS_EMPTY_OR(IS_IN_DB(db, db.productClass.productClassId)) On 11 jul, 23:33, Jim Steil wrote: > Hi > > I have a situation where I have a field that is referencing a field in > another table.  I added the .requires = IS_IN_DB to get CRUD to create

[web2py] Re: Datatables, jqgrid

2011-07-11 Thread GoldenTiger
Anyway, take a look at pyafipws code, from our friend Mariano Reingart http://code.google.com/p/pyafipws/source/browse/views/emision/detallar.html?repo=web2py-app On 11 jul, 21:43, Roberto Perdomo wrote: > Thanks, > > was solved using: onclick="$('#id_tab').load('url_to_page');" > > My comple

[web2py] Re: component refresh with jQuery UI tab plugin

2011-07-11 Thread Cliff
Hello Richard, Your post and Massimo's reply helped me understand better how this is supposed to work. So maybe I can return the favor a little bit. I understand from your posts that you have a field on tab_1 and you would like to see the contents of that field included in a dropdown on tab_2.

Re: [web2py] Python 3 and the future of web2py

2011-07-11 Thread Jonathan Lundell
On Jul 11, 2011, at 1:38 PM, cjrh wrote: > I just realized you asked about Python 3 not 3.2! The stuff I posted was the > delta from 3.1 to 3.2 only. To see what changes from 2 to 3, read here > (isn't too long, worth skimming at the very least): > http://docs.python.org/py3k/whatsnew/3.0.ht

[web2py] When (not) to use auth.signature?

2011-07-11 Thread pbreit
I have been using auth.signature on some tables where records are not always modified by a logged in user. I think I'm finally figuring out that this is not going to work since the reference to a non-user won't be enforceable, right? Also, in /appadmin, shouldn't modified_by be pre-filled with

[web2py] web2py deployement on windows

2011-07-11 Thread mart
hi, I would like to deploy web2py on some recently made available windows servers, but apache seems to conflict with some tomcat instances on the same boxes. I had a look at @ the slice for web2py and IIS (but I don't know windows very well and the instructions look complicated to me (because i do

Re: [web2py] web2py deployement on windows

2011-07-11 Thread Vasile Ermicioi
- download web2py for windows - start web2py - set ip to 0.0.0.0 and port to 8080 - you're done!

[web2py] Re: web2py deployement on windows

2011-07-11 Thread mart
Really? LOL :) i had no clue! :) (can't stop giggling - so is my daughter and she doesn't even know why (yet) :)) thanks a lot for the help! :) Mart On Jul 11, 7:26 pm, Vasile Ermicioi wrote: >    - download web2py for windows >    - start web2py >    - set ip to  0.0.0.0 and port to 8080 >    

[web2py] Re: web2py deployement on windows

2011-07-11 Thread mart
BTW - this is fantastic!! And, admin is blocked! so, no need to worry about folks mocking everything up! :) thanks again! Mart :) On Jul 11, 7:33 pm, mart wrote: > Really? LOL :) i had no clue! :) > > (can't stop giggling - so is my daughter and she doesn't even know why > (yet) :)) > > thanks a

[web2py] Re: When (not) to use auth.signature?

2011-07-11 Thread Massimo Di Pierro
It is. Please show us an example where it does not work. On Jul 11, 5:38 pm, pbreit wrote: > I have been using auth.signature on some tables where records are not always > modified by a logged in user. I think I'm finally figuring out that this is > not going to work since the reference to a non-

[web2py] Admin security: https vs localhost

2011-07-11 Thread pbreit
>From the code, it looks like admin is accessible via https *OR* localhost. I had thought localhost was a requirement by default since otherwise it seems too easy to break in to admin by just trying a bunch of passwords. Or is the advise to not use https in order to require localhost?

[web2py] Re: Admin security: https vs localhost

2011-07-11 Thread Massimo Di Pierro
You can change your requirements in applications/admin/models/ access.py On Jul 11, 7:28 pm, pbreit wrote: > From the code, it looks like admin is accessible via https *OR* localhost. I > had thought localhost was a requirement by default since otherwise it seems > too easy to break in to admin

[web2py] Re: Admin security: https vs localhost

2011-07-11 Thread pbreit
I made two changes which seem to me necessary for decent security: In /admin I switched is_local from "elif" to "if": if request.env.http_x_forwarded_for or request.is_https: session.secure() if not request.is_local and not DEMO_MODE: raise HTTP(200, T('Admin is disabled because insecure

[web2py] Re: one form for multiple tables - updating record

2011-07-11 Thread niknok
Thanks for looking Kenneth. Should it be a record id? From the book (and epydocs): record = db.person(request.args(0)) form = SQLFORM(db.person, record) where record is a Row object and it works correctly. I tried your suggestion to pass an id but got a "KeyError:'name'" error.

[web2py] Re: one form for multiple tables - updating record

2011-07-11 Thread Anthony
Here's a solution offered by Denes a while back: https://groups.google.com/d/msg/web2py/pso1oLF-bKU/uCIXtLcjQ9kJ On Monday, July 11, 2011 7:50:15 AM UTC-4, niknok wrote: > I've read the section about "one form for multiple tables" and following > the example created my function that updates

Re: [web2py] Tiny example on uwsgidecorators+web2py

2011-07-11 Thread Roberto De Ioris
> Is it possible to include these options in the init script? > > > 127.0.0.1:9006 > /home/www-data/myapp/ > > wsgihandler > > > Yes, all of the options can be moved in config files. 127.0.0.1:9006 /home/www-data/myapp/ wsgihandler

Re: [web2py] Tiny example on uwsgidecorators+web2py

2011-07-11 Thread Roberto De Ioris
> Robeto; > > I am not exactly sure how I would start my application in the background > using this method; The spooler is started (and managed) by uWSGI, you do not need to daemonize it. If you want to daemonize all of your stack, simply add --daemonize to uWSGI options. > > > I think I need

[web2py] Re: Paid project: Open source GAE blobstore upload feature in web2py

2011-07-11 Thread anandvc
No takers yet? If you're not comfortable putting a quote here, please email me your quote directly at my first name dot my last name at gmail.com. Thank you! - Anand Chhatpar On Jul 11, 12:02 pm, anandvc wrote: > Hello Web2py Wizards, > > I'm making a site using Web2py where vendors upload th

[web2py] Re: Paid project: Open source GAE blobstore upload feature in web2py

2011-07-11 Thread Anthony
You can also try contacting some of the folks listed on http://www.experts4solutions.com/. On Tuesday, July 12, 2011 1:14:52 AM UTC-4, anandvc wrote: > No takers yet? If you're not comfortable putting a quote here, please > email me your quote directly at my first name dot my last name at > gm

[web2py] Re: 303 See Other - Error while using xmlrpc

2011-07-11 Thread Robin Marshall
I found the problem, it's to do with WSGI - it needs to be configured to pass on the authentication data. In the configuration file for the module, somewhere like /etc/apache2/ mods-enabled/wsgi.conf you need to add a line: WSGIPassAuthorization On and reload apache. Cheers, Robin On Jun 14, 6

[web2py] Re: Admin security: https vs localhost

2011-07-11 Thread Massimo Di Pierro
The first change is fine but it will not go in trunk because people expect to be able to login in admin remotely. It requires ssl anyway and sessions expire in 1h. The second change may be a problem. appadmin require login in admin, not necessarily in the auth of the app. Anyway, that depends on y

[web2py] Re: Paid project: Open source GAE blobstore upload feature in web2py

2011-07-11 Thread Massimo Di Pierro
This is a complex issue. The GAE blobstore has a workflow that requires the uploaded file to go through its own form generated by the blobstore API. That is different that web2py forms. You can use it but you have to use the API. Anyway, open a ticket on google code and I will look more into this a

[web2py] Livecount - Counters on Google Appengine

2011-07-11 Thread Shishir Ramam
This idea of livecount - using the task-queue on GAE seems rather powerful. Perhaps others on this list would find it useful too... http://eng.pulse.me/introducing-livecount/ -shishir -- Imagine there were no hypothetical situations.

  1   2   >