[web2py:21659] Re: Is there a standart way to find out what language are you using?

2009-05-12 Thread guruyaya
I think there will be a problem, in case I have a none standart setting in my browser. If I don't have English defined in my browser, only Italian, for example, it will throw an error, even if I wrote T.current_languages=['en','en-en'], trying to read the accepted language. On May 11, 11:59 pm,

[web2py:21660] Re: Is there a standart way to find out what language are you using?

2009-05-12 Thread Álvaro Justen [Turicas]
On Tue, May 12, 2009 at 5:07 AM, guruyaya guruy...@gmail.com wrote: I think there will be a problem, in case I have a none standart setting in my browser. If I don't have English defined in my browser, only Italian, for example, it will throw an error, even if I wrote

[web2py:21661] broken shell with -M ?

2009-05-12 Thread AchipA
There seems to be the problem when trying to invoke shells with models (checked with latest from launchpad). For example, admin and examples both fail miserably, welcome works. The actual error seems to be referencing things like request.env in some of the models. This behaviour also happens to

[web2py:21663] web2py diffusion and long-term support vs django - a professional choice...

2009-05-12 Thread giohappy
Dear web2py group, I'm going to adobt a python web application framework for my next works, and until yesterday I was oriented to Django, as it seems to give me the best tradoff between simplicity, rapidity, power, etc A friend of mine ha suggested me to have a look at web2py, and I admit I've

[web2py:21664] Re: web2py diffusion and long-term support vs django - a professional choice...

2009-05-12 Thread Wes James
On Tue, May 12, 2009 at 3:30 AM, giohappy gioha...@gmail.com wrote: Dear web2py group, I'm going to adobt a python web application framework for my next works, and until yesterday I was oriented to Django, as it seems to Last October I was looking for a framework to move to as I have been

[web2py:21665] Re: web2py diffusion and long-term support vs django - a professional choice...

2009-05-12 Thread Zoom.Quiet
On Tue, May 12, 2009 at 17:30, giohappy gioha...@gmail.com wrote: Dear web2py group, I'm going to adobt a python web application framework for my next works, and until yesterday I was oriented to Django, as it seems to give me the best tradoff between simplicity, rapidity, power, etc A

[web2py:21666] Re: broken shell with -M ?

2009-05-12 Thread mdipierro
fixed in trunk. Please try it and let me know if it is ok. On May 12, 6:47 am, AchipA attila.cs...@gmail.com wrote: There seems to be the problem when trying to invoke shells with models (checked with latest from launchpad). For example, admin and examples both fail miserably, welcome works.

[web2py:21667] wiki password reset error

2009-05-12 Thread Wes James
Massimo, I was trying to do a password reset on the wiki, but it says Unable to Send Email -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:21668] Re: Is there a standart way to find out what language are you using?

