[web2py:31100] Problem with changing writeable attribute of a database field

2009-09-16 Thread John Heenan
I want to make an added username field of a custom auth_user table writeable with registration. This is how the custom non writeable field is defined: db.Field('username', length=32, label="User Name", writable=False,), The require attribute is added externally: table.username.requires =

[web2py:31101] Url mapping

2009-09-16 Thread pistacchio
Hi, in hand-writing links (not using A, for example), what is the correct way to map urls? Like, I'm on the the page http://localhost:8000/myapp/user/login I wanto to simply link http://localhost:8000/myapp/posts/show/, but: 1. linking "/posts/show/" will go to http://localhost:8000/posts/show/

[web2py:31102] Re: Url mapping

2009-09-16 Thread pistacchio
i did that with the URL tag. :-) On 16 Set, 10:57, pistacchio wrote: > Hi, > in hand-writing links (not using A, for example), what is the correct > way to map urls? Like, I'm on the the > pagehttp://localhost:8000/myapp/user/login > > I wanto to simply linkhttp://localhost:8000/myapp/posts/sho

[web2py:31103] onvalidation problem

2009-09-16 Thread Vidul Petrov
Hi all, There is a problem with "onvalidation" - it works only after redirect unless the form object is explicitly given: onvalidation = assign_some_value_to_a_var(form) Is this a bug or the new behavior of "onvalidation"? --~--~-~--~~~---~--~~ You received this

[web2py:31104] Re: app.yaml default configuration

2009-09-16 Thread Vidul Petrov
Thank you, Massimo. I forgot to mention the "uploads" directory, GAE does not use the filesystem, which makes it useless. On Sep 12, 5:20 pm, mdipierro wrote: > true. uploading to trunk > > On Sep 12, 4:22 am, Vidul Petrov wrote: > > > > > Hi, > > > I noticed thatapp.yamlcould be improved to

[web2py:31105] Re: OpenShare :: OpenSource Ad Service built in web2py!

2009-09-16 Thread Jon Romero
Thanks :) Maybe today, I'll also publish the code on github :P On Sep 16, 4:00 am, Alex Fanjul wrote: > Nice Service Jon!!! > I'll give it a try with my blog... > Alex F > > El 24/08/2009 17:53, Jon Romero escribió: > > > Hello, I've built OpenShare (http://openshare.emotionull.com) using > > we

[web2py:31106] Re: onvalidation problem

2009-09-16 Thread mdipierro
Can you show an example of what you mean? I do not think what you say is the case. On Sep 16, 5:22 am, Vidul Petrov wrote: > Hi all, > > There is a problem with "onvalidation" - it works only after redirect > unless the form object is explicitly given: > > onvalidation = assign_some_value_to_a_v

[web2py:31107] search for a professional

2009-09-16 Thread LordMax
Hi to all. Sorry but I'm in need of an Italian developer so I write in italian. ^___^ Sono alla ricerca di uno sviluppatore (possibilmente libero professionista) un poco scafato in grado di fare un (relativamente) grosso lavoro per una ditta che si occupa di insonorizzazioni. La ditta è nella z

[web2py:31108] Re: Error in 2nd edition manual? Formatting improvement request.

2009-09-16 Thread Anand Vaidya
Hi Anthon (& list members) I am updating this wiki page : https://mdp.cti.depaul.edu/wiki/default/page/7ae7f7c4-cd8d-4909-b67f-9cbd55701ae6 (Errata for web2py 2nd Edition Book) Please accumulate all feedback/errors/corrections in one place to simplify editing the next rev of the book by Massimo

[web2py:31109] Re: sql designer for web2py HOWTO

2009-09-16 Thread Boris Manojlovic
Hi ionel, the reason is formating of my email sent to list i apologize for that (google bold chars...) that "*" should not be entered, anyway here is correct config file (designer/js/config.js) ---

[web2py:31110] How to set the labels fields to a crud.updade or crud.create ?

