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

2009-09-17 Thread Alastair Medford
Ah, so it doesn't actually effect the table definition in the database, just the rendering. This is what I was wondering, and what I wanted. Since that is the case, then I no longer have any more concerns. Thanks for feedback and explanations. On Sep 17, 9:08 pm, Iceberg wrote: > I also had a ha

[web2py:31250] Re: Many 2 Many but want to see a feild other than id....

2009-09-17 Thread encompass
GOT IT. I know it wouldn't be that hard! I don't know what they are called or even if it is actually documented. but on page 171 of the manual I found the line... db.dog.owner.requires = IS_IN_DB(db, 'person.id', '%(name)s') The last part is exactly what I needed to do to my IS_IN_DB feild require

[web2py:31249] Many 2 Many but want to see a feild other than id....

2009-09-17 Thread Jason Brower
I have my relations working properly and am able to work with them, but I can't seem to easily make a form with .name instead of .id. What is the best way to do that? So when I have an input form for by 3 table that rlates the two others I get the ID. I know I want them, but how do I get it so i

[web2py:/] Re: help with web server

2009-09-17 Thread Graham Dumpleton
On Sep 18, 2:04 pm, mdipierro wrote: > Here are some "hello world" benchmarks not using web2py by the > barebone wsgi hello world: > > benchmark web2pySWGIServer > > > massimo-di-pierros-macbook:gluon mdipierro$ ab -n 1http://127.0.0.1:8002/ > Concurrency Level:      1 > Ti

[web2py:31247] Re: Default application with virtualhost

2009-09-17 Thread Jose
On 14 sep, 15:22, mdipierro wrote: > in routes.py > > routes_in=('/myapplication/(?P.*)','/\g'),) > routes_out=('/(?P.*)','/myapplication/\g'),) > Massimo, I tried to it [1], but does not work. The .htaccess I put it in webapps/apachewsgi/htdocs/.htaccess Is anything missing? Jose [1] http

[web2py:31246] Re: help with web server

2009-09-17 Thread mdipierro
Here are some "hello world" benchmarks not using web2py by the barebone wsgi hello world: benchmark web2pySWGIServer massimo-di-pierros-macbook:gluon mdipierro$ ab -n 1 http://127.0.0.1:8002/ Concurrency Level: 1 Time taken for tests: 5.609 seconds Complete requests:

[web2py:31245] Re: gae: gluon undefined

2009-09-17 Thread notcourage
I can send email after deploying to gae but not in the dev env. --~--~-~--~~~---~--~~ 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 unsubscribe from th

[web2py:31244] Re: help with web server

2009-09-17 Thread Massimo Di Pierro
Please ignore my previous email. I fixed it and it seems to works great (attached) It is very much modeled on wsgiserver. It fits in 262 lines of code, uses regex and it is a little bit faster than wsgiserver but, it does not perform all checks that wsgiserver performs (do we need them?). I

[web2py:31243] Re: gae: gluon undefined

2009-09-17 Thread notcourage
Seems to me the default db.py oughta have: if request.env.web2py_runtime_gae: mail.settings.server='gae' else: ... Will expired session records ever be deleted? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[web2py:31242] Re: gae: gluon undefined

2009-09-17 Thread notcourage
I installed 2.5.4 & it works so thank you. Next step is friendlier URLs than: http://localhost:8080/init/default/user/register --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this gro

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

2009-09-17 Thread Iceberg
I also had a hard time on this when I just began learning web2py. Then I came up with some understanding. The bottom line is that, redefining a field's default value, (even changing its default widget, changing its represent-ing), can be considered as changing appearance, but NOT redefining a tab

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

2009-09-17 Thread Tim McNamara
On Sep 17, 11:05 pm, emaynard wrote: > You're talking a pForm or Wufoo type of thing? > > http://www.appnitro.com/machform/featurest > > I was thinking this type of thing would make a great school 'project' > for a web dev class I am currently taking, but I would be wiling to > assist on your pro

[web2py:/] help with web server

2009-09-17 Thread Massimo Di Pierro
in an attempt to learn wsgiserver better I tried recoding it. This is what I got so far. It works with the included "hello world" wsgi application. This is not a priority but if we can fix the remaining bugs it could open the door to further improvements. To run it stand alone try: python w

[web2py:31238] Re: Using DAL outside of Web2py?

2009-09-17 Thread Richard
that snippet duplicates the models, which could lead to maintenance problems. You could use your existing model with: import os os.chdir('/path/to/web2py/') from gluon.shell import env globals().update(env('you_app_name', import_models=True)) On Sep 18, 8:33 am, Jose wrote: > On 17 sep, 21:44