2009-05-12 Thread mdipierro
In trunk we now have: T.requested_languages (a parsed list of languaged accepted by the client) T.current_languages (a list of languages that should not be translated, set by the developer) T.accepted_language (the language chosen by web2py based on availability) T.language_file (the file

[web2py:21669] Re: web2py diffusion and long-term support vs django - a professional choice...

2009-05-12 Thread mdipierro
I am obviously partial in this but here are my two cents: - web2py is here to stay. I have committed enough time on this already to let it die anytime too, so have many of the other contributors and there is many of them. - as far as usability is concerned, you should try it yourself and here

[web2py:21671] No gui server admin

2009-05-12 Thread Jason Brower
It seems I don't have the gui server admin screen anymore, just the console based. How do I get it back? I am using ubuntu 9.04. --- Jason Brower --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py Web

[web2py:21674] Re: No gui server admin

2009-05-12 Thread mdipierro
almost If you specify a password in the command line ./web2py -a [password] ([password] can be recycle the previous password) NO GUI If you do not specify a password ./web2py.py then you should get the GUI. In this latter case if web2py cannot find Tk or Tk is broken, then no gui and it

[web2py:21675] Re: web2py Version 1.61.4 SQLFORM id_label

2009-05-12 Thread carlo
Thank you, but in my book (pdf version) at page 167 I have id_label among SQLFORM parameters, maybe a known misprint ? carlo On 12 Mag, 18:25, mdipierro mdipie...@cs.depaul.edu wrote: there is no id_label. You can do         form=SQLFORM(db2[table],records[0],fields=flds,\                

[web2py:21676] Re: No gui server admin

2009-05-12 Thread Jason Brower
It may be nice to be a little more verbose about that. Even something like, TK not found, if you would like the GUI you can install blabla bla. Regards, Jason On Tue, 2009-05-12 at 09:28 -0700, mdipierro wrote: almost If you specify a password in the command line ./web2py -a [password]

[web2py:21677] Re: web2py Version 1.61.4 SQLFORM id_label

2009-05-12 Thread mdipierro
very odd... I do not think that ever existing else it would have been a breaking of backward compatibility. Must be a typo. Massimo On May 12, 11:31 am, carlo syseng...@gmail.com wrote: Thank you, but in my book (pdf version) at page 167 I have id_label among SQLFORM parameters, maybe a known

[web2py:21679] Re: No gui server admin

2009-05-12 Thread mdipierro
OK. Now there is a warning in the trunk version. ;-) On May 12, 11:37 am, Jason Brower encomp...@gmail.com wrote: It may be nice to be a little more verbose about that.  Even something like, TK not found, if you would like the GUI you can install blabla bla. Regards, Jason On Tue,

[web2py:21690] jQuery sortlist in web2py

2009-05-12 Thread Tim Michelsen
Hello, dis somebody already try out to sort a data base generated list (SQLTABLE) with jQuery via dragdrop? I would like to have an interface like: http://www.swartzfager.org/ctcm/ where I can sort edit delete the TODO items and the changes would get updated in the database. Other examples:

[web2py:21692] Re: wiki page name recomendation

2009-05-12 Thread mdipierro
I do not have much time to maintain that app. I am looking for somebody to take over maintenance. It is less than 100 lines of code. Massimo On May 12, 4:55 pm, Wes James compte...@gmail.com wrote: Massimo, Would you consider making the wiki page names be created based on the title of the

[web2py:21693] Re: wiki password reset error

2009-05-12 Thread mdipierro
let me check is there are links and then I will take it down. I assume nobody is using it any more. correct? Massimo On May 12, 4:30 pm, compte...@gmail.com compte...@gmail.com wrote: Sorry,  I went to the wrong wiki (do you need to take the old one down?) old

[web2py:21694] Re: wiki password reset error

2009-05-12 Thread Wes James
I think your new wiki replaced this or maybe this is a demo from some other link. Aw... now I see how I got to it. I looked up web2py wiki on google and it was the second hit. I should just go to web2py.com then click on wiki link. -wes On Tue, May 12, 2009 at 4:13 PM, mdipierro

[web2py:21697] Re: wiki and rest

2009-05-12 Thread compte...@gmail.com
ok, I see on the wiki Documentation How-To why reST is being used. I guess it wouldn't be so bad if one is starting out their document thinking in this format. -wes On May 12, 4:24 pm, Wes James compte...@gmail.com wrote: What was the reason form using rest on the wiki?  (I looked on the list

[web2py:21698] Re: web2py diffusion and long-term support vs django - a professional choice...

2009-05-12 Thread Yarko Tymciurak
On Tue, May 12, 2009 at 4:30 AM, giohappy gioha...@gmail.com wrote: Dear web2py group, I'm going to adobt a python web application framework for my next works, and until yesterday I was oriented to Django, as it seems to give me the best tradoff between simplicity, rapidity, power, etc A

[web2py:21699] Re: wiki page name recomendation

2009-05-12 Thread Tim Michelsen
Would you consider making the wiki page names be created based on the title of the page? i.e., the title How-To create forms - http://.../how-to-create-forms; instead of the long encoded name. I would also like to see this. --~--~-~--~~~---~--~~ You

[web2py:21700] Re: wiki and rest

2009-05-12 Thread Tim Michelsen
Hey wes, we seem to think into the same direction... ok, I see on the wiki Documentation How-To why reST is being used. I guess it wouldn't be so bad if one is starting out their document thinking in this format. I tried to find a WYSIWYG-editor for rest and only found:

[web2py:21701] Re: web2py diffusion and long-term support vs django - a professional choice...

2009-05-12 Thread Yarko Tymciurak
On Tue, May 12, 2009 at 5:19 PM, mdipierro mdipie...@cs.depaul.edu wrote: If you have made up your mind about using web2py and you have to go through committees to have it approved you should consider: - print a copy of http://mdp.cti.depaul.edu/examples/static/web2py_vs_others.pdf

[web2py:21702] Re: jQuery sortlist in web2py

2009-05-12 Thread Tim Michelsen
yes. the KPAX appliance does that we you sort questions in a survey. Very nice. Then I knwo where to digg... What roadmap do you have for the KPAX application? Why is it not on LP? Will you merge it with the wiki app? I am currently looking into an CMS/Wiki. So currently there is: * web2py

[web2py:21703] Re: web2py diffusion and long-term support vs django - a professional choice...

2009-05-12 Thread Yarko Tymciurak
On Tue, May 12, 2009 at 3:28 PM, JohnMc maruadventu...@gmail.com wrote: .. What's you trend analysis? Would you suggest adopting web2py for a long-term investment? I ask, possibily, for an unbiased answer, as I'm going to adopt it as a backend for a public infrastructure backend...

[web2py:21705] Re: wiki and rest

2009-05-12 Thread Yarko Tymciurak
reST is easier to manage in other wikis; we need a wiki owner to see what pycon-tech, others who use this a lot have done in setup of the docutil renderers, and we hope that it will be sphinx compatible too. Tim has pointed to someone starting a live sphinx project, which could be _instead_ of a

[web2py:21706] Re: jQuery sortlist in web2py

2009-05-12 Thread mdipierro
What roadmap do you have for the KPAX application? I needs to be rewritten on top of gluon/tools and become more modular. Why is it not on LP? what does LP maan? Will you merge it with the wiki app? I am currently looking into an CMS/Wiki. So currently there is: * web2py wiki * KPAX

[web2py:21707] Re: Dzone posting

2009-05-12 Thread mikech
Great, its a very impressive project. I plan to study your code to learn Python and web2py. Also, FYI it's one of the highest ranked entries that I've added to Dzone. Mike On May 12, 1:26 pm, Speedbird ju...@techfuel.net wrote: Thanks for the entry Mike, Just FYI I am just about to release

[web2py:21708] Re: broken shell with -M ?

2009-05-12 Thread AchipA
Close, but not quite. Examples is OK, admin still chokes. Traceback (most recent call last): File /usr/src/web2py_bzr_cron/gluon/restricted.py, line 107, in restricted exec ccode in environment File applications/admin/models/access.py, line 34, in module port =

[web2py:21709] Re: jQuery sortlist in web2py

2009-05-12 Thread Yarko Tymciurak
On Tue, May 12, 2009 at 6:08 PM, mdipierro mdipie...@cs.depaul.edu wrote: Why is it not on LP? what does LP maan? I think Tim means Launchpad --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py Web

[web2py:21710] PIL on GAE

2009-05-12 Thread Tito Garrido
Is there a way to use PIL on web2py+GAE? I mean, could we reduce a picture while we're uploading it to GAE? Thanks in advance, Tito -- Linux User #387870 . _/_õ|__| ..º[ .-.___.-._| . . . . .__( o)__( o).:___ --~--~-~--~~~---~--~~ You

[web2py:21711] Re: broken shell with -M ?

2009-05-12 Thread mdipierro
We need to decide when to stop. This and the one before are not bugs. request.env stores environment variables passed to the app by the web server. when running a script with -M -S the models are executed but (by definition) there is no web server so these variables do not exist. When a model

[web2py:21712] Re: PIL on GAE

2009-05-12 Thread mdipierro
PIL includes binary modules. If GAE does not provide it already (and I do not know if they do) there is no way to install it on GAE. On May 12, 7:12 pm, Tito Garrido titogarr...@gmail.com wrote: Is there a way to use PIL on web2py+GAE? I mean, could we reduce a picture while we're uploading it

[web2py:21713] Re: howto apply a drupal theme to web2py

2009-05-12 Thread Douglas Soares de Andrade
Em Terça-feira 12 Maio 2009, às 02:31:59, mdipierro escreveu: 1) download and unzip your favorite drupal theme 2) cut and paste the content of page.php into http://www.web2py.com/php 3) retrieve the generated web2py code and save it as layout.html (this is not 100% fool proof but works

