[web2py:16491] Re: Really irritating loss of code

2009-02-18 Thread Joe Barnhart
Some interesting ideas are coming as a result from my temper tantrum. I adjusted my settings per Massimo's suggestion, but I like the direction this has taken. It would be nice to come up with a better alternative than session expired, you lose!

[web2py:16493] Re: Help with PyCon internationalization

2009-02-18 Thread Jonathan Benn
Hi all, I've completed a French translation and emailed it to Massimo. This translation should cover fr, fr-fr and fr-ca. P.S. I got the language-country codes from these sources: http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes http://en.wikipedia.org/wiki/List_of_NATO_country_codes

[web2py:16494] Re: web2py on GAE step by step guide?

2009-02-18 Thread Jonathan Benn
Hi Cephire, On Feb 18, 10:48 am, Cephire ceph...@gmail.com wrote: Is there any step-by-step guide for a newbie? Try these sources: http://mdp.cti.depaul.edu/AlterEgo/default/show/186 http://mdp.cti.depaul.edu/AlterEgo/default/show/138 http://mdp.cti.depaul.edu/AlterEgo/default/show/199 If

[web2py:16496] Re: Optimal MVC forms summary?

2009-02-18 Thread carlo
everything is debatable: only side thing I can argue is that helpers are objects related to markup and I do not like them mingled with logic. But that's philosophy I agree. The main real point is that if you want to share your work with html designers, you can not use helpers at all. Your

[web2py:16497] can web2py_win.zip 's DAL run with mssql?

2009-02-18 Thread Iceberg
Hi buddies, Web2py's dal supports many db backend such as SQLite, PostgreSQL, MySQL, MSSQL, FireBird and Oracle, mentioned at web2py homepage. But when I run web2py from web2py_win.zip, I only see: Database drivers available: SQLite3, MySQL So: 1. Do I have to manually install pyodbc if I

[web2py:16499] Re: SearchableModel App engine

2009-02-18 Thread Robin B
SearchableModel is workable as long as you have 1 or at most 2 words in the search, otherwise the indexes 'explode' in size. You should be able to mark a field as non-indexed, and non-ascii fields should be non-indexed by default. If there were some doctests, this could be added to gql.py.

[web2py:16500] Re: web2py on GAE step by step guide?

2009-02-18 Thread Cephire
Thanks Jonathan. I am able to host a web2py app in a local appengine. Haven't yet tried uploading though; will do after reading through all of the links you have sent. Quick question: by default it goes to the welcome application (when I type http://localhost:8080). how do i direct to my

[web2py:16501] Re: can web2py_win.zip 's DAL run with mssql?

2009-02-18 Thread mdipierro
To use the other drivers you need to 1) install Python 2.5 2) install the driver you need 3) Run web2py from source We cannot easily distribute the drivers with the binary version yet. Massimo On Feb 18, 8:30 am, Iceberg iceb...@21cn.com wrote: Hi buddies, Web2py's dal supports many db

[web2py:16503] Re: web2py on GAE step by step guide?

2009-02-18 Thread mdipierro
call you app init or make an app init the with def index(): redirect(yourapp) On Feb 18, 8:43 am, Cephire ceph...@gmail.com wrote: Thanks Jonathan. I am able to host a web2py app in a local appengine. Haven't yet tried uploading though; will do after reading through all of the links you have

[web2py:16504] Re: Optimal MVC forms summary?

2009-02-18 Thread AchipA
A helper object can be used almost identically to a list. Helpers being able to 'render' themselves and including additional data (to ensure compliance, etc) is just a bonus for rapid prototyping. If you *depend* on rendering (and you need to hand that over to a design person), then you are

[web2py:16505] Re: t2/t3 plugin_t2 Internationalization

2009-02-18 Thread b-global.net
Hello: Thank you Massimo for your help!!! I understand your point, But I have a problem, for example I have different application that use the t2 module, and some of this application can use the same language file, the question will be how to make one language file that can be used for all the

[web2py:16506] Re: t2/t3 plugin_t2 Internationalization

2009-02-18 Thread mdipierro
look into web2py/scripts/sync_languages.py it merges the language files of two applications so that you only need to translate once and copy it over. Massimo On Feb 18, 10:00 am, b-global.net bglobal...@yahoo.com.mx wrote: Hello: Thank you Massimo for your help!!! I understand your point,

