[web2py:12699] Curiosity - the options function

2008-12-01 Thread voltron
Hi Massimo, I was unable to track down when the "options()" function is called/ used in the HTML SELECT helper. Can you enlighten me? I know what is for, I just would like to know when and at which poit it is called. Thanks --~--~-~--~~~---~--~~ You received this

[web2py:12700] Re: Curiosity - the options function

2008-12-01 Thread billf
What version are you using? I don't have a a SELECT.options() method in my source?! I just have options() methods in the IS_IN_SET and IS_IN_DB validators. On Dec 1, 8:06 am, voltron <[EMAIL PROTECTED]> wrote: > Hi Massimo, > > I was unable to track down when the "options()" function is called/

[web2py:12701] Re: How to pass list of fields into db().select() ?

2008-12-01 Thread mdipierro
sorry. orderby not _orderby On Dec 1, 1:45 am, SergeyPo <[EMAIL PROTECTED]> wrote: > I also thought so but here is what happens: > > File "/Users/vasilina/Documents/Development/ADVANTAGE/web2py/ > applications/advantage/controllers/radar.py", line 37, in data_storage > time_based_details = db

[web2py:12702] Re: one to many relations

2008-12-01 Thread annet
I do not understand the Italian words in your posts, but I think I am facing the same problem. My problem is narrowed down to standardization tables. In most cases I implement the first solution, that is when the content of standardization tables is not displayed in the view and only bears relevan

[web2py:12703] Re: Curiosity - the options function