[web2py:21714] Re: PIL on GAE

2009-05-12 Thread Tito Garrido
I could find this regarding PIL + GAE: http://code.google.com/appengine/docs/python/images/installingPIL.html But I don't know how could I resize the picture during the upload... On Tue, May 12, 2009 at 9:42 PM, mdipierro mdipie...@cs.depaul.edu wrote: PIL includes binary modules. If GAE does

[web2py:21715] Re: howto apply a drupal theme to web2py

2009-05-12 Thread mdipierro
I think we can draft a minimal set of specs and build a repository of converted themes. On May 12, 7:47 pm, Douglas Soares de Andrade dsandr...@gmail.com wrote: Em Terça-feira 12 Maio 2009, às 02:31:59, mdipierro escreveu: 1) download and unzip your favorite drupal theme 2) cut and paste

[web2py:21716] Re: PIL on GAE

2009-05-12 Thread mdipierro
This is about installing PIL locally and that is easy. Does it mean that it is already available on GAE? I do not know. On May 12, 8:17 pm, Tito Garrido titogarr...@gmail.com wrote: I could find this regarding PIL + GAE:http://code.google.com/appengine/docs/python/images/installingPIL.html

[web2py:21717] Re: Dzone posting

2009-05-12 Thread mdipierro
It is an excellent forum. I need to link from the web2py page. asap. Massimo On May 12, 6:19 pm, mikech mp.ch...@gmail.com wrote: Great, its a very impressive project.  I plan to study your code to learn Python and web2py.  Also, FYI it's one of the highest ranked entries that I've added to

