[web2py:28726] Re: Bug with T.force()

2009-08-16 Thread mdipierro
Is this under windows? On Aug 15, 1:27 pm, hcvst wrote: > 1.65.11 (2009-08-04 16:42:46) > > On Aug 15, 7:05 pm, mdipierro wrote: > > > which web2py version (date)? > > > On Aug 15, 8:12 am, hcvst wrote: > > > > Ok, there's also a mistake in my db.py it should say > > > > if session.lang: > > >

[web2py:28727] Re: logo - another font & colors combination

2009-08-16 Thread mdipierro
Why do we have two threads? Can you mode this duscussion on the other thread? Massimo On Aug 16, 1:02 am, Yarko Tymciurak wrote: > On Sat, Aug 15, 2009 at 4:47 PM, Jonathan Lundell wrote: > > > > > On Aug 15, 2009, at 2:17 PM, Yarko Tymciurak wrote: > > > On Sat, Aug 15, 2009 at 3:38 PM, Jonath

[web2py:28728] Re: Bug with T.force()

2009-08-16 Thread hcvst
Hi Massimo, Debian Etch (original post) Ubuntu 9.04 (shell example) HC On 16 Aug., 09:37, mdipierro wrote: > Is this under windows? > > On Aug 15, 1:27 pm, hcvst wrote: > > > 1.65.11 (2009-08-04 16:42:46) > > > On Aug 15, 7:05 pm, mdipierro wrote: > > > > which web2py version (date)? > > > >

[web2py:28730] Re: logo

2009-08-16 Thread weheh
Its sounding somewhat like there's still some pent up creative juice out there to optimize this logo further. I don't recall there ever having been an official logo competition ... it seems to have proceeded somewhat ad hoc. I'm not speaking for myself, in particular, but it seems like some others

[web2py:28731] Re: Bug with T.force()

2009-08-16 Thread mdipierro
I am uploading a new version in trunk (1173/1078). Can you check if the problem is fixed? Massimo On Aug 16, 2:43 am, hcvst wrote: > Hi Massimo, > > Debian Etch (original post) > Ubuntu 9.04 (shell example) > > HC > > On 16 Aug., 09:37, mdipierro wrote: > > > Is this under windows? > > > On Au

[web2py:28732] Re: Bug with T.force()

2009-08-16 Thread hcvst
Thanks Teru, I just tried again using the version below on Ubunutu 9.04 and Python 2.5.4. web2py Shell Version 1.65.11 (2009-08-04 16:42:46) In[0]: T.force('fr-fr') Out[0]: ['fr-fr'] In[1]: T('Hello World').xml() Out[1]: 'Bonjour Monde' In[2]: T.force('en') Out[2]: ['en'] In[3]: T('Hello Wor

[web2py:28733] Re: logo

2009-08-16 Thread weheh
I'm sure MDP wants this logo ASAP for the final draft of book v2. However, this thread sounds somewhat like there's still some pent up creative juice out there to optimize the logo further. I don't recall there ever having been an official logo competition ... it seems to have proceeded somewhat

[web2py:28734] Re: logo

2009-08-16 Thread mdipierro
Historically this is what happened... 1) People started submitting logos more than one year go. Early logos were posted here: http://www.web2py.com/AlterEgo/default/show/97 2) We called for a competition on this list but no new logos were submitted. We did not have a formal vote of existing logos

[web2py:28735] Re: Pb with link "role based access control" on Web2py homepage

2009-08-16 Thread Serge Hulne
Well, Theres is a "{" missing before the "=URL(" call and there seems to be an url embedded in the string f='tools', i.e. f='tools ' . Serge. On 15 août, 15:06, Yarko Tymciurak wrote: > On Sat, Aug 15, 2009 at 8:05 AM, Yarko Tymciurak wrote: > > this is a good web2py user quiz:  that link on

[web2py:28736] Re: Simple question -- where is name of upload file stored?

2009-08-16 Thread weheh
OK, by getting from the trunk the gluon/sql.py and gluon.sqlhtml.py files, this problem is fixed in the 1.65.11 release. Thank you Massimo and Yarko. On to my next adventure. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gr

[web2py:28737] Re: logo

2009-08-16 Thread weheh
Amen. --~--~-~--~~~---~--~~ 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 this group, send email to web2py+unsubscr...@googlegroups.c

[web2py:28738] Re: logo - another font & colors combination