2008-12-01 Thread mdipierro
Bill is correct. There is no options in SELECT and IS_IN_SET.options is not called by select. It is called only by the constructor of SQLFORM in gluon/sqlhtml.py. You can call it explicitly: db.table.field.requires=IS_IN_SET(['a','b','c']) SELECT(*[OPTION(v,_value=k) for k,v in db.table.field.re

[web2py:12704] Re: Log rotation

2008-12-01 Thread Yarko Tymciurak
On Windows, the device NUL: is like /dev/null, and CON: is like /dev/tty(note the colon, ":"). On Sun, Nov 30, 2008 at 2:08 AM, Iceberg <[EMAIL PROTECTED]> wrote: > > Hi pals, > > Is there any updated news about this topic? My web2py application is > almost finished and I am now facing the same

[web2py:12705] Re: one to many relations

2008-12-01 Thread billf
The only reason I can see for allowing references on a field other than id is if you are de-normalizing, i.e. duplicating some data from a reference table into your primary table to save a join. I'm not sure how common this is and I would be tempted to stipulate that the reference was still by id

[web2py:12706] only capital letters in string fields

2008-12-01 Thread Marco Prosperi
hello everybody, my web2py application will interchange data with an ERP system. On this system all the fields of type string contain only capital letters. It would be nice for me if the values of type string inserted in a web2py form could be directly converted in capital letters. How to manage t

[web2py:12707] Re: one to many relations

2008-12-01 Thread achipa
Not sure if it applies here, but you can have multi-column (primary) keys in some DBMS and that can cause some headache with regard to id's. On Dec 1, 11:11 am, billf <[EMAIL PROTECTED]> wrote: > The only reason I can see for allowing references on a field other > than id is if you are de-normali

[web2py:12708] Re: one to many relations

2008-12-01 Thread billf
achipa you're right but isn't the second rule of web2py "every table must have a unique id field". (the first rule of web2py being "you do talk about web2py") On Dec 1, 11:01 am, achipa <[EMAIL PROTECTED]> wrote: > Not sure if it applies here, but you can have multi-column (primary) > keys in s

[web2py:12709] Re: Curiosity - the options function

2008-12-01 Thread voltron
Oops, yes you are right, its only in the validator. Thanks On Dec 1, 10:00 am, mdipierro <[EMAIL PROTECTED]> wrote: > Bill is correct. There is no options in SELECT and IS_IN_SET.options > is not called by select. It is called only by the constructor of > SQLFORM in gluon/sqlhtml.py. You can call

[web2py:12710] Re: only capital letters in string fields

2008-12-01 Thread voltron
You can use the python string function myString.capitalize() http://www.python.org/doc/2.5.2/lib/string-methods.html I hope this is what you are after On Dec 1, 11:14 am, Marco Prosperi <[EMAIL PROTECTED]> wrote: > hello everybody, my web2py application will interchange data with an > ERP sys

[web2py:12711] Re: non-ascii chars URL

2008-12-01 Thread Jonathan Benn
Thanks, Achipa. --~--~-~--~~~---~--~~ 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 this group, send email to [EMAIL PROTECTED

[web2py:12712] Re: Dropbox based on a none unique column.

2008-12-01 Thread annet
Denes, Thanks for your reply, it was very helpful. As to your question, the answer is in my comment to this post: http://groups.google.com/group/web2py/browse_thread/thread/f24fa2b73cc927f2/e2fad1db1810b75e#e2fad1db1810b75e I hope you will help me solve the following problem as well. The dro

[web2py:12713] Re: only capital letters in string fields

2008-12-01 Thread billf
I don't know whether jquery might be useful (it's a black art to me) but you can acheive what you want with a combination of javascript and css. text-transform on its own only displays uppercase but send exactly what the user typed. The onblur action actually changes what the user typed to upp

[web2py:12714] Re: one to many relations

2008-12-01 Thread pmate
Billf: if you read well my post you see that i never spoke about any affectation. All i meant it was that i didn't see anything strange in creating more indexes in the same table (different from id). And that i didn't see anything strange in creating relationship with these indexes. I said what in

[web2py:12715] Re: Internal error page

2008-12-01 Thread Timothy Farrell
Not actually. "Internal Error" is HTTP error 500 "Invalid Path", "Invalid Function", "Invalid Controller", "Invalid Application" are all HTTP error 400 404 is only returned for requests for missing static files. -tim mdipierro wrote: Didn't we address this in the page below? http://grou

[web2py:12716] Re: Downside / Critique of web2py

2008-12-01 Thread Timothy Farrell
1) did you experience any scalability problems with web2py? None, but I foresee some maintenance issues concerning the template system.  This complaint of mine isn't specific to web2py but fundamental to all text-based templating systems.  Try to read some of the templates.  IMHO, they are l

[web2py:12717] Re: web2py book in PDF at $12.50

2008-12-01 Thread Jon
Got it! Looking forward to finishing my first non-example app. Thanks. On Nov 29, 10:46 pm, mdipierro <[EMAIL PROTECTED]> wrote: > I did not put any limitation on it and I believe lulu did not either. > > Please do not redistribute it or post it else I may run into trouble > with the editor. > >

[web2py:12718] Re: one to many relations

2008-12-01 Thread DenesL
Annet, On Dec 1, 3:57 am, annet <[EMAIL PROTECTED]> wrote: > The second solution makes displaying addresses and services a lot > easier, and, I guess, enables me to implement the city and service > fields as auto-complete fields (a problem I have not solved yet), not > as drop boxes. However, the

[web2py:12719] Re: web2py book in PDF at $12.50

2008-12-01 Thread Joel Merrick
Really enjoying the book, but I feel the printer crop marks are really annoying. Is there any way to remove them? -- $ echo "kpfmAdpoofdufevq/dp/vl" | perl -pe 's/(.)/chr(ord($1)-1)/ge' --~--~-~--~~~---~--~~ You received this message because you are subscribed t

[web2py:12720] Re: only capital letters in string fields

2008-12-01 Thread mdipierro
Use the validator IS_UPPERCASE(). It converts the input in upper case. On Dec 1, 7:54 am, billf <[EMAIL PROTECTED]> wrote: > I don't know whether jquery might be useful (it's a black art to me) > but you can acheive what you want with a combination of javascript and > css. > > onblur="this.value

[web2py:12721] Re: only capital letters in string fields

2008-12-01 Thread mdipierro
sorry. IS_UPPER() On Dec 1, 10:13 am, mdipierro <[EMAIL PROTECTED]> wrote: > Use the validator IS_UPPERCASE(). It converts the input in upper case. > > On Dec 1, 7:54 am, billf <[EMAIL PROTECTED]> wrote: > > > I don't know whether jquery might be useful (it's a black art to me) > > but you can

[web2py:12722] Re: only capital letters in string fields

2008-12-01 Thread Marco Prosperi
thanks, a lot. I was looking for a solution at this level On 1 Dic, 17:13, mdipierro <[EMAIL PROTECTED]> wrote: > Use the validator IS_UPPERCASE(). It converts the input in upper case. > > On Dec 1, 7:54 am, billf <[EMAIL PROTECTED]> wrote: > > > I don't know whether jquery might be useful (it's