2009-09-16 Thread Leandro - ProfessionalIT
For example, in model I do this: db.define_table('unidades', SQLField('sigla','string', length=3, default=''), SQLField('descricao','string', length=150, default=''), migrate=False) db.unidades.sigla.requires=IS_NOT_EMPTY() db.unidades.descricao.requires=IS_NOT_EMPTY() unidades_labels

[web2py:31111] Bug in cron rev1189?

2009-09-16 Thread Iceberg
Hi Achipa or Kacper, I noticed that in gluon/contrib/cron.py rev1189, a pair of lines in previous rev as: if task['min'] > -1 or ctype == 'ext': go = False are changed into: if ctype == 'ext': go = False Though I don't fully understand the purpose of the former, but at least the l

[web2py:31112] Re: How to set the labels fields to a crud.updade or crud.create ?

2009-09-16 Thread mdipierro
the proper way to set labels in forms is db.table.field.label=T("") On Sep 16, 9:20 am, Leandro - ProfessionalIT wrote: > For example, in model I do this: > > db.define_table('unidades', >     SQLField('sigla','string', length=3, default=''), >     SQLField('descricao','string', length=150,

[web2py:31113] Re: Dreamhost subdirectory via FastCGI

2009-09-16 Thread Thadeus Burgess
I am running WSGI on a subdirectory of my home, however you have to run it as the root of the domain (unless you want to try and get fancy with apache conf.) Basically what I did, was map a subdomain to a directory that stores my website instance. so i have thadeusb.com = /home/thadeusb.com for

[web2py:31114] Re: T2 status

2009-09-16 Thread david bain
It sounds like if I'm doing production work, I should stick to web2py core. On Tue, Sep 15, 2009 at 11:45 PM, mdipierro wrote: > > t2 was a proof of concept. Almost everything that was in t2 is not in > web2py core (from gluon.tools import *). The syntax is a little > different by much more powe

[web2py:31115] Re: T2 status

2009-09-16 Thread mdipierro
yes On Sep 16, 10:26 am, david bain wrote: > It sounds like if I'm doing production work, I should stick to web2py core. > > > > On Tue, Sep 15, 2009 at 11:45 PM, mdipierro wrote: > > > t2 was a proof of concept. Almost everything that was in t2 is not in > > web2py core (from gluon.tools impor

[web2py:31116] response.flash

2009-09-16 Thread Arvind
hello, I have a sample function.. what will response.flash do ? I do not see any output from either the if or the else statement. def newform(): form = FORM("your name:", INPUT(_name="yourname",requires=IS_NOT_EMPTY()), INPUT(_type="submit")) if for

[web2py:31117] Re: Views with "\" instead of "/"

2009-09-16 Thread mdipierro
can you please check in trunk if this is fixed? On Sep 10, 4:34 pm, Chris S wrote: > I've been paying with some of the example apps and run across an > oddity in the 'Views'. > > When I create a view, for example: default/index.html > It shows up in the list as: default\index.html > > When I try

[web2py:31118] Re: response.flash

2009-09-16 Thread mdipierro
Are you using the default layout.html? If not, is there anything like {{=response.falsh or 'no flash'}} in the layout? On Sep 16, 11:23 am, Arvind wrote: > hello, > > I have a sample function.. what will response.flash do ?  I do not > see any output from either the if or the else statement.

[web2py:31119] Re: T2 status

2009-09-16 Thread david bain
Will this always be the case? Will there be a stable "t-something" in the future? Or are the t projects proving grounds for technologies that eventually get into core? On Wed, Sep 16, 2009 at 11:06 AM, mdipierro wrote: > > yes > > On Sep 16, 10:26 am, david bain wrote: >> It sounds like if I'm

[web2py:31120] Re: T2 status

2009-09-16 Thread mdipierro
There are some things people have asked from web2py: 1) ability to save file in database and not filesystem 2) a better wiki 3) a cms that runs on GAE T3 tried to address 1 and 2. We soon realized a lot of its functions did not belong in T3 but to core. With T4 I am starting again, possibly addre

[web2py:31121] Re: How to set the labels fields to a crud.updade or crud.create ?

