[web2py:10978] newbie question about Google Application Engine

2008-11-03 Thread dme69
Hello all, Sorry again ... As I'm a real beginner with Python, Web2py and GAE. My question is I don't understand how to export my web2py application to GAE. I know that I have to make (or verify) some modifications on database (for example) in my code ... But how to export the application ? Does

[web2py:10979] Re: newbie question about Google Application Engine

2008-11-03 Thread Daniel Contag
You can deploy to GAE using the standard GAE-procedure, but note, that you will need the source distribution of web2py and to change the app name from web2py to yourapp.appspot.com Daniel On Mon, Nov 3, 2008 at 09:35, dme69 [EMAIL PROTECTED] wrote: Hello all, Sorry again ... As I'm a real

[web2py:10982] Re: newbie question about Google Application Engine

2008-11-03 Thread Jonathan Benn
Hi, On Nov 3, 12:14 pm, David Marko [EMAIL PROTECTED] wrote: Does it mean, that I  export the entire web2py with all applications, so under one 'yourapp.appspot.com ' account I can run many web2py apps? Yes, that's right. Basically, from the perspective of Google App Engine, the entire

[web2py:10992] Re: piccolo problemino con il db

2008-11-03 Thread mdipierro
Cambia l'ultima linea da db.mezzi.tipom.requires=IS_IN_DB(db,'tipom.id','tipom.tipo') a db.mezzi.mezzo.requires=IS_IN_DB(db,'tipom.id','tipom.tipo') altri suggerimenti: SQLField('alimentazione','string') db.mezzi.associazione.requires=IS_IN_DB(db,'associazioni.id','% (nome)s')

[web2py:10995] web2py_manual_cut.pdf

2008-11-03 Thread cevdetural
• I am trying to see the result of the sample “images” in “web2py_manual_cut.pdf” . After copy and paste db.py from the “web2py_manual_cut.pdf” , db.images and db.comments are perfectly existing and working under database adminstration. • But after writing(copy and paste) default.py an error

[web2py:10987] Re: target=_blank

