[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:
> > >     T.force(session.lang)
>
> > > Nonetheless, loosing the translation is strange. T.force(None)
> > > only switches translation off, doesn't it?
>
> > > On 15 Ago, 15:05, hcvst  wrote:
>
> > > > 1.65.11
>
> > > > Hi,
>
> > > > I've just translated the better part of my site into German and added
> > > > the following lines to db.py
>
> > > > lang = request.vars.get('lang', None)
> > > > if lang:
> > > >     session.lang = lang
> > > > if session.lang:
> > > >     T.force(lang)
>
> > > > I am not sure what happend but after adding the querystring ?lang=de
> > > > my entire de.py file was truncated.
>
> > > > Initially I could only reproduce this error for 'de' and not for 'it'
> > > > or 'fr' for example.
> > > > Then I set my browser's default lang to 'it', called ?lang=it and
> > > > Italian too was no more.
>
> > > > I'd look at the source now, but I need to get translating again.
> > > > BTW, should I submit a default de.py and de-de.py to include with w2p?
>
> > > > HC
--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[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, Jonathan Lundell wrote:
>
> >> On Aug 15, 2009, at 1:11 PM, Yarko Tymciurak wrote:
>
> >> BTW - I am still VERY STRONGLY for using the same font on all these
> >> logos;  let's address that.
>
> >> Yes.
>
> >> I'm not a fan of leaving out the non-stylized W; it's going to be
> >> confusing, and it won't work when 'web2py' is underneath the symbol. Also,
> >> the symbol isn't that obvious a W; it doesn't hurt to repeat it.
>
> > I think leaving it out for an optional logo is fine (I think it looks good,
> > and I think we also need a logo w/ the normal font "w").
>
> > The issue is consistency of image and message. If there's a compelling
> > reason to add yet another version (say, long and horizontal vs square), then
> > fine. But variation for the sake of variation detracts from having a
> > consistent graphic identity.
>
> I personally don't think this is inconsistent...
--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[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)?
>
> > > On Aug 15, 8:12 am, hcvst  wrote:
>
> > > > Ok, there's also a mistake in my db.py it should say
>
> > > > if session.lang:
> > > >     T.force(session.lang)
>
> > > > Nonetheless, loosing the translation is strange. T.force(None)
> > > > only switches translation off, doesn't it?
>
> > > > On 15 Ago, 15:05, hcvst  wrote:
>
> > > > > 1.65.11
>
> > > > > Hi,
>
> > > > > I've just translated the better part of my site into German and added
> > > > > the following lines to db.py
>
> > > > > lang = request.vars.get('lang', None)
> > > > > if lang:
> > > > >     session.lang = lang
> > > > > if session.lang:
> > > > >     T.force(lang)
>
> > > > > I am not sure what happend but after adding the querystring ?lang=de
> > > > > my entire de.py file was truncated.
>
> > > > > Initially I could only reproduce this error for 'de' and not for 'it'
> > > > > or 'fr' for example.
> > > > > Then I set my browser's default lang to 'it', called ?lang=it and
> > > > > Italian too was no more.
>
> > > > > I'd look at the source now, but I need to get translating again.
> > > > > BTW, should I submit a default de.py and de-de.py to include with w2p?
>
> > > > > HC
--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[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 might want to get into the game.

I've been involved with numerous startups and their logo selection
processes way more than I would like. Sounds like there's an
opportunity here for a simple little web2py app that would be of
interest to small businesses and possibly attract them to use web2py:

- Display a gallery of logos that are submitted by all comers
- let visitors vote once per logo and let them change their vote up
until a specific date
- let visitors see the average vote per logo and how many people voted
for that logo
- leave the new logo upload function open for awhile so people can
hone and refine their ideas
- let the voting period start after the logo upload has been open
awhile and end a couple of weeks after that

MDP obviously has the right to have final say on the logo. He might
want to reward the winner with an acknowledgement, bragging rights,
and eventually, a logo'd trinket.

Eventually, with logos, one needs a document describing permitted
usage. There should be reversed versions of the logo on light and dark
backgrounds. If the logo has an icon, it should be specified whether
the logo can be represented by the icon alone. Copyrights on logos are
important as they are original artwork. This document should probably
ultimately appear on the web2py website.

I'm sure the logo voting app would be useful to many small businesses
in the social networking space who want to get community feedback for
a group identity. See this example done recently with Ruby:
http://www.spinyc.com/galleries/12/list'

Apologies if this is repeating someone else in this very long and old
logo thread.
--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[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 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:
> > > > >     T.force(session.lang)
>
> > > > > Nonetheless, loosing the translation is strange. T.force(None)
> > > > > only switches translation off, doesn't it?
>
> > > > > On 15 Ago, 15:05, hcvst  wrote:
>
> > > > > > 1.65.11
>
> > > > > > Hi,
>
> > > > > > I've just translated the better part of my site into German and 
> > > > > > added
> > > > > > the following lines to db.py
>
> > > > > > lang = request.vars.get('lang', None)
> > > > > > if lang:
> > > > > >     session.lang = lang
> > > > > > if session.lang:
> > > > > >     T.force(lang)
>
> > > > > > I am not sure what happend but after adding the querystring ?lang=de
> > > > > > my entire de.py file was truncated.
>
> > > > > > Initially I could only reproduce this error for 'de' and not for 
> > > > > > 'it'
> > > > > > or 'fr' for example.
> > > > > > Then I set my browser's default lang to 'it', called ?lang=it and
> > > > > > Italian too was no more.
>
> > > > > > I'd look at the source now, but I need to get translating again.
> > > > > > BTW, should I submit a default de.py and de-de.py to include with 
> > > > > > w2p?
>
> > > > > > HC
--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[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 World').xml()
Out[3]: 'Hello World'
In[4]:  T.force('fr-fr')
Out[4]: ['fr-fr']
In[5]:  T('Hello World').xml()
Out[5]: 'Hello World'

Same result. I loose the translation.


On Aug 16, 12:56 am, suiato  wrote:
> Hi HC
>
> 2009/8/16 hcvst :
>
>
>
>
>
> > Just tested locally on an older version - happens too and
> > independently of browser settings.
> > No idea why I could not reproduce it earlier for 'it' and 'fr'.
>
> > web2py Shell Version 1.65.7 (2009-07-28 18:50:03)
> > In[0]:  T('Hello World').xml()
> > Out[0]: 'Hello World'
> > In[1]:  T.force('it')
> > Out[1]: ['it']
> > In[2]:  T('Hello World').xml()
> > Out[2]: 'Salve Mondo'
> > In[3]:  T.force('en')
> > Out[3]: ['en']
> > In[4]:  T('Hello World').xml()
> > Out[4]: 'Hello World'
> > In[5]:  T.force('it')
> > Out[5]: ['it']
> > In[6]:       T('Hello World').xml()
> > Out[6]: 'Hello World'
>
> > An below's what's left in it.py
>
> > {
> > 'Hello World': 'Hello World',
> > }
>
> > HC
>
> I haven't been able to look at the original problem you posted on,
> but,  when I ran the shell  on the web2py welcome app (Version
> 1.65.11, 2009-08-14 07:28:45), T.force() seemed to work OK as below on
> my local machine.
>
>
>
>
>
> >>> T("Hello World").xml()
> 'Hello World'
> >>> T.force("it")
> ['it']
> >>> T("Hello World").xml()
> 'Salve Mondo'
> >>> T.force("en")
> ['en']
> >>> T("Hello World").xml()
> 'Hello World'
> >>> T.force("it")
> ['it']
> >>> T("Hello World").xml()
> 'Salve Mondo'
> >>> T.force("en")
> ['en']
> >>> T("Hello World").xml()
> 'Hello World'
>
> --
> Teru
>
> On 8月16日, 午前3:52, hcvst  wrote:
>
> > Just tested locally on an older version - happens too and
> > independently of browser settings.
> > No idea why I could not reproduce it earlier for 'it' and 'fr'.
>
> > web2py Shell Version 1.65.7 (2009-07-28 18:50:03)
> > In[0]:  T('Hello World').xml()
> > Out[0]: 'Hello World'
> > In[1]:  T.force('it')
> > Out[1]: ['it']
> > In[2]:  T('Hello World').xml()
> > Out[2]: 'Salve Mondo'
> > In[3]:  T.force('en')
> > Out[3]: ['en']
> > In[4]:  T('Hello World').xml()
> > Out[4]: 'Hello World'
> > In[5]:  T.force('it')
> > Out[5]: ['it']
> > In[6]:       T('Hello World').xml()
> > Out[6]: 'Hello World'
>
> > An below's what's left in it.py
>
> > {
> > 'Hello World': 'Hello World',
>
> > }
>
> > HC
--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[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 ad hoc. I'm not speaking for myself, in
particular,
but it seems like some others might want to get into the game.

I've been involved with numerous startups and their logo selection
processes way more than I would like. Sounds like there's an
opportunity here for a simple little web2py app that would be of
interest to small businesses and possibly attract them to use web2py:


- Display a gallery of logos that are submitted by all comers
- let visitors vote once per logo and let them change their vote up
until a specific date
- let visitors see the average vote per logo and how many people
voted
for that logo
- leave the new logo upload function open for awhile so people can
hone and refine their ideas
- let the voting period start after the logo upload has been open
awhile and end a couple of weeks after that


MDP obviously has the right to have final say on the logo. He might
want to reward the winner with an acknowledgement, bragging rights,
and eventually, a logo'd trinket.


Eventually, with logos, one needs a document describing permitted
usage. There should be reversed versions of the logo on light and
dark
backgrounds. If the logo has an icon, it should be specified whether
the logo can be represented by the icon alone. Copyrights on logos
are
important as they are original artwork. This document should probably
ultimately appear on the web2py website.


I'm sure the logo voting app would be useful to many small businesses
in the social networking space who want to get community feedback for
a group identity. See this example done recently with Ruby:
http://www.spinyc.com/galleries/12/list'


Apologies if this is repeating someone else in this very long and old
logo thread.

--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[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 because I
had the feeling there was not overwhelming majority for either of
them.
3) More recently I received the two new logos I posted here. To me
they both looked very professionally done so I asked you people.

I have no opposition to build an app to solve problems like this one
and if you build one I will post it on appliances. But in the end we
need to make a choice and the sooner the better considering how long
this issue has been around. It seems to me everybody likes logo A so I
have included it in trunk. I too like ti a lot (it has the W, it gives
a sense of community, it is simple to remember, it is clean).

Nothing prevents revising the logo over time and, in particular,
change the fonts for the text.

Massimo

On Aug 16, 3:11 am, weheh  wrote:
> 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 ad hoc. I'm not speaking for myself, in
> particular,
> but it seems like some others might want to get into the game.
>
> I've been involved with numerous startups and their logo selection
> processes way more than I would like. Sounds like there's an
> opportunity here for a simple little web2py app that would be of
> interest to small businesses and possibly attract them to use web2py:
>
> - Display a gallery of logos that are submitted by all comers
> - let visitors vote once per logo and let them change their vote up
> until a specific date
> - let visitors see the average vote per logo and how many people
> voted
> for that logo
> - leave the new logo upload function open for awhile so people can
> hone and refine their ideas
> - let the voting period start after the logo upload has been open
> awhile and end a couple of weeks after that
>
> MDP obviously has the right to have final say on the logo. He might
> want to reward the winner with an acknowledgement, bragging rights,
> and eventually, a logo'd trinket.
>
> Eventually, with logos, one needs a document describing permitted
> usage. There should be reversed versions of the logo on light and
> dark
> backgrounds. If the logo has an icon, it should be specified whether
> the logo can be represented by the icon alone. Copyrights on logos
> are
> important as they are original artwork. This document should probably
> ultimately appear on the web2py website.
>
> I'm sure the logo voting app would be useful to many small businesses
> in the social networking space who want to get community feedback for
> a group identity. See this example done recently with 
> Ruby:http://www.spinyc.com/galleries/12/list'
>
> Apologies if this is repeating someone else in this very long and old
> logo thread.
--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[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 the home page is
>
> >http://www.web2py.com/{=URL(r=request,f='tools
> > ',anchor='authorization')}}
>
> > Can you spot both with this?
>
> ...sorry - both bugs with this?
>
>
>
> > On Sat, Aug 15, 2009 at 2:48 AM, Serge Hulne wrote:
>
> >> - The link : "role based access control" on Web2py homepage, under the
> >> header "Includes" does not seem to work.
>
> >> - Is there a simple bug in the HTML link or is there a problem with
> >> the topic  "role based access control" itself ?
>
> >> Thanks,
>
> >> Serge.
--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[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 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.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[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.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[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 Aug 16, 9:40 am, mdipierro  wrote:
> 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, Jonathan Lundell 
> > > wrote:
>
> > >> On Aug 15, 2009, at 1:11 PM, Yarko Tymciurak wrote:
>
> > >> BTW - I am still VERY STRONGLY for using the same font on all these
> > >> logos;  let's address that.
>
> > >> Yes.
>
> > >> I'm not a fan of leaving out the non-stylized W; it's going to be
> > >> confusing, and it won't work when 'web2py' is underneath the symbol. 
> > >> Also,
> > >> the symbol isn't that obvious a W; it doesn't hurt to repeat it.
>
> > > I think leaving it out for an optional logo is fine (I think it looks 
> > > good,
> > > and I think we also need a logo w/ the normal font "w").
>
> > > The issue is consistency of image and message. If there's a compelling
> > > reason to add yet another version (say, long and horizontal vs square), 
> > > then
> > > fine. But variation for the sake of variation detracts from having a
> > > consistent graphic identity.
>
> > I personally don't think this is inconsistent...
--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[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 Pierro  wrote:
> Here is the latest draft of the new chapters added to the web2py book  
> (to be released very soon)
>
>  web2py_manual_789.pdf
> 1738KViewDownload
>
>
>
> Free free to send me more comments and suggestions.
>
> Thanks to Alvaro, Denes, Felipe, Graham, Jonathan, Hans, Kyle, Mark,  
> Richard, Robin, Roman, Scott, Shane, Sharriff, Sterling, Stuart and  
> Yarko for their help with proofreading. Any error is my fault, of  
> course.
>
> PROBABLYy the new book will be published by Wiley (as previous  
> edition), there will be a PDF version on lulu and a version on scribd  
> that allows free viewing but does not allow download.
>
> Massimo
--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[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:
> Here is the latest draft of the new chapters added to the web2py book  
> (to be released very soon)
>
>  web2py_manual_789.pdf
> 1738KViewDownload
>
>
>
> Free free to send me more comments and suggestions.
>
> Thanks to Alvaro, Denes, Felipe, Graham, Jonathan, Hans, Kyle, Mark,  
> Richard, Robin, Roman, Scott, Shane, Sharriff, Sterling, Stuart and  
> Yarko for their help with proofreading. Any error is my fault, of  
> course.
>
> PROBABLYy the new book will be published by Wiley (as previous  
> edition), there will be a PDF version on lulu and a version on scribd  
> that allows free viewing but does not allow download.
>
> Massimo
--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[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.useit.com/alertbox/reading_pattern.html.

-tim
http://twitter.com/timClicks

On Aug 15, 12:40 am, Massimo Di Pierro 
wrote:
> What about this compromise (assuming the two authors agree)?
>
> Massimo
>
>  logo.tiff
> 385KViewDownload
--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[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 Aug 16, 10:17 am, mdipierro  wrote:
> 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 because I
> had the feeling there was not overwhelming majority for either of
> them.
> 3) More recently I received the two new logos I posted here. To me
> they both looked very professionally done so I asked you people.
>
> I have no opposition to build an app to solve problems like this one
> and if you build one I will post it on appliances. But in the end we
> need to make a choice and the sooner the better considering how long
> this issue has been around. It seems to me everybody likes logo A so I
> have included it in trunk. I too like ti a lot (it has the W, it gives
> a sense of community, it is simple to remember, it is clean).
>
> Nothing prevents revising the logo over time and, in particular,
> change the fonts for the text.
>
> Massimo
>
> On Aug 16, 3:11 am, weheh  wrote:
>
> > 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 ad hoc. I'm not speaking for myself, in
> > particular,
> > but it seems like some others might want to get into the game.
>
> > I've been involved with numerous startups and their logo selection
> > processes way more than I would like. Sounds like there's an
> > opportunity here for a simple little web2py app that would be of
> > interest to small businesses and possibly attract them to use web2py:
>
> > - Display a gallery of logos that are submitted by all comers
> > - let visitors vote once per logo and let them change their vote up
> > until a specific date
> > - let visitors see the average vote per logo and how many people
> > voted
> > for that logo
> > - leave the new logo upload function open for awhile so people can
> > hone and refine their ideas
> > - let the voting period start after the logo upload has been open
> > awhile and end a couple of weeks after that
>
> > MDP obviously has the right to have final say on the logo. He might
> > want to reward the winner with an acknowledgement, bragging rights,
> > and eventually, a logo'd trinket.
>
> > Eventually, with logos, one needs a document describing permitted
> > usage. There should be reversed versions of the logo on light and
> > dark
> > backgrounds. If the logo has an icon, it should be specified whether
> > the logo can be represented by the icon alone. Copyrights on logos
> > are
> > important as they are original artwork. This document should probably
> > ultimately appear on the web2py website.
>
> > I'm sure the logo voting app would be useful to many small businesses
> > in the social networking space who want to get community feedback for
> > a group identity. See this example done recently with 
> > Ruby:http://www.spinyc.com/galleries/12/list'
>
> > Apologies if this is repeating someone else in this very long and old
> > logo thread.
--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[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  
Pierro:

> Here is the latest draft of the new chapters added to the web2py book
> (to be released very soon)


--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[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 Massimo Di  
Pierro:

> Here is the latest draft of the new chapters added to the web2py book
> (to be released very soon)
>
>
> >
> 
>
> Free free to send me more comments and suggestions.
>
> Thanks to Alvaro, Denes, Felipe, Graham, Jonathan, Hans, Kyle, Mark,
> Richard, Robin, Roman, Scott, Shane, Sharriff, Sterling, Stuart and
> Yarko for their help with proofreading. Any error is my fault, of
> course.
>
> PROBABLYy the new book will be published by Wiley (as previous
> edition), there will be a PDF version on lulu and a version on scribd
> that allows free viewing but does not allow download.
>
> Massimo


--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[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 web2py.com.
I'm aware it's just formatted font. But I still like it!

--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[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
--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[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 15, 11:10 am, yamandu  wrote:
>
>
>
> > I am just starting with Web2py and need to deploy on GAE.
>
> > The deploy itself is working fine using appcfg update.
> > I got errors on prodution app but that´s another problem.
>
> > My point here is how to develop FOR GAE.
>
> > I mean, I need the admin app but it doe not work whit dev_appserver.
>
> > With dev_appserver I can only test it.
>
> > What about the data, when I run using web2py server and not
> > dev_appserver it would use the same data on datastore. How this can be
> > done.
>
> > If anyone is developing for GAE, tell me how to do a local environment
> > or developing to it.
--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[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, hcvst  wrote:
>
>
>
> > Hi,
>
> > I am sure I've seen this question here before but I cannot find it.
> > Can one translate an entire paragraph including the markup?
>
> > HC
--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[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]/create_tablename

Same typo applies to the next "update" example on the same page.


Regards,
Iceberg

On Aug16, 3:53pm, Massimo Di Pierro  wrote:
> Here is the latest draft of the new chapters added to the web2py book  
> (to be released very soon)
>
>  web2py_manual_789.pdf
> 1738K View Download
>
>
>
> Free free to send me more comments and suggestions.
>
> Thanks to Alvaro, Denes, Felipe, Graham, Jonathan, Hans, Kyle, Mark,  
> Richard, Robin, Roman, Scott, Shane, Sharriff, Sterling, Stuart and  
> Yarko for their help with proofreading. Any error is my fault, of  
> course.
>
> PROBABLYy the new book will be published by Wiley (as previous  
> edition), there will be a PDF version on lulu and a version on scribd  
> that allows free viewing but does not allow download.
>
> Massimo
--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[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

"""
Brazil's national cocktail,
made with cachaça is
Caipirinha
"""

That was my problem.

HC




On Aug 16, 4:12 pm, Iceberg  wrote:
> 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, hcvst  wrote:
>
> > > Hi,
>
> > > I am sure I've seen this question here before but I cannot find it.
> > > Can one translate an entire paragraph including the markup?
>
> > > HC
--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[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 following action:
>    1 def create_tablename:
>    2 return dict(form=crud.create(db.tablename))
>    would only expose the create method
>    1http://.../[app]/[controller]/data/create_tablename
>
> Shouldn't the last line be this?
>    1http://.../[app]/[controller]/create_tablename
>
> Same typo applies to the next "update" example on the same page.
>
> Regards,
> Iceberg
>
> On Aug16, 3:53pm, Massimo Di Pierro  wrote:
>
> > Here is the latest draft of the new chapters added to the web2py book  
> > (to be released very soon)
>
> >  web2py_manual_789.pdf
> > 1738K View Download
>
> > Free free to send me more comments and suggestions.
>
> > Thanks to Alvaro, Denes, Felipe, Graham, Jonathan, Hans, Kyle, Mark,  
> > Richard, Robin, Roman, Scott, Shane, Sharriff, Sterling, Stuart and  
> > Yarko for their help with proofreading. Any error is my fault, of  
> > course.
>
> > PROBABLYy the new book will be published by Wiley (as previous  
> > edition), there will be a PDF version on lulu and a version on scribd  
> > that allows free viewing but does not allow download.
>
> > Massimo
--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[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: prepare and maintain a manual_en.html and a
manual_bz.html and ... etc by human. Of course you can still "abuse"
the i18n mechanism to do the same thing, it works but merely
efficient: any slight change of source string forces you to re-
translate the whole paragraph again.

Sorry that my feedback doesn't provide any substantial help.

Regards,
Iceberg

On Aug16, 10:47pm, hcvst  wrote:
> 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 a>'s national cocktail, made with  title="Cachaça">cachaça
> """ (from wikipedia)
>
> into
>
> """
> Brazil's national cocktail,
> made with cachaça is
> Caipirinha
> """
>
> That was my problem.
>
> HC
>
> On Aug 16, 4:12 pm, Iceberg  wrote:
>
>
>
> > 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, hcvst  wrote:
>
> > > > Hi,
>
> > > > I am sure I've seen this question here before but I cannot find it.
> > > > Can one translate an entire paragraph including the markup?
>
> > > > HC
--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[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)?
>

There's a formatting problem, though. There should be four bullets.
--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[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:
>
> > 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 15, 11:10 am, yamandu  wrote:
>
> > > I am just starting with Web2py and need to deploy on GAE.
>
> > > The deploy itself is working fine using appcfg update.
> > > I got errors on prodution app but that´s another problem.
>
> > > My point here is how to develop FOR GAE.
>
> > > I mean, I need the admin app but it doe not work whit dev_appserver.
>
> > > With dev_appserver I can only test it.
>
> > > What about the data, when I run using web2py server and not
> > > dev_appserver it would use the same data on datastore. How this can be
> > > done.
>
> > > If anyone is developing for GAE, tell me how to do a local environment
> > > or developing to it.
--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[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 the  "examples' application (as we are
currently in the "init" application, so r=request will look again in the
init application)

The URL call shold look something like:

{{=URL(a='examples', c='default', function='tools',
anchor='authorization')}}

IF you form the URL manually, you can test this:

http://www.web2py.com/examples/default/tools#autorization

- Yarko


On Sun, Aug 16, 2009 at 3:28 AM, Serge Hulne  wrote:

>
> 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 the home page is
> >
> > >http://www.web2py.com/{=URL(r=request,f='tools
> 
> > > ',anchor='authorization')}}
> >
> > > Can you spot both with this?
> >
> > ...sorry - both bugs with this?
> >
> >
> >
> > > On Sat, Aug 15, 2009 at 2:48 AM, Serge Hulne  >wrote:
> >
> > >> - The link : "role based access control" on Web2py homepage, under the
> > >> header "Includes" does not seem to work.
> >
> > >> - Is there a simple bug in the HTML link or is there a problem with
> > >> the topic  "role based access control" itself ?
> >
> > >> Thanks,
> >
> > >> Serge.
> >
>

--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[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:
>
> URL(r=request, f='tools'..)
>
> from the default page would not find the  "examples' application (as we are
> currently in the "init" application, so r=request will look again in the
> init application)
>
> The URL call shold look something like:
>
> {{=URL(a='examples', c='default', function='tools',
> anchor='authorization')}}
>
> IF you form the URL manually, you can test this:
>
> http://www.web2py.com/examples/default/tools#autorization


sorry - typo:

http://www.web2py.com/examples/default/tools#authorization


>
>
> - Yarko
>
>
>
> On Sun, Aug 16, 2009 at 3:28 AM, Serge Hulne wrote:
>
>>
>> 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 the home page is
>> >
>> > >http://www.web2py.com/{=URL(r=request,f='tools
>> 
>> > > ',anchor='authorization')}}
>> >
>> > > Can you spot both with this?
>> >
>> > ...sorry - both bugs with this?
>> >
>> >
>> >
>> > > On Sat, Aug 15, 2009 at 2:48 AM, Serge Hulne > >wrote:
>> >
>> > >> - The link : "role based access control" on Web2py homepage, under
>> the
>> > >> header "Includes" does not seem to work.
>> >
>> > >> - Is there a simple bug in the HTML link or is there a problem with
>> > >> the topic  "role based access control" itself ?
>> >
>> > >> Thanks,
>> >
>> > >> Serge.
>> >>
>>
>

--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[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, rev  wrote:
>
> > 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
--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[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 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
--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[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 added vs going through the form.

>From what I can tell is I would have a run REST url and i would read
the request.body object to get the file.  What I am unclear on is how
I might put this on the filesystem and the needed links in the
database correctly.  Do I have to roll my own update code vs using the
DAL?

Thanks in advance!

--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[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 not to generate the form but to
expect a json input. This is experimental but give it  try. Should
work for any page including crud forms.

Massimo

On Aug 16, 10:53 am, Ian Reinhart Geiser  wrote:
> 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 added vs going through the form.
>
> From what I can tell is I would have a run REST url and i would read
> the request.body object to get the file.  What I am unclear on is how
> I might put this on the filesystem and the needed links in the
> database correctly.  Do I have to roll my own update code vs using the
> DAL?
>
> Thanks in advance!
--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[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))
>
> you normally call:http:///mycreateto 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 not to generate the form but to
> expect a json input. This is experimental but give it  try. Should
> work for any page including crud forms.
>
> Massimo
>
> On Aug 16, 10:53 am, Ian Reinhart Geiser  wrote:
>
> > 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 added vs going through the form.
>
> > From what I can tell is I would have a run REST url and i would read
> > the request.body object to get the file.  What I am unclear on is how
> > I might put this on the filesystem and the needed links in the
> > database correctly.  Do I have to roll my own update code vs using the
> > DAL?
>
> > Thanks in advance!
--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[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 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 web2py.com.
> I'm aware it's just formatted font. But I still like it!
--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[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.
> 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 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 web2py.com.
> > I'm aware it's just formatted font. But I still like it!
> >
>

--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[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
>>
>> 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 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 web2py.com.
>> > I'm aware it's just formatted font. But I still like it!
>> >>
>>
>

--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[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 privilege to
>> the template code...
>>
>> which shows the second bug:
>>
>> URL(r=request, f='tools'..)
>>
>> from the default page would not find the  "examples' application (as we
>> are currently in the "init" application, so r=request will look again in the
>> init application)
>
>
Note that the above is not true in the case of a link from init app to
examples app, or if modified by routes.py


>
>>
>> The URL call shold look something like:
>>
>> {{=URL(a='examples', c='default', function='tools',
>> anchor='authorization')}}
>>
>> IF you form the URL manually, you can test this:
>>
>> http://www.web2py.com/examples/default/tools#autorization
>
>
> sorry - typo:
>
> http://www.web2py.com/examples/default/tools#authorization
>
>
>>
>>
>> - Yarko
>>
>>
>>
>> On Sun, Aug 16, 2009 at 3:28 AM, Serge Hulne wrote:
>>
>>>
>>> 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 the home page is
>>> >
>>> > >http://www.web2py.com/{=URL(r=request,f='tools
>>> 
>>> > > ',anchor='authorization')}}
>>> >
>>> > > Can you spot both with this?
>>> >
>>> > ...sorry - both bugs with this?
>>> >
>>> >
>>> >
>>> > > On Sat, Aug 15, 2009 at 2:48 AM, Serge Hulne >> >wrote:
>>> >
>>> > >> - The link : "role based access control" on Web2py homepage, under
>>> the
>>> > >> header "Includes" does not seem to work.
>>> >
>>> > >> - Is there a simple bug in the HTML link or is there a problem with
>>> > >> the topic  "role based access control" itself ?
>>> >
>>> > >> Thanks,
>>> >
>>> > >> Serge.
>>> >>>
>>>
>>
>

--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[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 background and css.
>
> Massimo
>
> On Aug 16, 6:00 am, Miguel Lopes  wrote:
>
> > 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 web2py.com.
> > I'm aware it's just formatted font. But I still like it!
--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[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 the w3 validation is a disaster; you might go  
for xhtml transitional rather than strict as a start).

One visual problem: the orange-on-light-orange 'web2py' in the footer  
isn't readable.

--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[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 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 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 web2py.com.
>>> I'm aware it's just formatted font. But I still like it!
> >



--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[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 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 following action:
> >    1 def create_tablename:
> >    2 return dict(form=crud.create(db.tablename))
> >    would only expose the create method
> >    1http://.../[app]/[controller]/data/create_tablename
>
> > Shouldn't the last line be this?
> >    1http://.../[app]/[controller]/create_tablename
>
> > Same typo applies to the next "update" example on the same page.
>
> > Regards,
> > Iceberg
>
> > On Aug16, 3:53pm, Massimo Di Pierro  wrote:
>
> > > Here is the latest draft of the new chapters added to the web2py book  
> > > (to be released very soon)
>
> > >  web2py_manual_789.pdf
> > > 1738K View Download
>
> > > Free free to send me more comments and suggestions.
>
> > > Thanks to Alvaro, Denes, Felipe, Graham, Jonathan, Hans, Kyle, Mark,  
> > > Richard, Robin, Roman, Scott, Shane, Sharriff, Sterling, Stuart and  
> > > Yarko for their help with proofreading. Any error is my fault, of  
> > > course.
>
> > > PROBABLYy the new book will be published by Wiley (as previous  
> > > edition), there will be a PDF version on lulu and a version on scribd  
> > > that allows free viewing but does not allow download.
>
> > > Massimo
--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[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.file,left=(c.on((c.venue==v.id) & (v.name != None)),
   cp.on((cp.concert==c.id) & (cp.concert !=
None)),
   a.on((a.id==c.artist) & (a.name != None)),
   af.on(af.concert==c.id)), orderby=~cp.date)

I put in where clause restrictions to make some of the left joins not
really left joins, I probably don't need to do that for this
particular query.

thanks again for the suggestion to help me re-craft the query!

christian

On Aug 14, 12:38 am, mdipierro  wrote:
> Are you sure this does not work?
>
> c=db.concert
> cp=db.concert_purchases
> a=db.artist
> 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.file,left=(c.on(c.value==v.id),cp.on(cp.concert==c.id),a.on
> (a.id==c.artist)), orderby=~cp.date)
>
> Massimo
>
> On Aug 12, 9:09 pm, Richard  wrote:
>
> > hi Christian,
> > I also just got this error message when testing a migration from
> > sqlite to postgres. Thanks for the diagnosis of the problem.
> > Have you found a work around yet using the DAL?
> > Richard
>
> > On Aug 10, 4:56 pm, howesc  wrote:
>
> > > This is in Postgres.
>
> > > I did a little digging, and apparently mixing the JOIN syntax is a
> > > problem.  So if i re-write thequeryin this fashion it works:
>
> > > SELECT c.name, c.id, cp.date, a.name, v.name, c.date, af.file
> > > FROM venue v
> > > JOIN concert c ON c.venue=v.id
> > > JOIN concert_purchases cp ON cp.concert=c.id
> > > JOIN artist a ON a.id=c.artist
> > > LEFT JOIN audiofile af ON af.concert=c.id
> > > WHERE cp.auth_user=3
> > >   AND c.id=cp.concert
> > >   AND cp.expires>'2009-08-08 09:46:23'
> > > ORDER BY cp.date DESC;
>
> > > some others have suggested that mixing the join syntax has operator
> > > precedence issues, and that Postgres follows the standard while other
> > > databases let you get away with the "incorrect" 
> > > syntax:http://archives.postgresql.org/pgsql-general/2006-09/msg01046.phphttp..
>
> > > based on their analysis a standard compliant SQL parser will interpret
> > > the web2py generatedquerylike this:
> > >  SELECT concert.name, concert.id, concert_purchases.date, artist.name,
> > >  venue.name, concert.date, audiofile.file FROM venue, concert,
> > >  concert_purchases, (artist LEFT JOIN audiofile ON
> > >  audiofile.concert=concert.id) WHERE concert_purchases.auth_user=3
> > >  AND concert.id=concert_purchases.concert) AND
> > >  concert_purchases.expires>'2009-08-08 09:46:23') AND
> > >  artist.id=concert.artist) AND venue.id=concert.venue) ORDER BY
> > >  concert_purchases.date DESC;
>
> > > note the added parens around the last item in the from clause and the
> > > LEFT JOIN item - hence concert is not visible.  if i re-write it
> > > knowing the operator precedence like this:
>
> > > SELECT concert.name, concert.id, concert_purchases.date, artist.name,
> > > venue.name, concert.date, audiofile.file
> > > FROM venue, artist,
> > > concert_purchases, concert LEFT JOIN audiofile ON
> > > audiofile.concert=concert.id WHERE concert_purchases.auth_user=3
> > > AND concert.id=concert_purchases.concert) AND
> > > concert_purchases.expires>'2009-08-08 09:46:23') AND
> > > artist.id=concert.artist) AND venue.id=concert.venue) ORDER BY
> > > concert_purchases.date DESC;
>
> > > it also works...which explains to me why some of my left joins work
> > > and some don't - if i'm lucky and the lasttablein the from clause is
> > > what i am left joining on it works.
>
> > > that being said, it looks like i'm the only one with that problem so i
> > > don't expect you to try and fix that right away.
>
> > > thanks,
>
> > > Christian
>
> > > On Aug 8, 4:17 pm, mdipierro  wrote:
>
> > > > Is this sqlite? The generated SQL looks right to me. Do you see
> > > > anything wrong with it?
>
> > > > On Aug 8, 11:48 am, howesc  wrote:
>
> > > > > Massimo,
>
> > > > > I downloaded the latest released version today: Version 1.65.11
> > > > > (2009-08-04 16:42:46), and it still fails.  here is the generated SQL:
>
> > > > > SELECT concert.name, concert.id, concert_purchases.date, artist.name,
> > > > > venue.name, concert.date, audiofile.file FROM venue, concert,
> > > > > concert_purchases, artist LEFT JOIN audiofile ON
> > > > > audiofile.concert=concert.id WHERE concert_purchases.auth_user=3
> > > > > AND concert.id=concert_purchases.concert) AND
> > > > > concert_purchases.expires>'2009-08-08 09:46:23') AND
> > > > > artist.id=concert.artist) AND venue.id=concert.venue) ORDER BY
> > > > > concert_purchases.date DESC;
>
> > > > > Thanks,
>
> > > > > Christian
>
> > > > > On Aug 6, 11:58 pm, mdipierro  wrote:
>
> > > > > > Pl

[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 backward compatibility. Now you
can use Field everywhere, you never need SQLField or db.Field any
more.

Please give it a try and let me know if there is any bug.

Massimo
--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[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 change is the replacement:
>
> SQLField -> Field
> SQLRows -> Rows
> SQLXorable -> Expression
> SQLQuery -> Query
> SQLSet -> Set
> SQLStorage -> DALStorage
>
> The classes with SQL prefix stry for backward compatibility. Now you
> can use Field everywhere, you never need SQLField or db.Field any
> more.
>
> Please give it a try and let me know if there is any bug.
>
> Massimo
> >
>

--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[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 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 -> Set
>> SQLStorage -> DALStorage
>>
>> The classes with SQL prefix stry for backward compatibility. Now you
>> can use Field everywhere, you never need SQLField or db.Field any
>> more.
>>
>> Please give it a try and let me know if there is any bug.
>>
>> Massimo
>>
>>
>
> >
>

--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[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, 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
>
> >> 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 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 web2py.com.
> >> > I'm aware it's just formatted font. But I still like it!
--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[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 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 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 -> Set
> >> SQLStorage -> DALStorage
>
> >> The classes with SQL prefix stry for backward compatibility. Now you
> >> can use Field everywhere, you never need SQLField or db.Field any
> >> more.
>
> >> Please give it a try and let me know if there is any bug.
>
> >> Massimo
--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[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_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 backward compatibility. Now you
> > can use Field everywhere, you never need SQLField or db.Field any
> > more.
>
> > Please give it a try and let me know if there is any bug.
>
> > Massimo
--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[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
   from sets import ImmutableSet
unpacking apps; this may take a few seconds...
Traceback (most recent call last):
   File "web2py.py", line 20, in 
 gluon.widget.start(cron=True)
   File "/var/devel_linux/web2py/devel/gluon/widget.py", line 726, in start
 (options, args) = console()
   File "/var/devel_linux/web2py/devel/gluon/widget.py", line 699, in 
console
 w2p_unpack('admin.w2p', 'applications/admin/')
   File "/var/devel_linux/web2py/devel/gluon/fileutils.py", line 172, in 
w2p_unpack
 fgzipped = gzopen(filename, 'rb')
   File "/usr/lib/python2.6/gzip.py", line 33, in open
 return GzipFile(filename, mode, compresslevel)
   File "/usr/lib/python2.6/gzip.py", line 79, in __init__
 fileobj = self.myfileobj = __builtin__.open(filename, mode or 'rb')
IOError: [Errno 2] No such file or directory: 'admin.w2p'


Thanks in advance,
Timmie


--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[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 repository. It's only the releases that  
package up the apps and need updating.

That said, the update command could fail a little more gracefully  
under these circumstances.

> 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
>   from sets import ImmutableSet
> unpacking apps; this may take a few seconds...
> Traceback (most recent call last):
>   File "web2py.py", line 20, in 
> gluon.widget.start(cron=True)
>   File "/var/devel_linux/web2py/devel/gluon/widget.py", line 726, in  
> start
> (options, args) = console()
>   File "/var/devel_linux/web2py/devel/gluon/widget.py", line 699, in
> console
> w2p_unpack('admin.w2p', 'applications/admin/')
>   File "/var/devel_linux/web2py/devel/gluon/fileutils.py", line 172,  
> in
> w2p_unpack
> fgzipped = gzopen(filename, 'rb')
>   File "/usr/lib/python2.6/gzip.py", line 33, in open
> return GzipFile(filename, mode, compresslevel)
>   File "/usr/lib/python2.6/gzip.py", line 79, in __init__
> fileobj = self.myfileobj = __builtin__.open(filename, mode or  
> 'rb')
> IOError: [Errno 2] No such file or directory: 'admin.w2p'
>
>
> Thanks in advance,
> Timmie
>
>
> >



--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[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. The reason is that anti- 
aliasing tends to wash out the color, and the text ends up looking  
lighter than it really ought to based on its nominal color.

I suggest finding a darker orange for the text, to give a little more  
contrast, experimenting for the right visual effect.

--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[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 ),
SQLField('url', type = 'longtext' ),
migrate = False)

iliad.define_table('post',
SQLField('thread_id', type = 'integer' , length = 11 ),
SQLField('position', type = 'integer' , length = 11 ),
SQLField('text', type = 'longtext' ),
SQLField('author', type = 'string' , length = 32 ),
SQLField('timestamp', type = 'string' , length = 32 ),
migrate = False)

iliad.define_table('thread',
SQLField('forum_id', type = 'integer' , length = 11 ),
SQLField('url', type = 'longtext' ),
SQLField('html', type = 'longtext' ),
SQLField('title', type = 'longtext' ),
SQLField('summary', type = 'longtext' ),
SQLField('posts', type = 'longtext' ),
SQLField('updated_at', type = 'datetime' ),
SQLField('created_at', type = 'datetime' ),
migrate = False)

ann.define_table( 'target'
, SQLField('username','string')
, SQLField('thread', iliad.thread)
, SQLField('thread_len', 'integer')
)
ann.target.username.requires=[IS_NOT_EMPTY(),IS_NOT_IN_DB
(iliad,'iliad.username')]

ann.define_table( 'user_qualities'
, SQLField('iliadotator')
, SQLField('target',ann.target)
, SQLField('clarity','integer')
, SQLField('enthusiasm','integer')
, SQLField('proficiency','integer')
)
ann.user_qualities.username.requires=[IS_NOT_EMPTY(),IS_IN_DB
(iliad,'iliad.id','iliad.username')]

Please note I have removed the DB location details for security
reasons. However, both are MySQL databases, running on the same
server. As you can see, the first three tables refer to data that
already exists in a database. The later tables need to reference the
former tables. I am thinking of storing the annotations in a separate
table from the original data, but I what I have written above is
rejected with the following traceback:

Traceback (most recent call last):
  File "/home/mlui/web2py/gluon/restricted.py", line 178, in
restricted
exec ccode in environment
  File "/home/mlui/web2py/applications/user_annotation/models/db.py",
line 33, in 
, SQLField('thread_len', 'integer')
  File "/home/mlui/web2py/gluon/sql.py", line 1004, in define_table
t._create_references()
  File "/home/mlui/web2py/gluon/sql.py", line 1207, in
_create_references
raise SyntaxError, 'SQLTable: table \'%s\'does not exist' %
referenced
SyntaxError: SQLTable: table 'thread'does not exist

Maybe I am making a simple beginner mistake?

Thank you for your time.

Cheers
Marco

--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[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') }
return True

The problem is that its generating 0 size files.  But the file is
correct, and is created in the database correctly.  Did i miss a step?

I am using the following curl line:
curl -T ~/test.flv 
http://web2py.geiseri.com/HomeCentral/default/call/run/upload_image/camera1

I feel like im close...

On Aug 16, 1:55 pm, mdipierro  wrote:
> 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))
>
> > you normally call:http:///mycreatetoget 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 not to generate the form but to
> > expect a json input. This is experimental but give it  try. Should
> > work for any page including crud forms.
>
> > Massimo
>
> > On Aug 16, 10:53 am, Ian Reinhart Geiser  wrote:
>
> > > 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 added vs going through the form.
>
> > > From what I can tell is I would have a run REST url and i would read
> > > the request.body object to get the file.  What I am unclear on is how
> > > I might put this on the filesystem and the needed links in the
> > > database correctly.  Do I have to roll my own update code vs using the
> > > DAL?
>
> > > Thanks in advance!
--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[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 -> Set
> SQLStorage -> DALStorage
>
> The classes with SQL prefix stry for backward compatibility. Now you
> can use Field everywhere, you never need SQLField or db.Field any
> more.
>
> Please give it a try and let me know if there is any bug.
>
> Massimo
> 
Click on "versioning" of some app:
http://127.0.0.1:8000/admin/mercurial/commit/welcome
A ticket is created:
Traceback (most recent call last):
  File "/home/alvaro/web2py-svn/gluon/restricted.py", line 178, in restricted
exec ccode in environment
  File "/home/alvaro/web2py-svn/applications/admin/controllers/mercurial.py",
line 29, in 
  File "/home/alvaro/web2py-svn/gluon/globals.py", line 101, in 
self._caller = lambda f: f()
  File "/home/alvaro/web2py-svn/applications/admin/controllers/mercurial.py",
line 6, in commit
uio = ui.ui(verbose=True)
TypeError: __init__() got an unexpected keyword argument 'verbose'


-- 
 Álvaro Justen
 Peta5 - Telecomunicações e Software Livre
 21 3021-6001 / 9898-0141
 http://www.peta5.com.br/

--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---