2009-09-16 Thread ProfessionalIT
Why I love Web2Py ? because this ! simple and elegant ! Perfect Massimo !. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegroups.com To unsu

[web2py:31122] Re: T2 status

2009-09-16 Thread david bain
Massimo, Thanks for the update, this helps to give some perspective. On Wed, Sep 16, 2009 at 11:55 AM, mdipierro wrote: > > There are some things people have asked from web2py: > 1) ability to save file in database and not filesystem > 2) a better wiki > 3) a cms that runs on GAE > > T3 tried to

[web2py:31123] Re: Dreamhost subdirectory via FastCGI

2009-09-16 Thread rppowell
Thank you for the information on setting up web2py using WSGI. I have thing somewhat working on using FastCGI within subdirectories by using .htaccess and dispatch.cgi. The only problem I think I'm having with getting web2py working in a subdirectory with FastCGI is that the URL is missing the su

[web2py:31124] erros logged in with dmin mode

2009-09-16 Thread AndrewLoot
1: how do i file a bug?? put a link to file a bug prominently on the web2py site please... OK so here i guess is a bug report id be glad to add to whatever issue tracking system you have... i started web2py from eclipse with -a '', on the site i signed up as a new user, after that all the admin op

[web2py:31125] Re: erros logged in with dmin mode

2009-09-16 Thread mdipierro
This is an excellent to report a bug. It is now fixed in trunk. Thank you. Massimo On Sep 16, 12:23 pm, AndrewLoot wrote: > 1: how do i file a bug?? put a link to file a bug prominently on the > web2py site please... OK so here i guess is a bug report id be glad to > add to whatever issue track

[web2py:31126] Re: onvalidation problem

2009-09-16 Thread Vidul Petrov
For example: # this works: def create_image(): ... if form.accepts(request.vars, session, onvalidation = assign_estate_id(form)): # this does not work until the "delete_image" method redirects to the "create_image" method: if form.accepts(request.vars, session,

[web2py:31127] Deployment on GAE (appadmin)

2009-09-16 Thread Chris S
I've read through the manual about GAE deployment. I'm under the impression I can take my currently running development copy (using MySQL), switch the DAL to GAE and then do an explort/import of my databases via appadmin. However, I'm having a problem getting to the Appadmin (or admin in read on

[web2py:31128] Re: onvalidation problem

2009-09-16 Thread mdipierro
I need to see the assign_estate_id source and the full body of controller actions. I do not think this is a bug, I think this a workflow issue. Or are you saying it behaves differently on GAE and non-GAE? Massimo On Sep 16, 1:32 pm, Vidul Petrov wrote: > For example: > > # this works: > def c

[web2py:31129] Re: Deployment on GAE (appadmin)

2009-09-16 Thread mdipierro
Try remove if remote_addr not in hosts: raise HTTP(400) in youapp/controllers/appadmin Massimo On Sep 16, 1:51 pm, Chris S wrote: > I've read through the manual about GAE deployment.  I'm under the > impression I can take my currently running development copy (using > MySQL), switch the D

[web2py:31130] Re: Deployment on GAE (appadmin)

2009-09-16 Thread Chris S
That gives the following error: for /welcome/appadmin/index In FILE: /base/data/home/apps/aionprofessions/1.336383874445587234/ applications/welcome/controllers/appadmin.py Traceback (most recent call last): File "/base/data/home/apps/aionprofessions/1.336383874445587234/ gluon/restricted.py",

[web2py:31131] Re: onvalidation problem

2009-09-16 Thread Vidul Petrov
It's not a GAE issue. The controller's code: # coding: utf8 # ## This is a samples controller ## - index is the default action of any application ## - user is required for authentication and authorization ## - download is fo

[web2py:31132] Re: Deployment on GAE (appadmin)

2009-09-16 Thread Chris S
Ok I can get to /welcome/appadmin by commenting out: #if not gluon.fileutils.check_credentials(request): #redirect('/admin') in welcome/controllers/appadmin.py That 'works' however now I guess I'm back to questioning how I can control access of this directory to only me? I still can't get t