2009-08-16 Thread Peterle
two threads: As I mentioned, I wasn't able to upload the file (a matter of permissions), so I was forced to sent an attachment by email. The font is "DejaVu Sans Bold", the same as the squared logo. Colors are the same of the other similar logo, but positions are exchanged. On Au

[web2py:28739] Re: New Book Chapters 7 (crud),8 (auth), 9 (services)

2009-08-16 Thread Peterle
-Look at the last Django book: authors use the same font height for code\explanations, that's very important. I suggest you to copy that style, it will be an advantage because a reader of the Django book will find your book more familiar. - On Aug 16, 9:53 am, Massimo Di Pierr

[web2py:28740] Re: New Book Chapters 7 (crud),8 (auth), 9 (services)

2009-08-16 Thread Peterle
oh, I'd erase some parts of the book to enlarge the GAE section, very strategic point for web2py, to became the easiest way to publish something on appengine. --- On Aug 16, 9:53 am, Massimo Di Pierro wrote:

[web2py:28741] Re: logo

2009-08-16 Thread Tim McNamara
Massimo, Slightly off topic - related to the screenshot of the website redesign. I recommend putting "read this first" at the top of that right hand list, or ideally at the top of the left-hand list. This allows people who come to the page for the first time to get to it quickly: http://www.usei

[web2py:28742] Re: logo

2009-08-16 Thread Peterle
One thing is for sure: now, web2py has a logo (see the top of the home page), a very simple one, and is the bare script "web2py", white and orange color, dark-grey background. That's the fact, that's how I submitted my version of the logo following that pattern. -- On

[web2py:28743] Re: New Book Chapters 7 (crud),8 (auth), 9 (services)

2009-08-16 Thread Marcin Jaworski
Hi, Thank you for free access to your work. At first glance: you mentioned " four distinct ways to build forms in web2py..." (page 181) but only three were signalized (or mayby I am missing somthing)? Thanks again. Marcin Wiadomość napisana w dniu 2009-08-16, o godz. 09:53, przez Massimo Di

[web2py:28744] Re: New Book Chapters 7 (crud),8 (auth), 9 (services)

2009-08-16 Thread Marcin Jaworski
OK, I missed it. Now I have got the fourth one: CRUD methods. me: > At first glance: you mentioned " four distinct ways to build forms > in web2py..." (page 181) but only three were signalized (or mayby I > am missing somthing)? Wiadomość napisana w dniu 2009-08-16, o godz. 09:53, przez M

[web2py:28745] Re: logo

2009-08-16 Thread Miguel Lopes
On Fri, Aug 14, 2009 at 3:21 PM, mdipierro wrote: > On Aug 14, 8:57 am, Miguel Lopes wrote: >> I also prefer A. >> But I like the current logo better and think that it should have been >> included in the pool? > > What do you refer to as "current logo"? > The one displaying on the top left of we

[web2py:28746] Re: New Book Chapters 7 (crud),8 (auth), 9 (services)

2009-08-16 Thread rev
Hi Massimo, > there will be a PDF version on lulu Will those who already bought the current Lulu version be able to download the new version for free, or will they have have to buy it again? I saw this question asked before, but AFAIK it wasn't answered yet. rev --~--~-~--~~-

[web2py:28747] Re: Developping on GAE

2009-08-16 Thread yamandu
So, just to make yet more clear: in devlopment I must use sqlite or some other db, right? On Aug 15, 2:07 pm, mdipierro wrote: > You can develop using the local server wsgiserver, test using > dev_appserver and then deploy on GAE. Data will not be shared between > the three of them. > > On Aug 1

[web2py:28748] Re: {{=T('Howto')}}

2009-08-16 Thread Iceberg
Your answer might work, but I would suggest B(T('Howto')). The point is to separate language string (the "Howto") from appearance (the "..."). On Aug15, 7:34pm, hcvst wrote: > Is it > {{=XML(T('Howto'))}} > One tends to find an answer only ever after submitting a question. > > On 15 Aug., 13:22,

[web2py:28749] Re: New Book Chapters 7 (crud),8 (auth), 9 (services)

2009-08-16 Thread Iceberg
Quote from page 35: However, the following action: 1 def create_tablename: 2 return dict(form=crud.create(db.tablename)) would only expose the create method 1 http://.../[app]/[controller]/data/create_tablename Shouldn't the last line be this? 1 http://.../[app]/[controller]/cr