2008-11-03 Thread José Deodoro de Oliveira Filho
Hi, Should be A(..., *_*target = _blank) (you're missing an underscore in _target) Deodoro Filho On Mon, Nov 3, 2008 at 10:28 AM, annet [EMAIL PROTECTED] wrote: In one of my views I have got a table in which one of the td/td element reads like:

[web2py:10999] Error Handling Reloaded

2008-11-03 Thread Timothy Farrell
Back to the ever-present issue of (better) error-handling. This time, I've got code! Anyway, to catch you guys up, we last left this at Massimo liking the idea of using @onerror decorators (http://mdp.cti.depaul.edu/AlterEgo/default/show/75) to trap errors. His reasoning is his own, but I

[web2py:10991] Re: Possible bug in IS_URL

2008-11-03 Thread mdipierro
bug. will be fixed. On Nov 3, 1:29 am, Jonathan Benn [EMAIL PROTECTED] wrote: Hi all, I've noticed a possible bug with the IS_URL validator (web2py v.1.47): The following is accepted as we would expect: http://localhost However, the following is not accepted: http://localhost:8080

[web2py:11002] Re: SQLFORM

2008-11-03 Thread mdipierro
Let me look into that. You may be right. I never tried to do that. On Nov 3, 10:05 am, José Deodoro de Oliveira Filho [EMAIL PROTECTED] wrote: Hi, I wrote some code that wraps up a SQLFORM into a DIV such as: def layout_form(item): f = SQLFORM(db.whatever, item) return DIV(f,

[web2py:11004] Re: Error Handling Reloaded

2008-11-03 Thread Timothy Farrell
Yes, that should be a simple change. Any other comments? Anyone? mdipierro wrote: Thanks Tim, this is very close to what I had in mind so I think this will go in. But let me ask you for one change. Instead of error_destinations = { '400' : '/init/error/invalidPath', 'default'

[web2py:11005] Re: web2py_manual_cut.pdf

2008-11-03 Thread cevdetural
I received your answer just in 5 minutes. Now, I belive w2py support is realy efficent Your codes solved the problem Thank you very much. Now I am going to order the new manual. But your speed in support is realy wounderfull Thank you again for everything.. On 3 Kasım, 17:11, mdipierro

[web2py:11006] Re: web2py_manual_cut.pdf

2008-11-03 Thread mdipierro
Thanks. I try to answer fast but there are many knowledgeable people here who often beat me! Massimo On Nov 3, 10:25 am, cevdetural [EMAIL PROTECTED] wrote: I received your answer just in 5 minutes. Now, I belive w2py support is realy efficent Your codes solved the problem Thank you very

[web2py:11008] Re: SQLFORM

2008-11-03 Thread mdipierro
There is a local problem here. Right now you can do form1=SQLFORM(db.table1) form2=SQLFORM(db.table2) form1.accepts(request.vars,formname='form1') form2.accepts(request.vars,formname='form2') div=DIV(form1,form2) return dict(div=div) Now you want to do form1=SQLFORM(db.table1)

[web2py:11007] Re: autoselect admin password box

2008-11-03 Thread Wes James
On Sat, Nov 1, 2008 at 10:18 AM, mdipierro [EMAIL PROTECTED] wrote: Exellent point but there is a much easier solution. script $(document).ready(function() { $ (input:visible:enabled:first).focus(); }); /script This will always focus the first visible field of the first form. I now

[web2py:11003] Re: Possible bug in IS_URL

2008-11-03 Thread mdipierro
fixed in trunk. On Nov 3, 8:01 am, mdipierro [EMAIL PROTECTED] wrote: bug. will be fixed. On Nov 3, 1:29 am, Jonathan Benn [EMAIL PROTECTED] wrote: Hi all, I've noticed a possible bug with the IS_URL validator (web2py v.1.47): The following is accepted as we would expect:

[web2py:11012] Re: Error Handling Reloaded

2008-11-03 Thread mdipierro
If this is implemented as a list I think the order in the list gives a precedence. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py Web Framework group. To post to this group, send email to

[web2py:11013] Re: Special Characters passed from controller to view

2008-11-03 Thread morningovermidnight
its always the little things that get you...the details...just a little semicolon! I really should have caught that... oh well, that's late-night coding for ya'. Thanks again! On Nov 3, 12:24 am, mdipierro [EMAIL PROTECTED] wrote: check he source. web2py is not escaping it. The problem is

[web2py:11015] Re: target=_blank

2008-11-03 Thread annet
Timothy, Thanks for your reply, but what about opening a new window when clicking an a/a element. Annet --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py Web Framework group. To post to this group, send email

[web2py:11011] Re: Error Handling Reloaded

2008-11-03 Thread Timothy Farrell
Ok, this brings up a question though... Which takes precedence, app defaults or error code defaults? Let's say I have: routes_onerror = [ ('init/400','/init/error/invalidPath1'), ('*/500','/init/error/invalidPath2'), ('init/*','/init/error/invalidPath3'),

[web2py:10988] Re: newbie question about Google Application Engine

2008-11-03 Thread dme69
I know this is not cool but it will be easier for me to explain my case ... So I will continue in french (for a short time) ... Jonathan, Si je développe mon application dans Web2py (que je trouve plutôt sympa pour des choses comme les formulaires par exemple), qu'est-ce que je dois faire pour

[web2py:11014] Re: if..elif..else in a view

2008-11-03 Thread annet
Massimo, Thanks, your reply solved my problem. Annet. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py Web Framework group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from

[web2py:11017] build osx web2py

2008-11-03 Thread Wes James
When I do make app with svn'd web2py it tries to ssh to a location - kind of odd -wes --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py Web Framework group. To post to this group, send email to

[web2py:11019] Re: build osx web2py

2008-11-03 Thread mdipierro
Could you explain better? web2py should not try to ssh anybody. Are you saying the osx version of web2py does that? What do you mean by svn'd? Massimo On Nov 3, 2:25 pm, Wes James [EMAIL PROTECTED] wrote: When I do make app with svn'd web2py it tries to ssh to a location - kind of odd

[web2py:11020] Re: Table relationships - Quick question

2008-11-03 Thread mdipierro
There is this already http://mdp.cti.depaul.edu/AlterEgo/default/show/101 I could make it more detailed if you think it is necessary. Massimo On Nov 3, 2:50 pm, JorgeRpo [EMAIL PROTECTED] wrote: good answer. i had the same doubt too. I just had an idea. Can you write a tutorial on how to

[web2py:11021] Re: build osx web2py

2008-11-03 Thread Wes James
On Mon, Nov 3, 2008 at 1:59 PM, mdipierro [EMAIL PROTECTED] wrote: Could you explain better? web2py should not try to ssh anybody. Are you saying the osx version of web2py does that? What do you mean by svn'd? Massimo I downloaded web2py with svn (svn'd = download with svn) i then do

[web2py:11022] cookbook

2008-11-03 Thread Wes James
When I click on a recipe to show it from the cookbook example I've followed from cookbook.pdf, I get: Traceback (most recent call last): File gluon/restricted.pyc, line 62, in restricted File /Users/xmac/0scripts/dist/web2py.app/Contents/Resources/applications/cookbook/controllers/test.py,

[web2py:11023] Re: Possible bug in IS_URL

2008-11-03 Thread pigmej
Still bug. On Nov 3, 5:15 pm, mdipierro [EMAIL PROTECTED] wrote: fixed in trunk. On Nov 3, 8:01 am, mdipierro [EMAIL PROTECTED] wrote: bug. will be fixed. On Nov 3, 1:29 am, Jonathan Benn [EMAIL PROTECTED] wrote: Hi all, I've noticed a possible bug with theIS_URLvalidator

[web2py:11025] Re: cookbook

2008-11-03 Thread Wes James
On Mon, Nov 3, 2008 at 2:50 PM, Wes James [EMAIL PROTECTED] wrote: When I click on a recipe to show it from the cookbook example I've followed from cookbook.pdf, I get: Traceback (most recent call last): File gluon/restricted.pyc, line 62, in restricted File nevermind - found a typo in

[web2py:11026] web2py will play an important role in Computational Finance?

2008-11-03 Thread BearXu
It's interesting that the creator of Web2py is also the head of the Computational Finance in DePaul. Will we see some apps for Computational Finance in Web2py like option pricing or other statistics tools or even a derivative market emulation?(My imagination) I am always suspicious of the

[web2py:11027] Re: build osx web2py

2008-11-03 Thread mdipierro
You do not need to run make app since the osx app is already posted on the web page. If you really want to make your own app, comment that line from the Makefile. That is what I use to publish the app on the server. Sorry for the confusion. Massimo On Nov 3, 3:47 pm, Wes James [EMAIL

[web2py:11029] Re: build osx web2py

2008-11-03 Thread Wes James
On Mon, Nov 3, 2008 at 3:25 PM, mdipierro [EMAIL PROTECTED] wrote: You do not need to run make app since the osx app is already posted on the web page. But I wanted to get your go-to-first-field.focus() update thx, -wj --~--~-~--~~~---~--~~ You received

[web2py:11031] Re: web2py will play an important role in Computational Finance?

2008-11-03 Thread Daniel Contag
Interesting... :) On Mon, Nov 3, 2008 at 23:26, mdipierro [EMAIL PROTECTED] wrote: You reading my mind. I am going to let some of the students on this list to answer, Their deadline is next week. Massimo --~--~-~--~~~---~--~~ You received this message

[web2py:11032] Re: build osx web2py

2008-11-03 Thread Daniel Contag
The ssh-command would just copy your local file to the remote server. So you can't 'get' anything from it. (scp = secure shell copy) Daniel On Mon, Nov 3, 2008 at 23:39, Wes James [EMAIL PROTECTED] wrote: On Mon, Nov 3, 2008 at 3:25 PM, mdipierro [EMAIL PROTECTED] wrote: You do not need to

[web2py:11033] Re: import on sqlbuilder

2008-11-03 Thread mdipierro
The source code is at http://mdp.cti.depaul.edu/examples/static/sqldesigner.tar but it is only clientside so you can just download the javascript. It is still alpha. Massimo On Nov 3, 4:40 pm, Wes James [EMAIL PROTECTED] wrote: How do I import in to the sqlbuilder here:

[web2py:11034] Re: import on sqlbuilder

2008-11-03 Thread Wes James
On Mon, Nov 3, 2008 at 3:55 PM, mdipierro [EMAIL PROTECTED] wrote: The source code is at http://mdp.cti.depaul.edu/examples/static/sqldesigner.tar but it is only clientside so you can just download the javascript. It is still alpha. snip Ok - i'll look at it thx. -wj

[web2py:11035] Validators in db schema mapping to db model

2008-11-03 Thread michal niklas
Hello, I started writing tool to create model from existing PostgreSQL database. At first I created cookbook db via web2py and now I translate it back from PostgreSQL schema to web2py model. I have mapped tables and columns and even foreign keys if they point to 'id' column of other table. But

[web2py:11039] Re: web2py will play an important role in Computational Finance?

2008-11-03 Thread BearXu
To Tommy Zhu:This system is interesting. But I have some questions about the project. 1)Are the datas about the stock price as same as real Nasdaq or Dowjones.My opinion is that NO is better because if the datas are the same as the Nasdaq, the game players can not discover their impact on the

[web2py:11041] Re: Validators in db schema mapping to db model

2008-11-03 Thread mdipierro
Yes the validator are applied to forms only but you can also do SQLField('name',notnull=True,unique=True) and if web2py is creating the table, the constraints will be enforced by the db. Massimo On Nov 3, 4:59 pm, michal niklas [EMAIL PROTECTED] wrote: Hello, I started writing tool to

[web2py:11047] Re: code completion data source

2008-11-03 Thread mdipierro
The creator of Amy was (is?) on this list. Long ago he sent me this file: http://groups.google.com/group/web2py/web/eamy_offline.zip It almost worked. Here i his email: --- begine quote --- Here it goes, the interesting stuff for you is in the eamy/eamy.js file starting at line 8060. right

[web2py:11049] Re: newbie question about Google Application Engine

2008-11-03 Thread Jonathan Benn
Hi David, On Nov 3, 12:14 pm, David Marko [EMAIL PROTECTED] wrote: Does it mean, that I  export the entire web2py with all applications, so under one 'yourapp.appspot.com ' account I can run many web2py apps? Yes, that is correct. However, as Massimo points out, in web2py/ app.yaml you can

[web2py:11052] T2 Status, location

2008-11-03 Thread Daniel Contag
Hi, a couple of T2 questions: Is this the latest code: http://mdp.cti.depaul.edu/examples/static/web2py.app.plugin_t2.tar and is there a difference to bzr branch lp:~mdipierro/t2/main Thanks! Daniel --~--~-~--~~~---~--~~ You received this message because you

[web2py:11057] About patches

2008-11-03 Thread mdipierro
From now on all patches longer than 3 lines MUST be posted to launchpad otherwise I cannot keep track of them. Thanks. Massimo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py Web Framework group. To post to

[web2py:11055] Re: newbie question about Google Application Engine

2008-11-03 Thread Jonathan Benn
On Nov 4, 8:50 am, mdipierro [EMAIL PROTECTED] wrote: Jonathan, excellent tutorial. Would you create an alterego page about it? I will post it. I'd be happy to. First I'd like to see what feedback I get though, so that the AlterEgo version is correct. What formatting system do you use for

[web2py:11056] Re: Possible bug in IS_URL

2008-11-03 Thread mdipierro
LOL the problem is not writing the regex, it is figuring out what should be validated and what not. The current version was the result of some negotiation with users. Send me a patch and if no objections it will get in. Massimo On Nov 4, 12:49 am, Jonathan Benn [EMAIL PROTECTED] wrote: Hi

[web2py:11050] Re: newbie question about Google Application Engine

2008-11-03 Thread mdipierro
Jonathan, excellent tutorial. Would you create an alterego page about it? I will post it. Massimo On Nov 3, 11:08 pm, Jonathan Benn [EMAIL PROTECTED] wrote: Hi Dominique, Your English is just fine. :) Ton français est certainement meilleur (et meilleur que le mien), mais fait toi rien.