[web2py:21718] Re: PIL on GAE

2009-05-12 Thread Tito Garrido
Seems that it has a kind of Image support: http://code.google.com/intl/pt-BR/appengine/docs/python/images/usingimages.html On Tue, May 12, 2009 at 10:28 PM, mdipierro mdipie...@cs.depaul.edu wrote: This is about installing PIL locally and that is easy. Does it mean that it is already

[web2py:21719] Re: PIL on GAE

2009-05-12 Thread mdipierro
This avatar = db.BlobProperty() is done transparently by web2py db.define_table('user',SQLField('avatar','upload')) This from google.appengine.api import images is useful and I did not know about it. Massimo On May 12, 8:31 pm, Tito Garrido titogarr...@gmail.com wrote: Seems that

[web2py:21720] Re: PIL on GAE

2009-05-12 Thread mdipierro
and this class Image (webapp.RequestHandler): def get(self): greeting = db.get(self.request.get(img_id)) if greeting.avatar: self.response.headers['Content-Type'] = image/png self.response.out.write(greeting.avatar) else: self.error(404) of course is all done by

[web2py:21721] Re: PIL on GAE

2009-05-12 Thread Tito Garrido
Cool... I'm wondering how can I use that resize function on web2py... On Tue, May 12, 2009 at 10:45 PM, mdipierro mdipie...@cs.depaul.edu wrote: and this class Image (webapp.RequestHandler): def get(self): greeting = db.get(self.request.get(img_id)) if greeting.avatar:

[web2py:21722] Re: PIL on GAE

2009-05-12 Thread mdipierro
I think you want a resize validator that resizes a file as it is uploaded. this should do it but I let you do the debugging. ;-) class RESIZE: def __init__(self,nx=32,ny=32,error_message='not an image'): (self.nx,self.ny,self.error_message)=(nx,ny,error_message) def

[web2py:21723] Re: traveling to China

2009-05-12 Thread hongde.liu
first you'd better scheduled a Hotel,such as 7days(http://www.7daysinn.cn/) and also rujia(http://www.homeinns.com) and since that the subway of beijing is crowded,so when you travel,you'd better take taxi final I think the website is suitable for you http://www.beijingtraveltips.com/

[web2py:21724] Re: traveling to China