[web2py:16507] Re: cherrypy multiple threads?

2009-02-18 Thread Tamas
Thanks, this is exactly what I needed. These functions are just workers, and have nothing to do with sessions, hence it should be safe to unlock it. Thanks, web2py rocks! :) On Feb 18, 4:22 pm, mdipierro mdipie...@cs.depaul.edu wrote: web2py built-in server is multithreaded even without the -n

[web2py:16508] Re: cherrypy multiple threads?

2009-02-18 Thread mdipierro
If you are not using sessions at all, do not unlock them. Use instead session.forget() It will also make your code faster. Massimo On Feb 18, 10:10 am, Tamas tma...@gmail.com wrote: Thanks, this is exactly what I needed. These functions are just workers, and have nothing to do with

[web2py:16510] Re: t3 backup/restore

2009-02-18 Thread drayco
Hi, I saw the new t3 Version 0.4 (2009-02-05 09:36:05) but I didn't saw any change in backup/restore funtion of t3. Can you help me i want to fix the bug because i want to migrate the database? I use t3 Version 0.4 (2009-01-07 09:01:19) and web2py 1.55.2 in a website in production enviroment.

[web2py:16511] We2py Manual SQLFORM

2009-02-18 Thread annet
On page 174 of the web2py manual there's an example of links to referencing records. Half way the page it reads: When editing an existing person the appadmin UPDATE form shows a link to a page that lists the dogs that belong to the person. I am currently working in web2py 1.56.2 in which

[web2py:16513] Re: Really irritating loss of code

2009-02-18 Thread annet
I read the posts above, I had the same problem, but discovered that after logging back in I could use the back button of my browser to return to the page I wanted to save, and save it. I know this is far from an elegant solution, and I haven't tried it on a production server, however, it

[web2py:16517] Re: Really irritating loss of code

