[web2py:21658] howto apply a drupal theme to web2py

2009-05-11 Thread mdipierro
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 90% of the times) 4) move layout.html into yourapp/views/layout.htm

[web2py:21657] Re: What's the latest on uploading?

2009-05-11 Thread mdipierro
BTW... if you have an image it should also show a preview under the file input field. On May 11, 11:28 pm, mdipierro wrote: > Got it. This is a bug, not a missing feature. I just fixed it in > trunk. > > If your auth_user table contains images you do not need to reload them > when updating the p

[web2py:21656] Re: What's the latest on uploading?

2009-05-11 Thread mdipierro
Got it. This is a bug, not a missing feature. I just fixed it in trunk. If your auth_user table contains images you do not need to reload them when updating the profile. Please give it a try. Massimo On May 11, 10:51 pm, Jason Brower wrote: > When uploading files with the forms, I don't have

[web2py:21655] Re: What's the latest on uploading?

2009-05-11 Thread Jason Brower
When uploading files with the forms, I don't have the previously used file there, and I have to select a new file if I want my validation to work. (A file is required in my table model.) This is a major issue, as all users have to have a copy of their profile picture every time the change their p

[web2py:21654] Re: Auth API - Registration_Key

2009-05-11 Thread Yannick
Oh OK I see... Thanks :) Yannick P. On May 11, 9:58 pm, mdipierro wrote: > Yes, sometime later toady or tomorrow. > > On May 11, 8:40 pm, Yannick wrote: > > > Yes I did understand that part... I was just wondering if the fix will > > be include the coming version of Auth API in order to have th

[web2py:21653] Re: Auth API - Registration_Key

2009-05-11 Thread mdipierro
Yes, sometime later toady or tomorrow. On May 11, 8:40 pm, Yannick wrote: > Yes I did understand that part... I was just wondering if the fix will > be include the coming version of Auth API in order to have this two > requirements possible: > - A simple welcome registration email and password r

[web2py:21652] Re: os.system command works in Python shell, but not in a Web2py function

2009-05-11 Thread mdipierro
In trunk, look at the file applications/admin/controllers/gae.py It provides an example of suprocess + ajax to interact with subprocess. On May 11, 8:13 pm, Francisco Gama wrote: > - does that call return anything at all? > For example, if you try: > print 'A' > os.system(...) > print 'B' > >

[web2py:21651] Re: Can I create an 'assotiated' input field?