[web2py:12723] Re: web2py book in PDF at $12.50

2008-12-01 Thread Timothy Farrell
For all those curious about Joel's sig, but too cautious to run it and not enough time to figure it out, it's his email address. Since this is a Python community, the equivalent is: print ''.join([chr(ord(x)-1) for x in 'kpfmAdpoofdufevq/dp/vl']) =) Joel Merrick wrote: Really enjoying the

[web2py:12724] Re: smart(er) helpers ?

2008-12-01 Thread achipa
Well, the ugly solution for that would be a default 'literal=True' parameter in the constructor. It still feels wrong for the user to do the urlencode, as then it's already inconsistent with URL() and many other places where web2py does this automatically. What about the other tags ? For example

[web2py:/] Re: smart(er) helpers ?

2008-12-01 Thread mdipierro
Yes, we can do that. Can you send me a patch? Massimo On Dec 1, 10:27 am, achipa <[EMAIL PROTECTED]> wrote: > Well, the ugly solution for that would be a default 'literal=True' > parameter in the constructor. It still feels wrong for the user to do > the urlencode, as then it's already inconsist

[web2py:12726] New Genshi4web2py.py

2008-12-01 Thread Timothy Farrell
Massimo has posted a more recent Genshi4web2py.py module in AlterEgo for me.  If you use (want to use) Genshi with web2py, you can get it from: http://mdp.cti.depaul.edu/AlterEgo/default/show/162 This new version adds cache support (for a large speed boost) and full Genshi rendering options

[web2py:12727] Re: New Genshi4web2py.py

2008-12-01 Thread billf
What is the best link for a quick intro of how to use genshi templates with web2py? I don't mean install/configure but examples of actual controllers/templates/outputs. On Dec 1, 4:53 pm, Timothy Farrell <[EMAIL PROTECTED]> wrote: > Massimo has posted a more recent Genshi4web2py.py module in Alt

[web2py:12728] Re: Dropbox based on a none unique column.