[web2py:31133] Re: ticket tracking

2009-09-16 Thread David Zejda
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, I returned to examine the problem more deeply, but now it behaves differently and I do not know why, I do not remember any change, which could cause the change. Now the error_handler entry in routes.py seems to be completely ignored. I tried

[web2py:31134] Error creating app in trunk

2009-09-16 Thread mr.freeze
Sorry if you're in the midst of changing something. I just updated and got this while creating an app with a fresh checkout of web2py from svn. Error traceback Traceback (most recent call last): File "C:\web2py-read-only\gluon \restricted.py", line 178, in restrictedexec ccode in environmen

[web2py:31135] saving uploads in a place other than applications/myapp/uploads

2009-09-16 Thread weheh
Has anyone successfully been able to store and retrieve uploaded files in a place other than applications/myapp/uploads? A subdirectory under uploads is OK. I want to store user files in applications/myapp/ uploads/userid/file.jpg or some variant of that, and then enable users to also download the

[web2py:31136] Re: Error creating app in trunk

2009-09-16 Thread mr.freeze
Oh, I am using Windows and Python 2.5 On Sep 16, 3:48 pm, "mr.freeze" wrote: > Sorry if you're in the midst of changing something.  I just updated > and got this while creating an app with a fresh checkout of web2py > from svn. > > Error traceback > Traceback (most recent call last):  File "C:\w

[web2py:31137] Re: MySQL - OperationalError: Error on rename (errno: 150)

2009-09-16 Thread David Zejda
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Here: http://dev.mysql.com/doc/refman/5.1/en/innodb-foreign-key-constraints.html they say: "To find out the symbol value when you want to drop a foreign key, use the SHOW CREATE TABLE statement." David mdipierro napsal(a): > One more reason to hav

[web2py:31138] Convert JS Data to XML

2009-09-16 Thread Markus
Hello Say i have a HTML form that takes in values and stores in JS variables. Is it possible to convert the JS variables to an XML file. Example: Input: Name Salary Tax on Salary Generate XML (button) Output hello.xml Ben 1> 500 etc., --~--~-~--~~~---~

[web2py:31139] Re: Deployment on GAE (appadmin)

2009-09-16 Thread mdipierro
You will see that even with those lines commented, if you logout from google or if you login with a different google account you will not have access to appadmin. On Sep 16, 2:17 pm, Chris S wrote: > Ok I can get to /welcome/appadmin by commenting out: > > #if not gluon.fileutils.check_credentia

[web2py:31140] Re: saving uploads in a place other than applications/myapp/uploads

2009-09-16 Thread mdipierro
Currently the only way to achieve this is: 1) move the file after has been uploaded 2) write your own download controller so that file can be retrieved. On Sep 16, 3:52 pm, weheh wrote: > Has anyone successfully been able to store and retrieve uploaded files > in a place other than applications/

[web2py:31141] Re: Error creating app in trunk

2009-09-16 Thread mdipierro
Sorry. Please download and try again On Sep 16, 4:00 pm, "mr.freeze" wrote: > Oh, I am using Windows and Python 2.5 > > On Sep 16, 3:48 pm, "mr.freeze" wrote: > > > Sorry if you're in the midst of changing something.  I just updated > > and got this while creating an app with a fresh checkout o

[web2py:31142] Re: Dreamhost subdirectory via FastCGI

2009-09-16 Thread Thadeus Burgess
Take a look at the routes.py, I don't know much about it, but there is documentation on it in the book. -Thadeus On Wed, Sep 16, 2009 at 12:20 PM, rppowell wrote: > e verified that going to > http://www.rppowell.com/web2py/welcome/default/index > works; it returns valid HTML, > --~--~--

[web2py:31143] Re: sql designer for web2py HOWTO

2009-09-16 Thread ionel
Thank you and keep up the good work. ionel On Sep 16, 10:02 am, Boris Manojlovic wrote: > Hi ionel, > > the reason is formating of my email sent to list i apologize for that > (google bold chars...) > that "*" should not be entered, anyway here is correct config file > (designer/js/config.js)