[web2py:28750] Re: {{=T('Howto')}}

2009-08-16 Thread hcvst
Hi Iceberg, it's a lengthy paragraph and I want to be able to translate it as one because the other language's word order is different. Is there a better way? How would one translate for example: """ Caipirinha is Brazil's national cocktail, made with cachaça """ (from wikipedia) into """ Bra

[web2py:28751] Re: New Book Chapters 7 (crud),8 (auth), 9 (services)

2009-08-16 Thread __future__
I wanted to chime in on the code examples too... I agree the Django book is a good example to follow. Also, in its present form, it is hard to copy and paste code from the book without also copying line numbers. On Aug 16, 9:33 am, Iceberg wrote: > Quote from page 35: > >    However, the fo

[web2py:28752] Re: {{=T('Howto')}}

2009-08-16 Thread Iceberg
Now I understand your headache. I felt that before when my application needed to provide a lengthy manual in different languages. Eventually I think "lengthy paragraph translating" is beyond the scope of any "simple" i18n mechanism. So I decided to not bother the i18n, just solve it via a raw way:

[web2py:28753] Re: New Book Chapters 7 (crud),8 (auth), 9 (services)

2009-08-16 Thread Jonathan Lundell
On Aug 16, 2009, at 3:09 AM, Marcin Jaworski wrote: > OK, I missed it. Now I have got the fourth one: CRUD methods. > > me: > >> At first glance: you mentioned " four distinct ways to build forms >> in web2py..." (page 181) but only three were signalized (or mayby I >> am missing somthing)? >

[web2py:28754] Re: Developping on GAE

2009-08-16 Thread mdipierro
yes. If you develop for web2py+T3 than you can develop directly on GAE for GAR but that is still considered experimental. On Aug 16, 7:35 am, yamandu wrote: > So, just to make yet more clear: in devlopment I must use sqlite or > some other db, right? > > On Aug 15, 2:07 pm, mdipierro wrote:

[web2py:28755] Re: Pb with link "role based access control" on Web2py homepage

2009-08-16 Thread Yarko Tymciurak
so the first bug is what you pointed out - the template code should not be emmitted to the client page, and because of a single (in place of double) '{' we are privilege to the template code... which shows the second bug: URL(r=request, f='tools'..) from the default page would not find th

[web2py:28756] Re: Pb with link "role based access control" on Web2py homepage

2009-08-16 Thread Yarko Tymciurak
On Sun, Aug 16, 2009 at 12:08 PM, Yarko Tymciurak wrote: > so the first bug is what you pointed out - the template code should not be > emmitted to the client page, > and because of a single (in place of double) '{' we are privilege to the > template code... > > which shows the second bug: > >

[web2py:28758] Re: New Book Chapters 7 (crud),8 (auth), 9 (services)

2009-08-16 Thread mdipierro
please do not not email me now. Email me after the book is released. On Aug 16, 12:10 pm, mdipierro wrote: > I do not have a mechanism. That is why I am making the new chapters > for free. > If you email with your lulu receipt I will email you the new book. > > Massimo > > On Aug 16, 6:37 am, re

[web2py:/] Re: New Book Chapters 7 (crud),8 (auth), 9 (services)

2009-08-16 Thread mdipierro
I do not have a mechanism. That is why I am making the new chapters for free. If you email with your lulu receipt I will email you the new book. Massimo On Aug 16, 6:37 am, rev wrote: > Hi Massimo, > > > there will be a PDF version on lulu > > Will those who already bought the current Lulu vers

[web2py:28759] uploading a file with REST

2009-08-16 Thread Ian Reinhart Geiser
Greetings, Currently I have a lovely web form that was fairly easy to implement with web2py. I now also have cron script that is uploading snapshots of an image from a webcam to my website. What I would like to do is have a service url that I could post my image to and have it automatically be

[web2py:28760] Re: uploading a file with REST

2009-08-16 Thread mdipierro
if you have: def mycreate(): return dict(form=crud.create(db.mytable)) you normally call: http:///mycreate to get the form. You can also call it with http:///mycreate.json?json=[] where [] is a URLencoded JSONencoded dictionary containing the new record. The ".json" instructs web2py no

[web2py:28761] Re: uploading a file with REST

2009-08-16 Thread mdipierro
Correction. This works but it probaby does not work with upload. you may need something like @auth.requires_login() def uploadme(): db.mytable.insert(filefield=request.body.read()) On Aug 16, 12:50 pm, mdipierro wrote: > if you have: > > def mycreate(): return dict(form=crud.create(db.mytable)

[web2py:28762] Re: logo

2009-08-16 Thread mdipierro
Try the new one.. http://www.web2py.com The fact I posted it does not prevent us form working more on the fonts and page layout. Thank you Peter for the logo. Thank you Mateusz for the new page background and css. Massimo On Aug 16, 6:00 am, Miguel Lopes wrote: > On Fri, Aug 14, 2009 at 3:21

[web2py:28763] Re: logo

2009-08-16 Thread Yarko Tymciurak
...if you don't see the new logo, be sure to clear your browser cache... On Sun, Aug 16, 2009 at 1:11 PM, mdipierro wrote: > > Try the new one.. http://www.web2py.com > > The fact I posted it does not prevent us form working more on the > fonts and page layout. > > Thank you Peter for the logo.

[web2py:28764] Re: logo

2009-08-16 Thread Yarko Tymciurak
re: css; I find the orange links hard to read now... On Sun, Aug 16, 2009 at 1:13 PM, Yarko Tymciurak wrote: > ...if you don't see the new logo, be sure to clear your browser cache... > > > On Sun, Aug 16, 2009 at 1:11 PM, mdipierro wrote: > >> >> Try the new one.. http://www.web2py.com >> >> T

[web2py:28765] Re: Pb with link "role based access control" on Web2py homepage

2009-08-16 Thread Yarko Tymciurak
On Sun, Aug 16, 2009 at 12:09 PM, Yarko Tymciurak wrote: > > > On Sun, Aug 16, 2009 at 12:08 PM, Yarko Tymciurak wrote: > >> so the first bug is what you pointed out - the template code should not be >> emmitted to the client page, >> and because of a single (in place of double) '{' we are pri

[web2py:28766] Re: logo

2009-08-16 Thread Bottiger
Is it just me or is the logo edge a bit blurry? On Aug 16, 11:11 am, mdipierro wrote: > Try the new one..http://www.web2py.com > > The fact I posted it does not prevent us form working more on the > fonts and page layout. > > Thank you Peter for the logo. > Thank you Mateusz for the new page bac

[web2py:28767] Re: logo

2009-08-16 Thread Jonathan Lundell
On Aug 16, 2009, at 11:11 AM, mdipierro wrote: > Try the new one.. http://www.web2py.com > > The fact I posted it does not prevent us form working more on the > fonts and page layout. > > Thank you Peter for the logo. > Thank you Mateusz for the new page background and css. It looks nice (though

[web2py:28768] Re: logo

2009-08-16 Thread Jonathan Lundell
On Aug 16, 2009, at 11:23 AM, Bottiger wrote: > > Is it just me or is the logo edge a bit blurry? The anti-aliasing, especially of the dark orange against the background, isn't quite right. > > On Aug 16, 11:11 am, mdipierro wrote: >> Try the new one..http://www.web2py.com >> >> The fact I p

[web2py:28769] Re: New Book Chapters 7 (crud),8 (auth), 9 (services)

2009-08-16 Thread mdipierro
Can somebody point me to the .sty and .cls files? Does it do syntax highliting too. The one I use does it. Massimo On Aug 16, 10:31 am, __future__ wrote: > I wanted to chime in on the code examples too... > > I agree the Django book is a good example to follow.   Also, in its > present form, it

[web2py:28770] Re: Left Join Failures

2009-08-16 Thread howesc
Thanks for the tip! A little tweaking to your suggestion makes it work: c=db.concert cp=db.concert_purchases a=db.artist v=db.venue af=db.audiofile test = db(cp.auth_user==3)(c.id==cp.concert)(cp.expires>'2009-08-08 09:46:23'). select(c.name, c.id, cp.date, a.name, v.name, c.date, af.

[web2py:28771] web2py 1.66.0 is out

2009-08-16 Thread mdipierro
Minor typos and bug sizes. form.vars.uploadfield_newfilename is back. The new logo is in (experimental). The Major change is the replacement: SQLField -> Field SQLRows -> Rows SQLXorable -> Expression SQLQuery -> Query SQLSet -> Set SQLStorage -> DALStorage The classes with SQL prefix stry for

[web2py:28772] Re: web2py 1.66.0 is out

2009-08-16 Thread Yarko Tymciurak
I will migrate web2conf to this release (PyCon registration for 2010 is scheduled to go online mid September). - Yarko On Sun, Aug 16, 2009 at 1:40 PM, mdipierro wrote: > > Minor typos and bug sizes. form.vars.uploadfield_newfilename is back. > The new logo is in (experimental). The > > Major

[web2py:28773] Re: web2py 1.66.0 is out

2009-08-16 Thread Pynthon Pynthon
Nice work! Is SQLDB also changed in DAL? Thats what I mentioned when I read the new chapters. 2009/8/16 Yarko Tymciurak > I will migrate web2conf to this release (PyCon registration for 2010 is > scheduled to go online mid September). > > - Yarko > > On Sun, Aug 16, 2009 at 1:40 PM, mdipierro w

[web2py:28774] Re: logo

2009-08-16 Thread __future__
There seems to be some a couple of odd pixels in the "2" of the logo... The orange links are harder to read now especially the web2py link in the footer... On Aug 16, 1:15 pm, Yarko Tymciurak wrote: > re: css;  I find the orange links hard to read now... > > On Sun, Aug 16, 2009 at 1:13 PM, Yar

[web2py:28775] Re: web2py 1.66.0 is out

2009-08-16 Thread mdipierro
Technically you can still do SQLDB. DAL(...) returns a SQLDB object or a GQLDB object if DAL('gae'). In the new DAL the DAL(...) funciton will return a DAL object instead of SQLDB or GQLDB. Massimo On Aug 16, 2:17 pm, Pynthon Pynthon wrote: > Nice work! Is SQLDB also changed in DAL? Thats what

[web2py:28776] Re: web2py 1.66.0 is out

2009-08-16 Thread mdipierro
Thanks Yarko On Aug 16, 2:10 pm, Yarko Tymciurak wrote: > I will migrate web2conf to this release  (PyCon registration for 2010 is > scheduled to go online mid September). > > - Yarko > > On Sun, Aug 16, 2009 at 1:40 PM, mdipierro wrote: > > > Minor typos and bug sizes. form.vars.uploadfield_ne

[web2py:28777] upgrading applications after the repository cleanup

2009-08-16 Thread Tim Michelsen
Hello, I know that some time a ago, the development repository was cleaned up. How would I now upgrade admin and examples? I currently get this error: python web2py.py --upgrade yes /var/lib/python-support/python2.6/MySQLdb/__init__.py:34: DeprecationWarning: the sets module is deprecated fro

[web2py:28778] Re: upgrading applications after the repository cleanup

2009-08-16 Thread Jonathan Lundell
On Aug 16, 2009, at 1:58 PM, Tim Michelsen wrote: > > Hello, > I know that some time a ago, the development repository was cleaned > up. > How would I now upgrade admin and examples? I think you get the current applications directly in the applications directory, if you're using the reposito

[web2py:28779] Re: logo

2009-08-16 Thread Jonathan Lundell
On Aug 16, 2009, at 11:15 AM, Yarko Tymciurak wrote: > re: css; I find the orange links hard to read now... A note on that. The logo orange is now 242,148,0. This works well for large patches, but in general it's necessary to use a darker color for on-screen text, at least normal-size text.

[web2py:28780] Can I define a relation across multiple SQLDB?

2009-08-16 Thread Marco
Hello everyone. I am trying to build an application to annotate some data, and I am struggling with the data model. Here is what I have written so far: # coding: utf8 iliad = SQLDB(REMOVED) ann = SQLDB(REMOVED) iliad.define_table('forum', SQLField('name', type = 'string' , length = 32 ),

[web2py:28781] Re: uploading a file with REST

2009-08-16 Thread Ian Reinhart Geiser
Right now im doing this but getting errors: @service.run def upload_image( camera_uuid ): query = (db.cameras.macaddress == camera_uuid ) camera_id = db(query).select(db.cameras.id)[0] db.videos[0]={ 'camera' : camera_id, 'file' : db.videos.file.store (request.body, 'upload.flv') }

[web2py:28782] Re: web2py 1.66.0 is out

2009-08-16 Thread Álvaro Justen [Turicas]
On Sun, Aug 16, 2009 at 15:40, mdipierro wrote: > > Minor typos and bug sizes. form.vars.uploadfield_newfilename is back. > The new logo is in (experimental). The > > Major change is the replacement: > > SQLField -> Field > SQLRows -> Rows > SQLXorable -> Expression > SQLQuery -> Query > SQLSet ->