2008-12-01 Thread DenesL
Annet, to create an auto-complete field in form_factory I would use a widget, as in: form=form_factory(SQLField('plaatsnaam', label='Type eenplaatsnaam', requires=IS_NOT_EMPTY(), widget=lambda self, value:TAG['']( INPUT(_class="string", _id="plaatsnaam", _n

[web2py:12729] Re: manual

2008-12-01 Thread Phyo Arkar
Dear Massimo; I was been busy and out of touch from web2py (i have to do java :( which i am playing with to make an applet for a project for a CCTV camera) But On Server side it will be python + web2py! :) Damn , wish i can get this project done quick! i want to release Web2py OS fast. Ah! thats

[web2py:12730] register account and wsgi

2008-12-01 Thread Wes James
I'm just testing the new register function and I'm doing it with wsgi and I get: onaccept=onaccept2,next=next) File "applications/plugin_t2/modules/t2.py", line 385, in create if onaccept: onaccept(form) File "applications/plugin_t2/modules/t2.py", line 794, in onaccept2 message=b

[web2py:12731] t2 verify registration

2008-12-01 Thread Wes James
I just tried the verify registration. There is no From: address and it says: Click here ...code... to complete registration but there is nothing to click on. -wj --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "w

[web2py:12732] sync app email with t2.person email

2008-12-01 Thread Wes James
I set the a student email to the t2.person email address when they submit a form. Is there an easy way to update the t2.person email address if the student changes the email address in their data form? Actually, maybe I could put the t2.person field in that spot on the student form instead of ha

[web2py:12733] Re: manual

2008-12-01 Thread mdipierro
I did not state it quite right. I did a Content Management System for the UN in Django (www2.un.int). Myanmar among other nations used. I did not work for any specific government and did not deal with content. The idea was to provide a way so that every nation at the UN would have a web presence (

[web2py:12735] Re: register account and wsgi

2008-12-01 Thread mdipierro
It seems a left a debug print statement on failure to send emails. I will remove it. Massimo On Dec 1, 12:29 pm, "Wes James" <[EMAIL PROTECTED]> wrote: > I'm just testing the new register function and I'm doing it with wsgi and I > get: > > onaccept=onaccept2,next=next) > File "applicatio

[web2py:12736] Re: t2 verify registration

2008-12-01 Thread mdipierro
You need to tell t2 where the registration is done in the body of the email: t2.messages.register_email_body="Click here http://hostname/yourapp/default/verify?key=%(registration_key)s to complete registration" Massimo On Dec 1, 12:34 pm, "Wes James" <[EMAIL PROTECTED]> wrote: > I just tried th

[web2py:12737] Re: sync app email with t2.person email

2008-12-01 Thread mdipierro
you can do def myaccept(form): if form.vars.email!=form.record.email: ... do soemthing, perhaps: db (db.t2_person.id==form.vars.person_id).update() t2.update(...,onaccept=myaccept) Massimo On Dec 1, 12:56 pm, "Wes James" <[EMAIL PROTECTED]> wrote: > I set the a student email t

[web2py:12739] Re: manual

2008-12-01 Thread Yarko Tymciurak
Ugh! Jahia ==> Java CMS There is an open source (community) and a commercial version On Mon, Dec 1, 2008 at 12:56 PM, mdipierro <[EMAIL PROTECTED]> wrote: > > I did not state it quite right. I did a Content Management System for > the UN in Django (www2.un.int). Myanmar among other nat

[web2py:12740] Re: New Genshi4web2py.py

2008-12-01 Thread Timothy Farrell
Also note that your Genshi templates (views) must be valid XML.  If they aren't Genshi will raise an exception. There's a URL in the PDF of Genshi's Documentation website.  It's ok, but could use some attention.  Feel free to ask me questions. -tim Timothy Farrell wrote: The article in

[web2py:12741] SQL Designer Import

2008-12-01 Thread Mario Lim
Hi all, This is my first post... I was playing with the SQL Designer page and couldn't click on the "Setting" button to check how to import. Wanted to know if the import functionality is working in cases I need to change the schema? --~--~-~--~~~---~--~~ You

[web2py:12742] Re: SQL Designer Import

2008-12-01 Thread mdipierro
No, sorry. On Dec 1, 1:25 pm, "Mario Lim" <[EMAIL PROTECTED]> wrote: > Hi all, > This is my first post... I was playing with the SQL Designer page and > couldn't click on the "Setting" button to check how to import. Wanted to > know if the import functionality is working in cases I need t

[web2py:12743] Re: manual

2008-12-01 Thread Phyo Arkar
JAVA CMS .. OMG ... On Mon, Dec 1, 2008 at 7:18 PM, Yarko Tymciurak <[EMAIL PROTECTED]> wrote: > Ugh! Jahia ==> Java CMS > There is an open source (community) and a commercial version > > > On Mon, Dec 1, 2008 at 12:56 PM, mdipierro <[EMAIL PROTECTED]>wrote: > >> >> I did not state it

[web2py:12744] Re: SQL Designer Import

2008-12-01 Thread Yarko Tymciurak
Have a look at this: http://groups.google.com/group/web2py/browse_thread/thread/de4e11460140066a/52fc8b7e498d71fb?lnk=gst&q=sqldesigner#52fc8b7e498d71fb This will generate some web2py code for you. I don't remember if the backend part works / was tested, but once you see the code you may find i

[web2py:12745] Re: SQL Designer Import

2008-12-01 Thread jwm
On a related note I Am in the process of porting SQL Designer to a web2py app on google appengine. http://gaesql.appspot.com Right now I have streamlined the export process and am using it as a tool to learn web2py better, I have a basic save backend in process on my laptop. I'll look into writi

[web2py:12746] Re: SQL Designer Import

2008-12-01 Thread Boris Manojlovic
http://designer.bojanka.net/ and yes it is already on GAE... On Mon, Dec 1, 2008 at 9:30 PM, jwm <[EMAIL PROTECTED]> wrote: > > On a related note I Am in the process of porting SQL Designer to a > web2py app on google appengine. > > http://gaesql.appspot.com > > Right now I have streamlined the

[web2py:12747] Re: SQL Designer Import

2008-12-01 Thread mdipierro
Excellent! On Dec 1, 2:30 pm, jwm <[EMAIL PROTECTED]> wrote: > On a related note I Am in the process of porting SQL Designer to a > web2py app on google appengine. > > http://gaesql.appspot.com > > Right now I have streamlined the export process and am using it as a > tool to learn web2py better,

[web2py:12748] Re: SQL Designer Import

2008-12-01 Thread jwm
Boris, Looks like you had the thought before I did, Good Job! J On Dec 1, 2:39 pm, "Boris Manojlovic" <[EMAIL PROTECTED]> wrote: > http://designer.bojanka.net/ > and yes it is already on GAE... > > > > On Mon, Dec 1, 2008 at 9:30 PM, jwm <[EMAIL PROTECTED]> wrote: > > > On a related note I Am in

[web2py:12749] Re: SQL Designer Import

2008-12-01 Thread mdipierro
Boris, is it functional? Can I uninstall the old one and link yours? If it is open source, is the source posted somewhere? perhaps the two of you should join forces. Massimo On Dec 1, 2:43 pm, jwm <[EMAIL PROTECTED]> wrote: > Boris, > Looks like you had the thought before I did, Good Job! > >

[web2py:12751] Re: SQL Designer Import

2008-12-01 Thread mdipierro
perhaps you and jwm can join forces. You have the same interests. I am not planning to host this myself since you are doing it, but it could be used and distributed with T3. Massimo On Dec 1, 2:57 pm, "Boris Manojlovic" <[EMAIL PROTECTED]> wrote: > it was created as proof of concept, i planed t

[web2py:12750] Re: SQL Designer Import

2008-12-01 Thread Boris Manojlovic
it was created as proof of concept, i planed to add more functionality (as you can see from database schema) http://www.bojanka.net/w2p-massimo.tar.gz it is opensource as all package is opensource, why to close back end :) On Mon, Dec 1, 2008 at 9:53 PM, mdipierro <[EMAIL PROTECTED]> wrote: > >

[web2py:12753] Re: SQL Designer Import

2008-12-01 Thread Boris Manojlovic
Hi, as i said it was just a prof of concept :) and i tried to make it forward compatible as much as possible. What that means is I did not changed "www sql developer" code (except configuration) on purpose so that files from *applications/init/static/** designer* can be replaced with new version

[web2py:12752] Re: SQL Designer Import

2008-12-01 Thread jwm
I'm all for it, I'm just cutting my teeth on web2py and enjoying it so far. I was planning on releasing my source once I added more features, but it looks like Boris is ahead of me. Let me know how I can help and I'll pitch in. J On Dec 1, 3:04 pm, mdipierro <[EMAIL PROTECTED]> wrote: > perhaps

[web2py:12754] Re: new T2

2008-12-01 Thread Wes James
If possible, it would be good to have the reset password give you a link in an email then that link takes you back to the web site where you can enter a new password. Otherwise, in order to change the password, a password field is needed somewhere for the user to change their password. thx, -wj

[web2py:12755] Re: new T2

2008-12-01 Thread mdipierro
OK On Dec 1, 3:35 pm, "Wes James" <[EMAIL PROTECTED]> wrote: > If possible, it would be good to have the reset password give you a > link in an email then that link takes you back to the web site where > you can enter a new password. Otherwise, in order to change the > password, a password field

[web2py:12756] Re: sync app email with t2.person email

2008-12-01 Thread Wes James
Massimo, I tried this but did not work: def sync_profile_and_t2(form): if form.vars.email!=form.record.email: db(db.t2_person.id==form.vars.student_id).update(email=form.vars.email) I have a student database with the email field and it gets updated but the t2_person.email does not.

[web2py:12757] debuggin

2008-12-01 Thread Wes James
What is a good way to print output from a fuction like this? Say I want to see what form.vars.email contains, is there a way to send this to the web page? def sync_profile_and_t2(form): if form.vars.email!=form.record.email: db(db.t2_person.id==form.vars.student_id).update(email=for

[web2py:12758] Re: sync app email with t2.person email

2008-12-01 Thread Yarko Tymciurak
On Mon, Dec 1, 2008 at 5:06 PM, Wes James <[EMAIL PROTECTED]> wrote: > > Massimo, > > I tried this but did not work: > > def sync_profile_and_t2(form): > if form.vars.email!=form.record.email: > db(db.t2_person.id > ==form.vars.student_id).update(email=form.vars.email) should be more

[web2py:12759] Re: debuggin

2008-12-01 Thread Yarko Tymciurak
if you were single-stepping w/ WingIDE, you could just look at your variables ;-)Doesn't the WingIDE 101 (or whatever that free one is) let you do this? On Mon, Dec 1, 2008 at 5:13 PM, Wes James <[EMAIL PROTECTED]> wrote: > > What is a good way to print output from a fuction like this? > > Say I

[web2py:12760] Re: sync app email with t2.person email

2008-12-01 Thread Wes James
I was just looking at that code in the pdf. I put your changes in, but it still does not update t2_person.email. Any idea why? thx, -wj On Mon, Dec 1, 2008 at 4:35 PM, Yarko Tymciurak <[EMAIL PROTECTED]> wrote: > On Mon, Dec 1, 2008 at 5:06 PM, Wes James <[EMAIL PROTECTED]> wrote: >> >> Massi

[web2py:12761] Re: New Genshi4web2py.py

2008-12-01 Thread ceej
I seem to be getting an error, I'm importing like this: import applications.myapp.modules.Genshi4web2py as Genshi4web2py response.postprocessing.append(lambda x: Genshi4web2py.render(x, request, response)) but i get this: http://paste.pocoo.org/show/93469/ On Dec 1, 11:23 am, Timothy Farrell <

[web2py:12762] Re: debuggin

2008-12-01 Thread Wes James
oh, yeah, i forgot about that. Thx! -wj On Mon, Dec 1, 2008 at 4:38 PM, Yarko Tymciurak <[EMAIL PROTECTED]> wrote: > if you were single-stepping w/ WingIDE, you could just look at your > variables ;-) > Doesn't the WingIDE 101 (or whatever that free one is) let you do this? > > On Mon, Dec 1, 2

[web2py:12763] IS_IN_SET doesn't produce dropdown if IS_NOT_IN_DB also required

2008-12-01 Thread Fran
I want to restrict a field to just a few specific options. Only 1 record should exist for each option. So I need both sets of requires. The vlaidation works fine, however the form generated (in T2 at least) isn't the expected dropdown, but rather a straight textbox. Is this a bug? Meanwhile, is t

[web2py:12764] Re: New Genshi4web2py.py

2008-12-01 Thread ceej
and i do have genshi installed: blank:source blank$ easy_install genshi Searching for genshi Best match: Genshi 0.5.1 Processing Genshi-0.5.1-py2.5-macosx-10.5-i386.egg Genshi 0.5.1 is already the active version in easy-install.pth Using /Library/Python/2.5/site-packages/Genshi-0.5.1-py2.5-macos

[web2py:12765] Re: IS_IN_SET doesn't produce dropdown if IS_NOT_IN_DB also required

2008-12-01 Thread mdipierro
did you set requires=IS_IN_DB() without the [ ] ? On Dec 1, 5:42 pm, Fran <[EMAIL PROTECTED]> wrote: > I want to restrict a field to just a few specific options. > Only 1 record should exist for each option. > So I need both sets of requires. > > The vlaidation works fine, however the form ge

[web2py:12766] Re: debuggin

2008-12-01 Thread Wes James
When I debug in wingide, there is a local form 0 1 but there is not formsvars or forms.record where are this? On Mon, Dec 1, 2008 at 4:38 PM, Yarko Tymciurak <[EMAIL PROTECTED]> wrote: > if you were single-stepping w/ WingIDE, you could just look at your > variables ;-) > Doesn't the

[web2py:12767] Re: sync app email with t2.person email

2008-12-01 Thread Yarko Tymciurak
Massimo had some simple way to include the request values at the bottom of each page, similar to what's shown on P.97 of his book;I just scanned the PDF, the book, and a quick check of sources I don't want to work so hard, so I'll let Massimo reply (I'm probably just hungry / it's Mon

[web2py:12768] Re: New Genshi4web2py.py

2008-12-01 Thread ceej
Was just a bad install, I installed using mac ports and now works just fine :) On Dec 1, 3:45 pm, ceej <[EMAIL PROTECTED]> wrote: > and i do have genshi installed: > > blank:source blank$ easy_install genshi > Searching for genshi > Best match: Genshi 0.5.1 > Processing Genshi-0.5.1-py2.5-macosx-

[web2py:12769] Re: debuggin

2008-12-01 Thread Wes James
that is form.vars On Mon, Dec 1, 2008 at 5:03 PM, Wes James <[EMAIL PROTECTED]> wrote: > When I debug in wingide, there is a > > local > form >0 >1 > > but there is not formsvars or forms.record > > where are this? > > On Mon, Dec 1, 2008 at 4:38 PM, Yarko Tymciurak <[EMAIL PROTECTED]> w

[web2py:12770] Re: debuggin

2008-12-01 Thread Wes James
and form.record On Mon, Dec 1, 2008 at 5:11 PM, Wes James <[EMAIL PROTECTED]> wrote: > that is form.vars > > On Mon, Dec 1, 2008 at 5:03 PM, Wes James <[EMAIL PROTECTED]> wrote: >> When I debug in wingide, there is a >> >> local >> form >>0 >>1 >> >> but there is not formsvars or forms.r

[web2py:12771] Re: IS_IN_SET doesn't produce dropdown if IS_NOT_IN_DB also required

2008-12-01 Thread Fran
> did you set requires=IS_IN_DB() without the [ ] ? db.gis_key.service.requires=[IS_IN_SET (['google','multimap','yahoo']),IS_NOT_IN_DB(db,'gis_key.service')] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "we

[web2py:12772] Re: sync app email with t2.person email

2008-12-01 Thread Yarko Tymciurak
Ah! Here it is: debug.html: Diagnostics: {{=BEAUTIFY(request)}}{{=BEAUTIFY(response)}} Then, wherever you want it: {{include 'debug.html'}} Maybe debug.html should just always be in welcome/views --- just not included anywhere??? On Mon, Dec 1, 2008 at 6:08 PM, Yarko Tymciurak <[EMAIL PROT

[web2py:12773] Re: IS_IN_SET doesn't produce dropdown if IS_NOT_IN_DB also required

2008-12-01 Thread mdipierro
A list of validators will not give you a dropdown. These will: db.gis_key.service.requires=IS_IN_SET(['google','multimap','yahoo']) db.gis_key.service.requires=IS_NOT_IN_DB(db,'gis_key.service') Massimo On Dec 1, 6:17 pm, Fran <[EMAIL PROTECTED]> wrote: > > did you set requires=IS_IN_DB(

[web2py:12774] Re: sync app email with t2.person email

2008-12-01 Thread mdipierro
why no session too? Diagnostics: Request {{=BEAUTIFY(request)}} Diagnostics: Session {{=BEAUTIFY(session)}} Diagnostics: Response {{=BEAUTIFY(response)}} On Dec 1, 6:25 pm, "Yarko Tymciurak" <[EMAIL PROTECTED]> wrote: > Ah! Here it is: > debug.html: > > > Diagnostics: > {{=BEAUTIFY(request)}}

[web2py:12775] Re: IS_IN_SET doesn't produce dropdown if IS_NOT_IN_DB also required

2008-12-01 Thread mdipierro
I believe you want: options=[x for x in ['google','multimap','yahoo'] if not db (db.gis_key.sevice==x).count()] db.gis_key.service.requires=IS_IN_SET(options) Massimo On Dec 1, 6:36 pm, mdipierro <[EMAIL PROTECTED]> wrote: > A list of validators will not give you a dropdown. These will: > > db

[web2py:12776] Re: sync app email with t2.person email

2008-12-01 Thread Yarko Tymciurak
yes - why not! :-) On Mon, Dec 1, 2008 at 6:38 PM, mdipierro <[EMAIL PROTECTED]> wrote: > > why no session too? > > > Diagnostics: Request > {{=BEAUTIFY(request)}} > Diagnostics: Session > {{=BEAUTIFY(session)}} > Diagnostics: Response > {{=BEAUTIFY(response)}} > > On Dec 1, 6:25 pm, "Yarko Tymc

[web2py:12777] Re: New Genshi4web2py.py

2008-12-01 Thread ceej
Using seems to kill genshi4web2py, it doesn't error out or anything it loads the html file but doesn't convert all the genshi things just leaves it like this will be replaced instead of turning it into New Title Any ideas? Have you run into this problem Tim while trying to setup templates? Man

[web2py:12778] Re: debuggin

2008-12-01 Thread Yarko Tymciurak
try looking at globals: request=>vars or t2=>request=>vars ??? On Mon, Dec 1, 2008 at 6:03 PM, Wes James <[EMAIL PROTECTED]> wrote: > > When I debug in wingide, there is a > > local > form >0 >1 > > but there is not formsvars or forms.record > > where are this? > > On Mon, Dec 1, 200

[web2py:12779] Re: smart(er) helpers ?

2008-12-01 Thread achipa
I guess I could, but have a few dilemmas... How do I find out elegantly the request.folder from within the helper ? I'd hate to have the request object or a separate attribute passed down to the helper just for that. On Dec 1, 5:30 pm, mdipierro <[EMAIL PROTECTED]> wrote: > Yes, we can do that. C

[web2py:12780] Re: smart(er) helpers ?

2008-12-01 Thread mdipierro
Why do you need the request.folder? It is not visible from there. On Dec 1, 7:45 pm, achipa <[EMAIL PROTECTED]> wrote: > I guess I could, but have a few dilemmas... How do I find out > elegantly the request.folder from within the helper ? I'd hate to have > the request object or a separate attrib

[web2py:12781] How to do OR?

2008-12-01 Thread WK
Hello, I am new to web2py and found it quite impressive. I have one question though: How do you do OR? ex/ db((db.friends.user1 == session.email | db.friends.user2 == session.email)).select() I want to select to get all entries where user1 is email or user2 is email but it gives me TypeError: un

[web2py:/] Re: How to do OR?

2008-12-01 Thread mdipierro
You are missing some brackets. This will work: db((db.friends.user1 == session.email)|(db.friends.user2 ==session.email)).select() except on GAE. GAE does not support OR. Massimo On Dec 1, 8:24 pm, WK <[EMAIL PROTECTED]> wrote: > Hello, > I am new to web2py and found it quite impressive. I hav

[web2py:12783] What is "input.delete" for?

2008-12-01 Thread Iceberg
Hi pals, In views/web2py_ajax.html, there is a line: $('input.delete').attr('onclick','if(this.checked) if(!confirm("{{=T ('Sure you want to delete this object?')}}")) this.checked=false;'); What is it for? I tried define a checkbox or a radio button with "_class='delete'", then click it again

[web2py:12784] Re: What is "input.delete" for?

2008-12-01 Thread mdipierro
If you have an input checkbox of class delete and you click on it (check it), it should ask for confirmation. Works for me. Does it not work for you? Massimo On Dec 1, 9:33 pm, Iceberg <[EMAIL PROTECTED]> wrote: > Hi pals, > > In views/web2py_ajax.html, there is a line: > $('input.delete').att

[web2py:12785] insert a default value into a text of a table form

2008-12-01 Thread MadWalker
i need to know that if i can insert a default value if i do not want to type the text in ' comments=SQLFORM(cynotedb.comment,fields=['author','entry_id','body') this is the code for the form i using can i do something like comments=SQLFORM(cynotedb.comment,fields=['author','entry_id']) and the 'bo

[web2py:12786] taking in the text in the page and store it in as an entry

2008-12-01 Thread MadWalker
is there a way to take in a page of text and store that in as an entry? like in a page there are text and a comment at the end if it is possible to insert what is in the text into the comment than just copy and paste into the text field itself? --~--~-~--~~~---~--~---

[web2py:12787] Re: IS_IN_SET doesn't produce dropdown if IS_NOT_IN_DB also required

2008-12-01 Thread Fran
1st option failed, but 2nd option works beautifully - many thanks! :) --~--~-~--~~~---~--~~ 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 unsub

[web2py:12788] Re: IS_IN_SET doesn't produce dropdown if IS_NOT_IN_DB also required

2008-12-01 Thread Fran
Actually, no - 2nd option doesn't work when doing this: item=t2.update(db.gis_key) I'm editing the key for the 'google' service, but now my form only has the 2 other options in the dropdown! (just as if I were entering a brand new key) I tried to workaround the issue by not making the service fi

[web2py:12789] Re: insert a default value into a text of a table form

2008-12-01 Thread Fran
I too would like to pre-populate Form fields (ideally with T2). For me, the default entry should be the current value (if it exists), the default value (if defined) or blank. Looking forward to a solution :) --~--~-~--~~~---~--~~ You received this message because y