[web2py:31237] Re: web2py 1.67.1 is OUT

2009-09-17 Thread Richard
are not 512 -> are now 512 On Sep 18, 4:40 am, mdipierro wrote: > Please give it a try. and report any bug. > > The major changes are: > 1) lots of small bug fixed > 2) for upload fields you can choose the Field(...,uploadfolder="...") > 3) includes latest wsgiserver and should solve problems w

[web2py:31236] Re: export database timeout error

2009-09-17 Thread Richard
no - from command line. On Sep 16, 2:37 pm, mdipierro wrote: > You are not talking about the web based shell, are you? > > On Sep 15, 8:34 pm, Richard wrote: > > > it's strange then that I received the timeout error in the shell. Is > > this a bug, or is there another possible cause? > > > On

[web2py:31235] Re: gae: gluon undefined

2009-09-17 Thread Robin B
Install Python 2.5 (GAE requires 2.5) and try again. Robin On Sep 17, 5:14 pm, notcourage wrote: > I'm using Vista. > > create c:\swe\notcourage-guestbook folder > extract webpy here (don't run web2py.py) > edit app.yaml > create applications folder here > create init folder here > copy my app'

[web2py:31234] multi combo

2009-09-17 Thread __Kyo__
here is the code: --- ---Model db = SQLDB("sqlite://db.db") db.define_table("pais", SQLField("nPais", "string", notnull=True, default=None, label="Pais")) db.define_table("provincia", SQLField("idPais", db.pais, la

[web2py:31232] Re: Using DAL outside of Web2py?

2009-09-17 Thread Jose
On 17 sep, 21:44, Bottiger wrote: > I need to take snapshots of a websites. This will take a couple > seconds so I need to run it in a separate process from Web2py. > > So I am wondering if it is possible to use the DAL inside that > separate python program so I can update the DB when the snaps

[web2py:31233] Re: Admin page that works in GAE

2009-09-17 Thread mdipierro
was released today On Sep 17, 4:18 am, Jon Romero wrote: > I think that appadmin on GAE is broken (I get an invalid request) and > I saw on this thread (http://groups.google.com/group/web2py/ > browse_thread/thread/a8307a3619fbbd00#) that it is fixed in the trunk. > Any ideas about when it will

[web2py:31231] gae: gluon undefined

2009-09-17 Thread notcourage
I'm using Vista. create c:\swe\notcourage-guestbook folder extract webpy here (don't run web2py.py) edit app.yaml create applications folder here create init folder here copy my app's files here c:\swe\notcourage-guestbook\ app.yaml gluon applications init I'm using the gae

[web2py:31230] Re: Form with Many To Many relationship?

2009-09-17 Thread Thadeus Burgess
Try my models in your own code, I have the multiple=True specified, which technically should allow for a study to have multiple rooms right? However when the form is submitted, it throws an TypeError exception, because it seems to be returning a list when it seems to be expecting and ID? But a lis

[web2py:31229] Re: Form with Many To Many relationship?

2009-09-17 Thread Yarko Tymciurak
On Thu, Sep 17, 2009 at 10:55 AM, Thadeus Burgess wrote: > I have tried this many different ways and have yet to be successful. > > Making a Many-to-many query is easy, and displaying the data is easy, but > how do I use SQLFORM with a M-M relationship!? > Not sure what you are asking - if you ha

[web2py:31228] Using DAL outside of Web2py?

2009-09-17 Thread Bottiger
I need to take snapshots of a websites. This will take a couple seconds so I need to run it in a separate process from Web2py. So I am wondering if it is possible to use the DAL inside that separate python program so I can update the DB when the snapshot is complete. --~--~-~--~~-

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

2009-09-17 Thread Chris S
I got the trunk, but I'm out of town next week (or most of it). My next revision I'll use the version in trunk to see if Appadmin works out of the box now. As for the shell I've thought of a great alternative. Since most development should be done on the local host, is it possible to enable the

[web2py:31226] Re: FORM, SQLForm - what should I use?

2009-09-17 Thread Yarko Tymciurak
take a look at examples 33, 34 (and probably others) at http://www.web2py.com/examples/default/examples Also, look at IS_IN_SET() description in the manual, and examples there (for example, P.191 --- the gender selector). On Thu, Sep 17, 2009 at 5:06 AM, mika wrote: > > I have the following t

[web2py:31225] Re: Admin page that works in GAE

2009-09-17 Thread Yarko Tymciurak
On Thu, Sep 17, 2009 at 4:18 AM, Jon Romero wrote: > > I think that appadmin on GAE is broken (I get an invalid request) and > I saw on this thread (http://groups.google.com/group/web2py/ > browse_thread/thread/a8307a3619fbbd00#

[web2py:31224] web2py on haiku ( new BE OS )

2009-09-17 Thread Wes James
I'm just trying web2py latest from svn. It works fine on snoLeopard, but in haiku when I start web2py from cli and it tries to go to the welcome page ( http://127.0.0.1:8000/welcome/default/index ) then I get this error: Traceback (most recent call last): File "/boot/home/Desktop/web2py/gluon

[web2py:31223] web2py 1.67.1 is OUT

2009-09-17 Thread mdipierro
Please give it a try. and report any bug. The major changes are: 1) lots of small bug fixed 2) for upload fields you can choose the Field(...,uploadfolder="...") 3) includes latest wsgiserver and should solve problems with trucated downloads 4) default string fields are not 512 bytes. This may tr