[web2py:31144] Re: Dreamhost subdirectory via FastCGI

2009-09-16 Thread mdipierro
#In routes.py routes_in=(('/web2py/(?P.*)','/\g'),) routes_out=(('/(?P.*)','/web2py/\g'),) On Sep 16, 5:11 pm, Thadeus Burgess wrote: > Take a look at the routes.py, I don't know much about it, but there is > documentation on it in the book. > > -Thadeus > > On Wed, Sep 16, 2009 at 12:20 PM, rp

[web2py:31145] Re: Deployment on GAE (appadmin)

2009-09-16 Thread Chris S
Oh that's great, I didn't think about the fact that I was already logged in. I've also found that removing from applications/admin/controlers/ access.py the line with: check_credentials(request) Allows me to access the admin screen now. However, what I really wanted was the shell (I couldn't im

[web2py:31146] Re: ticket tracking

2009-09-16 Thread Jonathan Lundell
On Sep 16, 2009, at 1:18 PM, David Zejda wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hello, > > I returned to examine the problem more deeply, but now it behaves > differently and I do not know why, I do not remember any change, which > could cause the change. > > Now the error

[web2py:31147] Re: Convert JS Data to XML

2009-09-16 Thread Wes James
On Wed, Sep 16, 2009 at 3:24 PM, Markus wrote: > > Hello > > Say i have a HTML form that takes in values and stores in JS > variables. > > Is it possible to convert the JS variables to an XML file. > > Example: > I don't understand why you want to save the JS variables. In web2py in your contro

[web2py:31148] Re: Problem with changing writeable attribute of a database field