2009-05-11 Thread mdipierro
This is not correct. In web2py datetime is a proper datetime from datetime import datetime a=datetime(1800,1,1,12,0,0) db.define_time('test,SQLField('adatetime','datetime',default=a)) and it works on every architecture including GAE. Instead float numbers would not have enough precision to repr

[web2py:21650] Re: Auth API - Registration_Key

2009-05-11 Thread Yannick
Yes I did understand that part... I was just wondering if the fix will be include the coming version of Auth API in order to have this two requirements possible: - A simple welcome registration email and password retrieval. Because right now since the registration_key is empty in order for me to

[web2py:21649] Re: os.system command works in Python shell, but not in a Web2py function

2009-05-11 Thread Francisco Gama
- does that call return anything at all? For example, if you try: print 'A' os.system(...) print 'B' do you ever get see 'A' and 'B' ? - have you tried using subprocess instead of os.system? For example: import subprocess subprocess.call("E:/Python/web2py_src/web2py/applications/ TheReckoning/ p

[web2py:21648] Re: Can I create an 'assotiated' input field?

2009-05-11 Thread Steve Shepherd
@Massimo I have seen that the datetime type is not a fundamental of Python but really a floating number based on seconds since 1970. I still don't understand why we could not intercept the method call and pass the value that will work to the GAE interface layer. On Mon, May 11, 2009 at 5:11 PM, m

[web2py:21647] Re: sphinx doc II: document your app, access from admin, docstring on frontend

2009-05-11 Thread Yarko Tymciurak
On Mon, May 11, 2009 at 3:50 PM, Tim Michelsen wrote: ... > So with reference to my post [1], I present a modified > welcome application which has the following new > features: > 1) A Sphinx template that can be used to document the > application. I think this a very convenient feature. >

[web2py:21646] Re: sphinx doc II: document your app, access from admin, docstring on frontend

2009-05-11 Thread mdipierro
Great work Tim. It will take some time to digest it. On May 11, 3:50 pm, Tim Michelsen wrote: > Dear web2py-community, > after creating the Sphinx-based documentation > infrastructure for web2py I though: > Why not documenting also the applications? > > You are all moving fast. I couldn't resist

[web2py:21645] Re: What's the latest on uploading?

2009-05-11 Thread mdipierro
what do you mean by "upload information"? On May 11, 3:37 pm, Jason Brower wrote: > I want to keep my upload information when I use the auth profile page. > Wasn't there a way to do this recently added to web2py? > It's a great release btw. > Regards, > Jason Brower --~--~-~--~~-

[web2py:21644] Re: Auth API - Registration_Key

2009-05-11 Thread mdipierro
because no mailer is set by default. On May 11, 3:20 pm, Yannick wrote: > Oh ok.. you right the password retrieval don't work anymore... I just > realized that the new version has been posted 1.62... the Auth Api > included that clean-up ? > > Thanks for all... > Yannick P. > > On May 8, 10:14 p

[web2py:21643] Re: web2py on Google App Engine Blog

2009-05-11 Thread mdipierro
wow. that is a pleasant surprise! On May 11, 2:54 pm, Yarko Tymciurak wrote: > Wow! FrontPage; Top Headline! > Massimo - this is not doubt because of the Google App Engine deploy in the > recent video.. > > Right now you get no "GAE DEPLOY" menus without a valid GAE_APPCFG setting > in your ap

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

2009-05-11 Thread mdipierro
The following is not the appriate way of dealing with it: > if T.http_request_language != T.accepted_language: > flash("Tell your admin to add language %s to this app!" > % T.http_request_language ) > > if T.accepted_language==None: > # try to force some language; > # if it's still

[web2py:21641] os.system command works in Python shell, but not in a Web2py function

2009-05-11 Thread NetHead
Hey Gang: When a user visits a page, I am attempting to run the following lines: import os os.system("E:/Python/web2py_src/web2py/applications/TheReckoning/ prod_scripts/dropship_copy_to_opc.bat") This exact command works fine from a Python interactive session, BUT when put into a Web2py fu

[web2py:21640] sphinx doc II: document your app, access from admin, docstring on frontend

2009-05-11 Thread Tim Michelsen
Dear web2py-community, after creating the Sphinx-based documentation infrastructure for web2py I though: Why not documenting also the applications? You are all moving fast. I couldn't resist... So with reference to my post [1], I present a modified welcome application which has the following new

[web2py:21639] What's the latest on uploading?

2009-05-11 Thread Jason Brower
I want to keep my upload information when I use the auth profile page. Wasn't there a way to do this recently added to web2py? It's a great release btw. Regards, Jason Brower --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[web2py:21638] Re: Auth API - Registration_Key

2009-05-11 Thread Yannick
Oh ok.. you right the password retrieval don't work anymore... I just realized that the new version has been posted 1.62... the Auth Api included that clean-up ? Thanks for all... Yannick P. On May 8, 10:14 pm, mdipierro wrote: > The Auth API need some more cleanup because this solution will no

[web2py:21637] Re: web2py on Google App Engine Blog

2009-05-11 Thread Yarko Tymciurak
Wow! FrontPage; Top Headline! Massimo - this is not doubt because of the Google App Engine deploy in the recent video.. Right now you get no "GAE DEPLOY" menus without a valid GAE_APPCFG setting in your app. I think it would be nice (?) to have a GAE deploy menu regardless, and if this isn't se

[web2py:21636] Re: web2py on Google App Engine Blog

2009-05-11 Thread JorgeR
cool! On May 11, 1:30 pm, Markus Gritsch wrote: > Yay! > > http://googleappengine.blogspot.com/2009/05/web2py-support-new-datast... > > LG, Markus --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framewor

[web2py:21635] web2py on Google App Engine Blog

2009-05-11 Thread Markus Gritsch
Yay! http://googleappengine.blogspot.com/2009/05/web2py-support-new-datastore-backend.html LG, Markus --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email

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

2009-05-11 Thread Yarko Tymciurak
On Mon, May 11, 2009 at 1:23 PM, Yarko Tymciurak wrote: > Is there some discussion needed on this, guruyaya? > For example, T.__init__ can set T.accepted_language=None for starters... > Is it additionally necessary to have T.accepted_language = 'Default' ? > > For example, if request.env.http_ac

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

2009-05-11 Thread Yarko Tymciurak
Is there some discussion needed on this, guruyaya? For example, T.__init__ can set T.accepted_language=None for starters... Is it additionally necessary to have T.accepted_language = 'Default' ? For example, if request.env.http_accept_language doesn't have a translation file in your app, do appli

[web2py:21632] Re: dataTables

2009-05-11 Thread JohnMc
Annet, It worked like a champ. thx. On May 11, 10:28 am, JohnMc wrote: > Annet, > > Had not solved it as yet. Guess I am just slow. :) > > I'll give this a go and I bet it will work! thanks for the tip. > > JohnMc > > On May 11, 6:37 am, annet.verm...@gmail.com wrote: > > > I don't know if you'

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