[web2py:31222] Re: Can't get the form to validate...

2009-09-17 Thread Thadeus Burgess
Yarko, from a post I yesterday that nobody responded to I am wanting a form to display Studies that use Rooms. Many studies can be ran in a room, and a room can belong to many studies. How would you go about using SQLFORM on a database object that has a many to many relationship. Using the m

[web2py:31221] Re: Invalid request on Dream Host

2009-09-17 Thread Thadeus Burgess
I am using WSGI right now for my web2py, and its not as fast as say... PHP, but its muuuch faster than even django on fastcgi. -Thadeus On Thu, Sep 17, 2009 at 11:29 AM, Ian Reinhart Geiser wrote: > e wsgi stuff a whirl. I am currently using cgi, and it works > just fine. I just figure wsgi

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

2009-09-17 Thread Alastair Medford
Found my mistake. I put the lines after form = SQLFORM(..) instead of before. However, this method still leaves a bad taste in my mouth. Since every request is also sending a table redifinition, this seems like un-needed overhead. This also has the problem of what if the given database does not al

[web2py:31219] Re: Can't get the form to validate...

2009-09-17 Thread Jason Brower
It's ok, I think I got it. Sorry about that. Jason On Thu, 2009-09-17 at 12:02 -0500, Yarko Tymciurak wrote: > "...problem with many-to-many in form..." by itself doesn't tell what > problem you think you are having... a more detailed description of > what you want & how you're trying to accomp

[web2py:31218] Re: Can't get the form to validate...

2009-09-17 Thread Yarko Tymciurak
"...problem with many-to-many in form..." by itself doesn't tell what problem you think you are having... a more detailed description of what you want & how you're trying to accomplish it may help... On 9/17/09, Thadeus Burgess wrote: > Yes I am having a problem with the many-to-many relations

[web2py:31217] Re: Invalid request on Dream Host

2009-09-17 Thread Ian Reinhart Geiser
Ill give wsgi stuff a whirl. I am currently using cgi, and it works just fine. I just figure wsgi or fcgi will be better for performance. On Sep 17, 11:58 am, Thadeus Burgess wrote: > I would suggest trying WSGI installation. > > also SSH into your server and try running wsgiserver.py from the

[web2py:31216] Re: Can't get the form to validate...

2009-09-17 Thread Thadeus Burgess
Yes I am having a problem with the many-to-many relationship in a form as well. I would love to know how to solve this.! -Thadeus On Thu, Sep 17, 2009 at 7:17 AM, encompass wrote: > CT kind of works. It give the drop downlist. But there > is no content in it. How do I populate it with th

[web2py:31215] Re: Invalid request on Dream Host

2009-09-17 Thread Thadeus Burgess
I would suggest trying WSGI installation. also SSH into your server and try running wsgiserver.py from the command line to debug :) Take a look at these articles: The first one is about WSGI on dreamhost, and the second one has web2py instructions about it near the end of the page. The web2pysl

[web2py:31214] Re: Form with Many To Many relationship?

2009-09-17 Thread Thadeus Burgess
I have tried this many different ways and have yet to be successful. Making a Many-to-many query is easy, and displaying the data is easy, but how do I use SQLFORM with a M-M relationship!? -Thadeus On Tue, Sep 15, 2009 at 12:08 PM, Thadeus Burgess wrote: > How would you go about using SQLFO

[web2py:31213] Invalid request on Dream Host