2009-05-12 Thread hongde.liu
Welcome to BeiJing China,and since that I am not in BeiJing ,but NanJing,so I'd like to take you some advice before you come to BeiJing first you'd better scheduled a Hotel,such as 7days(http://www.7daysinn.cn/) and also rujia(http://www.homeinns.com) and since that the subway of beijing is

[web2py:21725] HTML helpers, TAG, cpickle, colgroup

2009-05-12 Thread Russell
Hi, I've recently experienced two issues with the html helpers when trying to implement colgroup. First, the TAG helper doesn't seem to pickle (but all the others do). Have I missed something here? import cPickle htm1 = cPickle.dumps(DIV()) htm2 = cPickle.dumps(TAG.colgroup()) Traceback

[web2py:21726] Re: RFC auto fields

2009-05-12 Thread Douglas Soares de Andrade
Em Terça-feira 14 Abril 2009, às 23:26:40, mdipierro escreveu: I have been thinking about this. Even if I do not like your proposal Yarko, I think you have a better point than you think. In fact form_factory would not work with my proposal syntax but it would work with yours and that is a big

[web2py:21727] Re: crud problems log events

2009-05-12 Thread mdipierro
Please try again the latest code in trunk. On May 11, 8:27 am, NewBeen rui.t...@gmail.com wrote: i try to use the last version 1.62rc2 and a still with the same problem, now show right what is doing but still showing none in the record something like Record None create Record None update

[web2py:21728] Re: how to add custom field to SQLFORM

2009-05-12 Thread mdipierro
I think you need to create a widget. I cannot say because it really depends on details. On May 11, 12:02 pm, Jurgis Pralgauskis jurgis.pralgaus...@gmail.com wrote: Hello, I want to use customised dropdown field  in my app, but dont want to to duplicate the code.. my dropdown has the tree

[web2py:21729] Re: HTML helpers, TAG, cpickle, colgroup

2009-05-12 Thread mdipierro
On May 12, 10:16 pm, Russell russell.mcmur...@gmail.com wrote: Hi, I've recently experienced two issues with the html helpers when trying to implement colgroup. First, the TAG helper doesn't seem to pickle (but all the others do). Have I missed something here? import cPickle htm1 =

[web2py:21730] Re: web2py diffusion and long-term support vs django - a professional choice...

2009-05-12 Thread JohnMc
I would offer one other suggestion. - If standards committee are part of any assessment process; consider pitching Python as the language being used for the development. This would be especially true if Python is on the 'approved' stds list in the company. JohnMc On May 12, 5:19 pm, mdipierro

[web2py:21731] new auth functions in trunk (basic, email/gmail, ldap)

2009-05-12 Thread mdipierro
Please try this 1) to authenticate with gmail auth=Auth(globals(),db) from gluon.contrib.login_methods.email_auth import email_auth auth.settings.login_methods.append(email_auth()) 2) to authenticate using basic authentication of a third party server auth=Auth(globals(),db) from

[web2py:21732] Difficulty storing a simple (non-SQL) object in the session

2009-05-12 Thread lesh
I am having difficulty storing a simple (non-SQL) object in the session. I wondered if anyone could give me a clue as to why. The following works: def update_profile(): if (session.sections!=None): session.sections=None return dict(sections='spam') else:

[web2py:21733] Re: web2py diffusion and long-term support vs django - a professional choice...

2009-05-12 Thread mdipierro
I agree. Consider this: practically every school/college/university in the country has switched to Python in their intro sequence programming courses within the last 3 years. These people are hitting the job market now. This means in the long term it should be easy for any company to find Python

[web2py:21734] Webfaction + web2py question

2009-05-12 Thread John Pontious
I have been attempting to get web2py up and running on webfaction. And, based on the nice writeups I have found, I think I am pretty close. For reference, I followed: http://mdp.cti.depaul.edu/AlterEgo/default/show/202 With my current configuration, I am able to access my web2py app:

[web2py:21735] Re: Difficulty storing a simple (non-SQL) object in the session

2009-05-12 Thread mdipierro
You cannot store your own classes in the session. This is because the session is retrieved automatically for you before your controller is called and outside the scope where the function is defined. This is a general problem with Python. Try this: import picke class A: pass