2009-05-11 Thread mdipierro
I will fix this "T.accepted_language is not always defined" and make sure tis defaults to None if no language has been accepted. Massimo On May 11, 12:07 pm, Yarko Tymciurak wrote: > It seems you are correct from a few perspectives: > >- T.accepted_language is not always defined (it's only

[web2py:21630] Tip of the day: Improved SQLTABLE (with edit and remove options)

2009-05-11 Thread blackthorne
db.table.field.represent = lambda value: UL( LI(A(T('edit'),_href=URL(r=request, c='default',f='data/update/ table', args=str(value, LI(A(T('remove'),_href=URL(r=request, c='default',f='data/ delete/table', args=str(value) then make your SQLTABLE, e.g.: SQLTABLE(db().s

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

2009-05-11 Thread Yarko Tymciurak
It seems you are correct from a few perspectives: - T.accepted_language is not always defined (it's only reference is in T.force - where it is set); for this to be useful it would have to be always set, be something consistent; - T.http_accept_language is set per request; accepted_l

[web2py:21628] how to add custom field to SQLFORM

2009-05-11 Thread Jurgis Pralgauskis
Hello, I want to use customised dropdown field in my app, but dont want to to duplicate the code.. my dropdown has the tree structure in it like in http://groups.google.com/group/web2py/browse_thread/thread/7091d1d67e28a914/c7df08450949c0e8 I found I could use form.components[0].append(myfiel

[web2py:21627] Re: web2py 1.62rc2 (RFC) (VIDEO)

2009-05-11 Thread mdipierro
yes, we should have a party. We could have one of the DePaul Island on SecondLife. Massimo On May 11, 11:01 am, DenesL wrote: > One goes away for one week and wow! nice... good job guys. > And we also have over a 1000 members now, did I miss the celebration?. > > On May 11, 2:10 am, mdipierro

[web2py:21626] Re: web2py 1.62rc2 (RFC) (VIDEO)

2009-05-11 Thread DenesL
One goes away for one week and wow! nice... good job guys. And we also have over a 1000 members now, did I miss the celebration?. On May 11, 2:10 am, mdipierro wrote: > Hi everybody I posted web2py 1.62rc2 > > http://www.web2py.com/examples/static/1.62rc2/web2py_src.ziphttp://www.web2py.com/exa

[web2py:21625] Re: Table shortcuts

2009-05-11 Thread mdipierro
More than this I would prefer to have db.define_table('mytable', > SQLField(...), > ... > actual_filename='myapp_mytable', > field_prefix=None', > ) The problems are: - This requires many small changes to sql.py and, if done, needs to lots of testing. - This requires introducing

[web2py:21624] Re: dataTables

2009-05-11 Thread JohnMc
Annet, Had not solved it as yet. Guess I am just slow. :) I'll give this a go and I bet it will work! thanks for the tip. JohnMc On May 11, 6:37 am, annet.verm...@gmail.com wrote: > I don't know if you've solved the problem yet, but anyway, I put the > dataTables images in a folder in static/m

[web2py:21623] Re: web2py 1.62rc2 (RFC) (VIDEO)

2009-05-11 Thread mdipierro
Does the problem occur only with shell? If so, are you doing db.commit() after that statment? This may be a quirk of how sqlite handles transactions? Which OS? Are you sure the behavior changed from 1.61 to 1.62? On May 11, 9:32 am, Kuba Kucharski wrote: > > Can you explain better? Do you think

[web2py:21622] Re: web2py 1.62rc2 (RFC) (VIDEO)

2009-05-11 Thread Kuba Kucharski
> Can you explain better? Do you think this bug in web2py or your code? might it be locks on sqlite that I see such things? I have to work on (semi)-production environment. should I move to mysql or pgsql now to avoid problems? my code seems ok.. if not.. : could you please do: db.auth_user[10

[web2py:21621] Table shortcuts

2009-05-11 Thread Álvaro Justen [Turicas]
Hi, sometimes we use prefixes to identify tables, like: myapp_mytable I use it because I have only one DB per site - and one site can have multiple apps. But is very painful to do db.myapp_mytable.somefield. So, I request a new feature: db.define_table('myapp_mytable', shortcut='mytable',

[web2py:21620] Re: web2py 1.62rc2 (RFC) (VIDEO)

2009-05-11 Thread mdipierro
Can you explain better? Do you think this bug in web2py or your code? On May 11, 8:58 am, Kuba Kucharski wrote: > > does not change registration key. the value remains the same. it does > > not throw an error. > > i was wrong, it changes, it looks like I am appending every value to > the end of

[web2py:21619] Re: web2py 1.62rc2 (RFC) (VIDEO)

2009-05-11 Thread Kuba Kucharski
> does not change registration key. the value remains the same. it does > not throw an error. i was wrong, it changes, it looks like I am appending every value to the end of the previous key with this update -- Kuba --~--~-~--~~~---~--~~ You received this messag

[web2py:21618] Re: web2py 1.62rc2 (RFC) (VIDEO)

2009-05-11 Thread mdipierro
The admin page is almost fully internationalized. we just do have a chinese translation. Massimo On May 11, 7:53 am, "Zoom.Quiet" wrote: > On Mon, May 11, 2009 at 14:10, mdipierro wrote: > > > Hi everybody I posted web2py 1.62rc2 > > >http://www.web2py.com/examples/static/1.62rc2/web2py_src.zi

[web2py:21617] Re: web2py 1.62rc2 (RFC) (VIDEO)

2009-05-11 Thread Kuba Kucharski
from console: db.auth_user[10]=dict(last_name='ChangedName') works and changes the last name of a user with id 10. db.auth_user[10]=dict(registration_key=' ' ) or db.auth_user[10]=dict(registration_key=' 61348d9e207fdbaab54b90333b4b1edb' ) does not change registration key. the value remains t

[web2py:21616] Re: crud problems log events

2009-05-11 Thread NewBeen
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 i gonna post my model and control maybe im doing something wrong ### Model ## try: from gluo

[web2py:21615] Re: web2py 1.62rc2 (RFC) (VIDEO)

2009-05-11 Thread Zoom.Quiet
On Mon, May 11, 2009 at 14:10, mdipierro wrote: > > Hi everybody I posted web2py 1.62rc2 > > http://www.web2py.com/examples/static/1.62rc2/web2py_src.zip > http://www.web2py.com/examples/static/1.62rc2/web2py_win.zip > http://www.web2py.com/examples/static/1.62rc2/web2py_osx.zip > > There are man

[web2py:21614] Re: web2py 1.62rc2 (RFC) (VIDEO)

2009-05-11 Thread Kuba Kucharski
Hi, Looks like the registration process is still broken, you can't have automatic removal of a registration key (by email verification). Is it true? I've been asking for help in this matter some time ago(subject: auth in trunk). It is about auth.settings.block_registration. Maybe it is only my p

[web2py:21613] GrooverWiki don't work

2009-05-11 Thread LordMax
Hi I'm a total newbie of web2py and I need some help with the GrooverWiki app It don't work. I install it via "upload application" and it's all ok. I see the "GrooverWiki" app in the list but when I call it it has an error: Someone can help me? Thanks -

[web2py:21612] Re: dataTables

2009-05-11 Thread annet . vermeer
I don't know if you've solved the problem yet, but anyway, I put the dataTables images in a folder in static/media/datatables and in the demo.css file changed the following URLs: .paginate_disabled_previous { background-image: url('../media/dataTables/back_disabled.jpg'); } .paginate_en

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

2009-05-11 Thread guruyaya
Well, I had it in mind, but it won't work very well. First of all, I can't consider this a part of the API, and it can change over time. One of the reason I like web2py is the API stability. The other problem I have, is in the case the language does not exist. Say I created a site with Italian as