2009-09-17 Thread Ian Reinhart Geiser
Greetings, I am using http://wiki.dreamhost.com/Web2py to setup web2py on my account. The problem is that every time I try to access a URL i get an "Invalid Request" error on the web page. There are no other errors in the apache. How might I debug this? I _think_ the problem is that it cannot

[web2py:31212] Web2py is a good choice for this project?

2009-09-17 Thread Pha
I will start a new project with the following specifications: Server: Windows Server 2003 Web Server: IIS 6.0 Database: SQL Server 2000 It will be accessed via http: for internal network (Intranet) and https: in the external network (Internet). Authentication should be basic by browse, only tha

[web2py:31211] Re: class MultiPart_Mail should import Settings?

2009-09-17 Thread notcourage
https://mdp.cti.depaul.edu/wiki/default/page/98b7448f-059a-47f7-82da-dce4728aa4dd contains the def'n of the class MultiPart_Mail. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this

[web2py:31210] custom auth method

2009-09-17 Thread olivier
For legacy reasons, I will have to use a custom auth method... I need to have a custom function to check password at login time. (basically, I have htpassword-like stored in a field "password_http" in the auth_user table. I therefore need a custom login function: hash password obtain form the log

[web2py:31208] Re: Bug in cron rev1189?

2009-09-17 Thread Iceberg
I agree with you that the snippet -1 is for reboot jobs. I think the current bug is mainly caused by the other part: if ctype=='ext': go=False Because I am using hard cron mode, so the "go=False" can never execute, hence my daily cron job keeps running hourly. Hope you can understand the s

[web2py:31209] Re: web2py course

2009-09-17 Thread mdipierro
Sorry. Usually I am in Italy twice a year. I will try to organize a course there. Massimo On Sep 17, 4:22 am, Angelo Compagnucci wrote: > In Italy, economical incomes for IT is really small compared to other > type of works. > > A factory worker normally earns more than an IT specialist. > >

[web2py:31207] Re: Bug in cron rev1189?

2009-09-17 Thread AchipA
IIRC in that particular code snippet -1 was deprecated in favor of the more standard @reboot keyword. I have not noticed such a bug, but will certainly check it out for a possible regression. On Sep 16, 4:23 pm, Iceberg wrote: > Hi Achipa or Kacper, > > I noticed that in gluon/contrib/cron.py re

[web2py:31206] Re: Can't get the form to validate...

2009-09-17 Thread encompass
Well, the SELECT kind of works. It give the drop downlist. But there is no content in it. How do I populate it with the solution.name but it uses the ID in the database? I think I have seen it before. Regards, Jason On Sep 17, 2:20 pm, Iceberg wrote: > In short, the INPUT(...) is, with no do

[web2py:31205] Re: Can't get the form to validate...

2009-09-17 Thread encompass
Most times that is what I do. But is a many to many relationship and I don't see any other way to do it then to build a custom form. If you know something I don't, please tell. Cool, the SELECT worked. I didn't see it mentioned in the manual. (I am a poor reader.) Regards, Jason Brower On Sep 17

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

2009-09-17 Thread emaynard
Working on a similar project earlier this week and I would receive errors unless I changed from gluon.contrib.login_methods.gae_google_login import GaeGoogleAccount to from gluon.contrib.login_methods.gae_google_account import GaeGoogleAccount I am running the latest stable version from the si

[web2py:31203] Re: Can't get the form to validate...

2009-09-17 Thread Iceberg
In short, the INPUT(...) is, with no doubt, rendered as a text input field. You need a SELECT(...) to show up as a drop-down list. That is how HTML works, isn't it? Generally speaking, it is not recommended to build forms manually. Define your db table and use SQLFORM instead. PS: Once upon a tim

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

2009-09-17 Thread emaynard
You're talking a pForm or Wufoo type of thing? http://www.appnitro.com/machform/features http://wufoo.com/ I was thinking this type of thing would make a great school 'project' for a web dev class I am currently taking, but I would be wiling to assist on your project however needed. -E On Sep

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

2009-09-17 Thread Nicol van der Merwe
This is totally awesome! Thanks Massimo :) Side question : Is there any way to setup a root password for GAE as one would have when accessing admin normally in web2py? In other words - how can I setup a password to access admin on GAE? Regards Nicol On Thu, Sep 17, 2009 at 4:53 AM, mdipierro

[web2py:31200] FORM, SQLForm - what should I use?