2009-09-16 Thread John Heenan
I have fixed my own problem. I had a spelling mistake; 'writable' does not have an extra e in it! Upon fixing the problem I needed to make a slight adjustment to the code to make it work properly. If there are no arguments to the user function then a redirection to user/login (even if logged in a

[web2py:31149] Re: Multiple jQuery functions, one HTML page

2009-09-16 Thread Matthew
It does. I also noticed that if I rearrange the order and put Suggest on top, it works, but Autocomplete does not. On Sep 15, 9:28 pm, "mr.freeze" wrote: > Yes, I believe it is a conflict between the plugins. Does this work?: > > >         $(function() { >              alert('one'); >        

[web2py:31150] Custom form builder appliance?

2009-09-16 Thread Tim McNamara
Hi there, Has anyone developed a form builder as an appliance? Something that will allow administrators to create forms and then build reports from the inputted data? Thanks for your time. Tim McNamara http://www.timmcnamara.co.nz http://twitter.com/timClicks --~--~-~--~~--

[web2py:31151] Re: saving uploads in a place other than applications/myapp/uploads

2009-09-16 Thread Richard
currently I save uploaded files to an external hard drive, and to avoid additional I/O operations I use uploadfield=False. Then I save the file with: Field('model', type='upload', uploadfield=False, requires=IS_NOT_EMPTY ()) ... gluon.fileutils.copystream(request.vars.model.file, open (model_file

[web2py:31152] Re: erros logged in with dmin mode

2009-09-16 Thread Richard
You can file bug reports at the Google Code page: http://code.google.com/p/web2py/issues/entry Maybe a link could be added there from the support page: http://web2py.com/examples/default/support Richard On Sep 17, 3:23 am, AndrewLoot wrote: > 1: how do i file a bug?? put a link to file a bug

[web2py:31153] Re: Url mapping

2009-09-16 Thread Richard
yeah URL() is the best way. Your previous problem was because "posts/show/" is a relative link from the current page, while "/posts/show/" is an absolute link to the root of the server. Richard On Sep 16, 7:47 pm, pistacchio wrote: > i did that with the URL tag. :-) > > On 16 Set, 10:57, pista

[web2py:31154] Re: Error in 2nd edition manual? Formatting improvement request.

2009-09-16 Thread Richard
https://mdp.cti.depaul.edu/wiki/default/page/7ae7f7c4-cd8d-4909-b67f-... ack that's an ugly URL. Has whoever is maintaining the wiki considered using the title of the page like Mediawiki? Richard On Sep 16, 11:10 pm, Anand Vaidya wrote: > Hi Anthon (& list members) > > I am updating this wiki

[web2py:31155] Re: Deployment on GAE (appadmin)

2009-09-16 Thread mdipierro
The current shell does not work on GAE for one reason. Shell requires to maintain its state between requests and its state is not serializable therefore it cannot be maintained on GAE. I will look more into this. On Sep 16, 5:40 pm, Chris S wrote: > Oh that's great, I didn't think about the fact

[web2py:31156] Re: response.flash

2009-09-16 Thread Iceberg
Or more precisely, there are some lines like these in the default layout.html: {{if response.flash:}} {{=response.flash}} {{pass}} By the way, I think this kind of problem should be double confirmed via the out-of-box "welcome" app, before being raised up. If the problem

[web2py:31158] Re: ticket tracking

2009-09-16 Thread mdipierro
My bad. the error_handler is only used when you search for an app that does not exist. To redirect from an error in an existing application (any app */ any error *) use the following routes.py routes_onerror = [('*/*', '/error/default/index')] On Sep 16, 3:18 pm, David Zejda wrote: > -BEGI

[web2py:31159] Re: ticket tracking

2009-09-16 Thread mdipierro
I believe the error is in the test not the routing code. On Sep 16, 5:46 pm, Jonathan Lundell wrote: > On Sep 16, 2009, at 1:18 PM, David Zejda wrote: > > > > > > > -BEGIN PGP SIGNED MESSAGE- > > Hash: SHA1 > > > Hello, > > > I returned to examine the problem more deeply, but now it beha

[web2py:31160] Re: Convert JS Data to XML

2009-09-16 Thread mdipierro
import gluon.contrib.simplejson as json from gluon.serializers import xml js_string="{'test':2}" # or other JS string xml_string=xml(json.loads(js_string)) On Sep 16, 8:57 pm, Markus wrote: > I dont want to use Web2Py. > > I want to compute in JS, based on a HTML form input and generate an >

[web2py:31161] Re: Problem with changing writeable attribute of a database field

2009-09-16 Thread mdipierro
no, but there is a retrieve_username. Mind that web2py knows how to handle a field called username. Have you tried just the following? ... Field('username', length=32, label="User Name") ... db.auth_user.username.requires = [IS_LENGTH(minsize=3, error_message="Three or more characters req

[web2py:31157] Re: Convert JS Data to XML

2009-09-16 Thread Markus
I dont want to use Web2Py. I want to compute in JS, based on a HTML form input and generate an XML document. Is it possible to convert JS to XML? On Sep 16, 6:49 pm, Wes James wrote: > On Wed, Sep 16, 2009 at 3:24 PM, Markus wrote: > > > Hello > > > Say i have a HTML form that takes in values

[web2py:31162] Re: Deployment on GAE (appadmin)

2009-09-16 Thread Chris S
Cool thanks. Is there a workaround you would suggest for now for people like me that are testing/learning with these database calls? It's very handy to be able to test and see what type of object(s) a call returns. Though I guess for now I can output my results on a HTML page and see what's in i

[web2py:31163] Re: Custom form builder appliance?

2009-09-16 Thread mdipierro
No but it would be really nice. If done right the same code would be use to build tables (models) and forms. Massimo On Sep 16, 7:24 pm, Tim McNamara wrote: > Hi there, > Has anyone developed a form builder as an appliance? Something that will > allow administrators to create forms and then bu

[web2py:31164] Re: Custom form builder appliance?

2009-09-16 Thread Iceberg
Do you mean something like this? http://web2py.appspot.com/survey/survey/index On Sep17, 8:24am, Tim McNamara wrote: > Hi there, > Has anyone developed a form builder as an appliance? Something that will > allow administrators to create forms and then build reports from the > inputted data? > >

[web2py:31165] Re: Custom form builder appliance?

2009-09-16 Thread Tim McNamara
On Sep 17, 2:13 pm, Iceberg wrote: > Do you mean something like this? Probably. Email notifications weren't working when I tried 2m ago. > On Sep17, 8:24am, Tim McNamara wrote: > > Hi there, > > Has anyone developed a form builder as an appliance? Something that will > > allow administrators t

[web2py:31166] Re: saving uploads in a place other than applications/myapp/uploads

2009-09-16 Thread mdipierro
Ok. try this: db.table.field.uploadfolder=od.path.join(request.folder,"uploads/ somewhere") reuires trunk. folder somewhere must exist. On Sep 16, 7:24 pm, Richard wrote: > currently I save uploaded files to an external hard drive, and to > avoid additional I/O operations I use uploadfield=Fal

[web2py:31167] Re: Custom form builder appliance?

2009-09-16 Thread mdipierro
I think we can do better than that. Like this for example: http://www.phpform.org/ On Sep 16, 9:13 pm, Iceberg wrote: > Do you mean something like this? > > http://web2py.appspot.com/survey/survey/index > > On Sep17, 8:24am, Tim McNamara wrote: > > > Hi there, > > Has anyone developed a form b

[web2py:31168] Re: Deployment on GAE (appadmin)

2009-09-16 Thread mdipierro
please check trunk. now appadmin should work on GAE out of the box. It was a bug that it did not. On Sep 16, 9:08 pm, Chris S wrote: > Cool thanks.  Is there a workaround you would suggest for now for > people like me that are testing/learning with these database calls? > It's very handy to be a

[web2py:31169] Re: Custom form builder appliance?

2009-09-16 Thread Andrew Luetgers
i would love to help on this project i have been planning on a similar system that includes validation rules and provides web services and an api automatically. This could be a really powerful and simple way to develop apps that others can use and mash up. On Wed, Sep 16, 2009 at 9:39 PM, mdipier

[web2py:31170] Re: saving uploads in a place other than applications/myapp/uploads

2009-09-16 Thread weheh
Very cool, Massimo. Thank you for your quick response! But ... - Shouldn't that be os.path.join? - Should I interpret your message as meaning that this will also work with the standard download function -- the one that does a "return response.download(request,db)"? - Can the db.table.field.upload

[web2py:31171] Re: Error in 2nd edition manual? Formatting improvement request.

2009-09-16 Thread Anand Vaidya
On Sep 17, 8:33 am, Richard wrote: > https://mdp.cti.depaul.edu/wiki/default/page/7ae7f7c4-cd8d-4909-b67f-... > > ack that's an ugly URL. Has whoever is maintaining the wiki considered > using the title of the page like Mediawiki? The URL is not user friendly. The wiki currently does not supp

[web2py:31172] Re: Custom form builder appliance?

2009-09-16 Thread mdipierro
lats' say we have a metaform=SQLFORM.factory(...)) that contains variables to describe a field in another form. We need a web2py app that build a list of metaforms and allows the user to append items to the list, rearrange them, fill the forms in the list. We could use list of metaforms to build

[web2py:31173] Re: saving uploads in a place other than applications/myapp/uploads

2009-09-16 Thread mdipierro
On Sep 16, 10:26 pm, weheh wrote: > Very cool, Massimo. Thank you for your quick response! But ... > > - Shouldn't that be os.path.join? yes, sorry for the typo > - Should I interpret your message as meaning that this will also work > with the standard download function -- the one that does a

[web2py:31174] Re: Error in 2nd edition manual? Formatting improvement request.

2009-09-16 Thread mdipierro
We could fix this soon by porting this wiki on t4 when done. On Sep 16, 10:40 pm, Anand Vaidya wrote: > On Sep 17, 8:33 am, Richard wrote: > > >https://mdp.cti.depaul.edu/wiki/default/page/7ae7f7c4-cd8d-4909-b67f-... > > > ack that's an ugly URL. Has whoever is maintaining the wiki considered >

[web2py:31175] Re: Error creating app in trunk

2009-09-16 Thread mr.freeze
Works now. On Sep 16, 4:37 pm, mdipierro wrote: > Sorry. Please download and try again > > On Sep 16, 4:00 pm, "mr.freeze" wrote: > > > > > Oh, I am using Windows and Python 2.5 > > > On Sep 16, 3:48 pm, "mr.freeze" wrote: > > > > Sorry if you're in the midst of changing something.  I just upd

[web2py:31176] Re: saving uploads in a place other than applications/myapp/uploads

2009-09-16 Thread weheh
Thanks again for doing this. I'll have to grab the latest trunk and check it out. Will let you know. One other thing, please. I emailed you an example where the input is a field of type text. Once uploaded, the form.vars.text_in field is written to a file in the "somewhere" folder. The filename o

[web2py:31177] pre-filling non writable form value

2009-09-16 Thread Alastair Medford
What I'm trying to do is preset the value of a non writable field in a form, such as a time field. Something to the effect of: form = SQLFORM(db.table) form.vars.time = getCurrentTime() #this field is set to writable false if form.accepts(...): ... The desired rendering would be that the fie

[web2py:31178] class MultiPart_Mail should import Settings?

2009-09-16 Thread notcourage
I'm a web2py rookie. I copied the class MultiPart_Mail to my app's modules directory. I couldn't call it from my controller until I added: from gluon.storage import Settings to the top of the class. If I'm correct, this should be added to the wiki. Better still, add this class to gluon.tools & pro

[web2py:31179] Re: Custom form builder appliance?

2009-09-16 Thread Iceberg
It really looks cool. If the generated form code can have client-side validation, then it will be perfect. On Sep17, 10:39am, mdipierro wrote: > I think we can do better than that. Like this for > example:http://www.phpform.org/ > > On Sep 16, 9:13 pm, Iceberg wrote: > > > > > Do you mean some

[web2py:31180] Re: pre-filling non writable form value

2009-09-16 Thread Iceberg
Try: db.table.time.default=getCurrentTime() db.table.time.writable=False form = SQLFORM(db.table) if form.accepts(...) On Sep17, 12:33pm, Alastair Medford wrote: > What I'm trying to do is preset the value of a non writable field in a > form, such as a time field. Something to the effect of: >

[web2py:/] Re: Authentication using Facebook / Google / Myspace ...

2009-09-16 Thread Graham Charles
On Sep 1, 10:36 pm, mdipierro wrote: > We currently provide out of the box authentication using google(when > running on GAE), gmail, twitter, ldap, basic auth. I'm curious about how to implement authentication using Google, and specifically Google Apps for Domains. When I deploy web2py to appsp

[web2py:31182] Re: ticket tracking

2009-09-16 Thread David Zejda
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thanks, this way it works :) D. mdipierro napsal(a): > My bad. > > the error_handler is only used when you search for an app that does > not exist. > To redirect from an error in an existing application (any app */ any > error *) use the following

[web2py:31183] Re: saving uploads in a place other than applications/myapp/uploads

2009-09-16 Thread Richard
thanks for exposing that - now I can simplify some existing code. On Sep 17, 12:29 pm, mdipierro wrote: > Ok. try this: > > db.table.field.uploadfolder=od.path.join(request.folder,"uploads/ > somewhere") > > reuires trunk. folder somewhere must exist. > > On Sep 16, 7:24 pm, Richard wrote: > >

[web2py:31184] Re: pre-filling non writable form value

2009-09-16 Thread Alastair Medford
No dice. Neither of the two lines had any effect (this is with them in the controller). The field was blank and was still writable. Also, if this approach worked, or if I changed the default value in the model, wouldn't this be redefining the table definition every time the form is brought up? If

[web2py:31185] Re: response.flash

2009-09-16 Thread Arvind
Hello, My apologies... :-) This worked like a charm. Just that, after searching for over 2 hrs , you tend to get brain dead. and thats when i turn to the mailing lists's help. Please thanks so much for being patient with me. So many times, i have nearly given up on web2py, only to have had such