2009-02-18 Thread Joe Barnhart
Actually, I found I could _not_ use the back button to recover my (extensive) edits. As soon as I logged in and pressed tbe back button, it refreshed the page to the stored version, losing my changes forever. Then I threw myself on the ground and had a good tantrum. (Later I found my code

[web2py:16514] Re: We2py Manual SQLFORM

2009-02-18 Thread mdipierro
It is a bug introduced in 1.55 fixed in trunk On Feb 18, 11:10 am, annet jmverm...@planet.nl wrote: On page 174 of the web2py manual there's an example of links to referencing records. Half way the page it reads: When editing an existing person the appadmin UPDATE form shows a link to a

[web2py:16516] Re: Really irritating loss of code

2009-02-18 Thread mdipierro
What would be a better solution? Massimo On Feb 18, 11:29 am, annet jmverm...@planet.nl wrote: I read the posts above, I had the same problem, but discovered that after logging back in I could use the back button of my browser to return to the page I wanted to save, and save it. I know this

[web2py:16515] Re: Web2py T2 T3

2009-02-18 Thread annet
Massimo, Fran, Paul and Markus, Thanks for your replies, they were all very useful. Annet On 13 feb, 17:16, Fran francisb...@googlemail.com wrote: On Feb 13, 2:38 pm, Markus Gritsch m.grit...@gmail.com wrote: Better create a file views/default/user.html with the following content: A

[web2py:16518] Problem with auth.login_next

2009-02-18 Thread Abner
Hi, Using the new auth system from gluon/tools.py I found a problem. My app is like this: model/db.py: ... auth = MyAuth(globals(), T, db auth.settings.lock_keys = False auth.settings.login_next = URL(r=request, c='default', f='index') auth.settings.login_url = URL(r=request, c='control',

[web2py:16520] Re: Problem with auth.login_next

2009-02-18 Thread mdipierro
In the former case (the wrong one) is there a hidden field called _next in the generated html? What does it say? On Feb 18, 12:42 pm, Abner abner.jacob...@gmail.com wrote: Hi, Using the new auth system from gluon/tools.py I found a problem. My app is like this: model/db.py: ... auth =

[web2py:16521] Re: Really irritating loss of code

2009-02-18 Thread Sandro Gauci
I see the following as a proper solution: * When the session does expire and end users are presented with a login form, logging in should save the content. This can be done by putting the content etc in hidden input fields for example. And more suggestions (would be nice to have): 1. Providing

[web2py:16522] Re: Really irritating loss of code

2009-02-18 Thread mdipierro
Yes, excellent suggestions. I think ajax keepalive is the easiest solution. Massimo On Feb 18, 12:16 pm, Sandro Gauci sandrog...@gmail.com wrote: I see the following as a proper solution: * When the session does expire and end users are presented with a login form, logging in should save

[web2py:16524] Re: Problem with auth.login_next

2009-02-18 Thread Abner
Yes, in the logn form I have: input name=_next type=hidden value= / On 18 fev, 15:58, mdipierro mdipie...@cs.depaul.edu wrote: In the former case (the wrong one) is there a hidden field called _next in the generated html? What does it say? On Feb 18, 12:42 pm, Abner abner.jacob...@gmail.com

[web2py:16525] Re: Optimal MVC forms summary?

2009-02-18 Thread AchipA
On Feb 18, 7:43 pm, carlo syseng...@gmail.com wrote: Working in team they are almost useless: the html code is usually the source for your logic not a product to pass designers. You get html static pages with style and putting in some logic is your business. I guess I'm just terrible at

[web2py:16526] Re: Few questions on license

2009-02-18 Thread vihang
As I understand currently web2py license hangs between GPL and LGPL (more on GPL though). I have seen some fantastic initiatives here like linking web2py to pyjamas-desktop. This way web2py can be used (possibly) for desktop apps too ! But here comes the issue. A lot of times, esp for desktop

[web2py:16527] Re: Really irritating loss of code

2009-02-18 Thread Boris Manojlovic
nope no autosave please, as code that is autosaved would never be ok (in middle of typing??) about idea of providing auto keepalive with detecting (on)keydown should be ok. anyway will try to do something like that now... On Wed, Feb 18, 2009 at 8:01 PM, mdipierro mdipie...@cs.depaul.edu wrote:

[web2py:16528] Re: Problem with auth.login_next

2009-02-18 Thread Fran
On Feb 18, 6:42 pm, Abner abner.jacob...@gmail.com wrote:             next = request.vars._next or self.settings.login_next This is the correct order. self.settings.login_next is the default location to be redirected to. However this can e over-ridden per-page via request.vars._next. This

[web2py:16529] Re: Few questions on license

2009-02-18 Thread Fran
On Feb 18, 8:13 pm, vihang vihan...@gmail.com wrote: Any such issues faced by others? This is certainly an issue that I need to keep track of, however I think we're OK: Code built in extra layers on top of Web2Py (e.g. proprietary modules equivalent to T2) can stay private. Only if the Web2Py

[web2py:16531] Re: Problem with auth.login_next

2009-02-18 Thread Abner
On 18 fev, 17:31, Fran francisb...@googlemail.com wrote: On Feb 18, 6:42 pm, Abner abner.jacob...@gmail.com wrote:             next = request.vars._next or self.settings.login_next This is the correct order. self.settings.login_next is the default location to be redirected to. However

[web2py:16532] Re: How to disable registration in T3

2009-02-18 Thread ANDROSoft
Ok, after some days i have found better solution to this problem: 1. change register() in default.py of T3 app in web2py admin interface to: def register(): if not is_admin and len(settings.administrator_emails)0 and settings.registration_disabled==True: t2.redirect('index',flash=T

[web2py:16533] Re: Optimal MVC forms summary?

2009-02-18 Thread carlo
discussion has shifted on helpers that I love but I do not suggest them working in team with designers. Helpers can fail on readability: try 4-5 annidated helpers each with 3-4 properties. My topic was rather different. - a clean separation between markup and logic is advisable or you fall in

[web2py:16536] custom form docs?

2009-02-18 Thread carlo
Are there any docs/examples about the recently implemented custom forms? thank you carlo --~--~-~--~~~---~--~~ 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:16538] Re: hosting for non-sysadmin

2009-02-18 Thread mdipierro
Usually if they support cherrypy, web2py works too. On Feb 18, 4:26 pm, Alexandre Miguel de Andrade Souza alexandrema...@gmail.com wrote: 2009/2/18 mattynoce mattyn...@gmail.com hi all. i know hosting has come up a lot on this group, and i have read as many posts as i could find. but

[web2py:16539] Re: Optimal MVC forms summary?

2009-02-18 Thread carlo
:-) It's the same as trying a 4-5 dimensional dict/list with 3-4 elements each. You don't want to be doing that either. with helpers you get a clear advantage: you can easily get rid of them if you want, sometimes more difficult with lists. -  a clean separation between markup and logic

[web2py:16540] Re: google and openid authentication

2009-02-18 Thread Michael
I program for a private school outside Philadelphia. SSO is clearly becoming an important issue. I'd also like to get some feedback on Google and Active Directory authentication. Our users can login to our windows domain while on campus and remotely from the cloud. I need to create session

[web2py:16541] Sessions beginning with - - 1 - xxxx

2009-02-18 Thread Joe Barnhart
I've noticed a bunch of weird session files left behind in my directory -- especially after using my SSH tunnel to admin the site. I suspect the localhost address of 127.0.0.1 is being botched by the session handler into creating these un-removable files. Has anyone else noticed them, or are

[web2py:16542] Drop down

2009-02-18 Thread rick hess
Guys; So I'm brand new to web2py but I have a need to create a web2py application that has the capability of creating trouble tickets for our physical plant/facility. For instance we'll have an electrical ticket, a plumbing ticket, a mechanical ticket etc. So far I have defined a table to

[web2py:16543] Re: Really irritating loss of code

2009-02-18 Thread weheh
I'm not sure if this is helpful, or even if it will be considered on- thread, but here goes anyway. Is there any way to specify the text editor of my choice? That way, if I choose emacs or vi and then access the controler or view or ... the file will come up in my editor (vi, emacs, ...). There

[web2py:16544] Re: web2py is just clean fun

2009-02-18 Thread jlegler
This is exactly how I feel. I started using web2py to do a very small project at work and the project's scope has expanded dramatically because I am able to do things so quickly with it. I really haven't found a truly showstopping issue yet and when I do get hung up I post on here and have a

[web2py:16545] Re: Sessions beginning with - - 1 - xxxx

2009-02-18 Thread mdipierro
What is the exact name of one of these files? massimo On Feb 18, 6:23 pm, Joe Barnhart joe.barnh...@gmail.com wrote: I've noticed a bunch of weird session files left behind in my directory -- especially after using my SSH tunnel to admin the site. I suspect the localhost address of

[web2py:16546] Re: web2py is just clean fun

2009-02-18 Thread mdipierro
Thank you in the name of all those who have contributed to web2py. Please tell everybody. ;-) Massimo On Feb 18, 8:02 pm, jlegler jleg...@gmail.com wrote: This is exactly how I feel.  I started using web2py to do a very small project at work and the project's scope has expanded dramatically

[web2py:16547] Re: Really irritating loss of code

2009-02-18 Thread mdipierro
when using admin, we cannot assume you are on localhost. If you are on localhost and want to use emacs you can but you have to access the file using the filesystem. Massimo On Feb 18, 7:31 pm, weheh richard_gor...@verizon.net wrote: I'm not sure if this is helpful, or even if it will be

[web2py:16548] Re: Drop down

2009-02-18 Thread mdipierro
here is one possible solution (may contain typos) def index(): form1=SQLFORM(db.electrical_ticket) form2=SQLFORM(dbmechanical_ticket) if form1.accepts(..): ... if form2.accepts(..): return dict(form1=form1,form2=form2) in view/default/index.html form select name=type

[web2py:16549] Re: google and openid authentication

2009-02-18 Thread mdipierro
I do not have anything immediately useful but I agree this should not too difficult. I will look it up. Massimo On Feb 18, 4:45 pm, Michael mafed...@gmail.com wrote: I program for a private school outside Philadelphia. SSO is clearly becoming an important issue.  I'd also like to get some

[web2py:16550] link from database

2009-02-18 Thread ural
Hi, I am a beginner in python and web2py. I need help for a linking problem. There are different samples about links in documentations but ı could not find any sample link to a file which has ''. . . . href=table.field.value. . . . There are some examples for 'images' but in this case you do