2009-09-17 Thread mika
I have the following table: db.define_table('logicalmachines', SQLField('physical_id',db.physicalmachines), SQLField ('description','string',length=50,unique=True), SQLField('description_long', 'string'), SQLField('last_audit_date','

[web2py:31199] Re: silverlight html bridge

2009-09-17 Thread encompass
Silverlight is not cross platform. At least the last time I checked I couldn't use it. I would rather use open standards, something we all have control of. I am sure someone could make tools that could be run inside of web2py that can use silverlight. but if you go and make it a regular practic

[web2py:31198] Can't get the form to validate...

2009-09-17 Thread encompass
I am trying to make a form... --- def solution_manager(): form = FORM('Solution Name:', INPUT(_solution_name='solution', requires=IS_IN_DB (db,'solution.id')), # IS_IN_DB(db,'solution.id'), 'Issue Name:', INPUT(_issue_name='issue', requires=IS_IN

[web2py:31197] silverlight html bridge

2009-09-17 Thread davidjensen
I have not used the python to javascript utilities in web2py yet, but, it appears, the only way now run python in the browser is silverlight (maybe also python to actionscript in flash?). This is called html bridge and it allows html to call "managed code" as well as managed code to call html. Mic

[web2py:31196] Re: web2py course

2009-09-17 Thread Angelo Compagnucci
In Italy, economical incomes for IT is really small compared to other type of works. A factory worker normally earns more than an IT specialist. Itally has a very bad tradion in innovation. Researchers normally go away from Italy. Medium IT salary in UK is 3 €, in Italy only 1 - 11000€

[web2py:31195] Re: Admin page that works in GAE

2009-09-17 Thread Jon Romero
I think that appadmin on GAE is broken (I get an invalid request) and I saw on this thread (http://groups.google.com/group/web2py/ browse_thread/thread/a8307a3619fbbd00#) that it is fixed in the trunk. Any ideas about when it will be released? On Sep 15, 10:51 am, Jon Romero wrote: > oh great! t

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

2009-09-17 Thread John Heenan
Hi Massimo Yes. I included the relevant lines in my first post (with writable=False attribute). The point was to make an added username field selectively writeable at the form processing level. I spelt 'writable' incorrectly in one of my lines. Everything is working fine now. The username fiel

[web2py:31193] Re: web2py course

2009-09-17 Thread Mico Siahaan
Angelo, really? Then, I was wrong. My point is, from people from Indonesia that amount is huge comparing to average income per capita. :) Mico On 9/17/09, Angelo Compagnucci wrote: > > Also for me, in Italy, 1000 $ is an amount bigger than my mothly salary ... > > See you next time!! > > > 2009

[web2py:31192] Re: web2py course

2009-09-17 Thread Angelo Compagnucci
Also for me, in Italy, 1000 $ is an amount bigger than my mothly salary ... See you next time!! 2009/9/17 Mico Siahaan : > > Massimo, it is great to have such like this online course. Probably > next course (if there will next course), I will join. > > But, probably the biggest barrier for me t

[web2py:31191] Re: web2py course

2009-09-17 Thread Mico Siahaan
Massimo, it is great to have such like this online course. Probably next course (if there will next course), I will join. But, probably the biggest barrier for me to join is the course cost. I know, it is not fair ask for free course considering the efforts you put in this great software. But for

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

2009-09-17 Thread mdipierro
in db.py after auth=Auth() add from gluon.contrib.login_methods.gae_google_login import GaeGoogleAccount auth.settings.login_form=GaeGoogleAccount() On Sep 16, 11:52 pm, Graham Charles wrote: > On Sep 1, 10:36 pm, mdipierro wrote: > > > We currently provide out o

[web2py:31189] Re: class MultiPart_Mail should import Settings?

2009-09-17 Thread mdipierro
what is MultiPart_Mail? On Sep 16, 11:37 pm, notcourage wrote: > 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 sho

[web2py:31188] Re: web2py course

2009-09-17 Thread rondevu
OK I'm in. My application at De' Paul was accepted and my institution decided to fund me. Cool. Rjv On Aug 29, 4:32 pm, mdipierro wrote: > yes this is entirely online. I record the lectures (2.5hrs/week) and > you watch them online. They will be intermediate level since they > assume no knowle

[web2py:31187] Re: response.flash

2009-09-17 Thread Iceberg
Welcome onboard. And please share the kindness to any new comers later. :-) On Sep17, 2:53pm, Arvind wrote: > 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. >

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

2009-09-17 Thread Iceberg
I tried the lines in my previous post and they worked. Perhaps you'd like to provide minimal code to reproduce your problem. When talking about the redefining, yes, it is an unusual way and somewhat hard to be understood at the beginning, but it is how web2py does things. Just be aware that your