[web2py] Re: In appadmin clicking on the "file" trying to load it in the browser..

2010-10-10 Thread mdipierro
Is this an app you started some time ago? Could you try move
controllers/appadmin.py and views/appadmin.html from the latest
welcome into your app and see if the problem persists?

On Oct 10, 12:01 am, Jason Brower  wrote:
> Sure... clicking this link give me this...
> It would be nice if it was a bit smarter in that respect and show me the
> image or even better some nice overlay with the image.
> BR,
> Jason
>
> On 10/10/2010 12:56 AM, mdipierro wrote:
>
> > can you tell us more.
>
> > On Oct 9, 12:45 pm, Jason Brower  wrote:
>
> >> This is bad as it will load a JPG as garbage.  Perhaps it should always
> >> go for download.  That or build a handler to preview it if it's an image.
> >> Best Regards,
> >> Jason
>
>
>
>  Screenshot-1.png
> 830KViewDownload
>
>  Screenshot.png
> 174KViewDownload


[web2py] Re: please help us test new web site

2010-10-10 Thread Adi
Amazing work Massimo, Bruno and Martin!



On Oct 10, 11:10 am, Albert Abril  wrote:
> I suggested Bruno and Martin another concept of logo.
> Here's my draft design (attached).
>
>
>
> On Sun, Oct 10, 2010 at 6:54 AM, guruyaya  wrote:
> > I happen to like to new logo. It looks like very slick. The offers on
> > the google docs are problematic, as they are rectangles, not squares
> > (or even almost squares). Imagine using it as a desktop icon, or as a
> > favicon, and I think you'll see the problem.
> > Overall - I like the new design. After getting used to it, I'm sure no-
> > one will miss the old one.
>
> > On Oct 10, 6:01 am, Bruno Rocha  wrote:
> > > I like that concept ->
> >https://docs.google.com/leaf?id=0BzPqKovYWlw-N2IwYTA0Y2EtNDNjMi00OTg1...
>
> > > But, the snake looks childish. the idea is very good, but snake have to
> > be
> > > redesigned, or maybe simplified, perhaps just the snake silhouette.
>
> > > And, I still like the actual logo.
>
> > > 2010/10/10 weheh 
>
> > > > New website is good. Logo is kind of sinister looking IMHO. If we need
> > > > a new logo, I would like to resubmit some prototype logos from my
> > > > friend Diane Heller. I think they have potential and last year, she
> > > > was willing to spend some more time on the logo (pro bono) if there
> > > > was any interest. If there's interest now, I'll contact her about it
> > > > again.
>
> > > >https://docs.google.com/leaf?id=0BzPqKovYWlw-ODg1ZjE0YzgtMTQ3NC00NmM0.
> > ..
>
> > > >https://docs.google.com/leaf?id=0BzPqKovYWlw-MmRhNjcwNjAtM2Y4OS00ZTM1.
> > ..
>
> > > >https://docs.google.com/leaf?id=0BzPqKovYWlw-N2IwYTA0Y2EtNDNjMi00OTg1.
> > ..
>
> > > > On Oct 9, 4:07 pm, mdipierro  wrote:
> > > > > New web2py layout:
>
> > > > >    http://web2py.com
>
> > > > > Thanks Bruno and Martin
>
> > > > > New demo_admin:
>
> > > > >    http://web2py.com/demo_admin
>
> > > > > Massimo
>
>  concepte.4.logo.web2py.png
> 74KViewDownload


[web2py] Re: please help us test new web site

2010-10-10 Thread mdipierro
We cannot start another logo contest... we have tried it before and we
did not get much further.

Bruno has created more than a logo. He has created a visual identity
and completely rewritten the examples app.

This was on the todo list for more than one year and nobody else did
it. He did. A major change in the logo would just bring us to square
one. There are also trademark and possible conflict issues that are
complex and have been taken into consideration here.

Yet minor changes to the new examples app and to the logo are possible
I guess and all comments here will be taken into consideration. In
particular I think Wobmofo has a valid point. It is also true that we
do not intentionally want to give web2py a dark/bad connotation so if
we can lighten up the logo a bit that is worth a try.

Massimo




On Oct 10, 1:10 am, Albert Abril  wrote:
> I suggested Bruno and Martin another concept of logo.
> Here's my draft design (attached).
>
> On Sun, Oct 10, 2010 at 6:54 AM, guruyaya  wrote:
> > I happen to like to new logo. It looks like very slick. The offers on
> > the google docs are problematic, as they are rectangles, not squares
> > (or even almost squares). Imagine using it as a desktop icon, or as a
> > favicon, and I think you'll see the problem.
> > Overall - I like the new design. After getting used to it, I'm sure no-
> > one will miss the old one.
>
> > On Oct 10, 6:01 am, Bruno Rocha  wrote:
> > > I like that concept ->
> >https://docs.google.com/leaf?id=0BzPqKovYWlw-N2IwYTA0Y2EtNDNjMi00OTg1...
>
> > > But, the snake looks childish. the idea is very good, but snake have to
> > be
> > > redesigned, or maybe simplified, perhaps just the snake silhouette.
>
> > > And, I still like the actual logo.
>
> > > 2010/10/10 weheh 
>
> > > > New website is good. Logo is kind of sinister looking IMHO. If we need
> > > > a new logo, I would like to resubmit some prototype logos from my
> > > > friend Diane Heller. I think they have potential and last year, she
> > > > was willing to spend some more time on the logo (pro bono) if there
> > > > was any interest. If there's interest now, I'll contact her about it
> > > > again.
>
> > > >https://docs.google.com/leaf?id=0BzPqKovYWlw-ODg1ZjE0YzgtMTQ3NC00NmM0.
> > ..
>
> > > >https://docs.google.com/leaf?id=0BzPqKovYWlw-MmRhNjcwNjAtM2Y4OS00ZTM1.
> > ..
>
> > > >https://docs.google.com/leaf?id=0BzPqKovYWlw-N2IwYTA0Y2EtNDNjMi00OTg1.
> > ..
>
> > > > On Oct 9, 4:07 pm, mdipierro  wrote:
> > > > > New web2py layout:
>
> > > > >    http://web2py.com
>
> > > > > Thanks Bruno and Martin
>
> > > > > New demo_admin:
>
> > > > >    http://web2py.com/demo_admin
>
> > > > > Massimo
>
>
>
>  concepte.4.logo.web2py.png
> 74KViewDownload


[web2py] Re: Any possible problems if I do this? Any possible improvement?

2010-10-10 Thread mdipierro
adding the three attempt limit is a good idea.

On Oct 9, 10:56 pm, Magnitus  wrote:
> Well, technically, you can't access the admin unless:
>
> 1) You have local access
>
> and/or
>
> 2) You are using TLS
>
> So if you site isn't using TLS, the admin is disabled and you are safe
> (even if your generic users aren't).
>
> However, I dislike the amount of power you have in one place with the
> admin app.
>
> I'd prefer to break it down into several sections that I need and make
> various sections available to different roles with user accounts.
>
> In particular, I find the ability to edit the controllers/models
> remotely seldom useful in a deployment server (what I'd want to do if
> I need to modify code after deployment is to modify a secondary test
> server, test the mods and then propagate the modified files to the
> production server) and extremely compromising if someone breaks in
> (yes, in a perfect world, nobody should be able to login as the admin
> except the admin and so it doesn't matter if all hell breaks lose if
> someone manages to do so right?).
>
> For that reason, I don't include the admin in the list of accessible
> urls in the routing file.
>
> I think disabling the admin after 3 consecutive unsuccessful login
> attempts wouldn't be that hard to implement, but as I don't use the
> admin for reasons mentioned above, I think it would be more
> interesting to disable user accounts after 3 unsuccessful login
> attempts (assuming that administration is based on role-based access
> with user accounts).
>
> Then, whether its good to implement the 'disable after 3 login
> attempts' measure depends on the situation.
>
> If secret usernames are used to login, its a decent security measure.
>
> If emails or public usernames are used to login, it would be easy for
> someone to do a DoS attack on a particular user they don't like by
> repeatedly try to login as the user using a wrong password to lockdown
> his account (lets face it, some people are just mean). For this
> reason, I also think it might be bad to implement it on the admin app
> if you are using it (once someone has found the app, they could
> perform DoS attacks on the admin with impunity).
>
> So assuming that the admin section uses role-based access with an
> account that doesn't have a public username and that the username is
> something a little more subtle than 'admin', then it wouldn't be a bad
> thing to implement the 'disable after 3 login attempts' measure.
>
> Another interesting alternative to prevent brute force attacks, at
> least for the admin (might annoy regular users), would be the use of
> captchas.
>
> On Oct 9, 10:39 pm, Richard  wrote:
>
> > > 3) I'd also limit the IP access to the artist's home IP, but his IP
>
> > will probably be dynamic. Maybe limit the area, I'll see.
>
> > I've got some apps around the web with the admin exposed and haven't
> > had any problems. Though it probably helps that nothing links to them.
>
> > Could you modify admin so that it locks the account after a number of
> > successive password failures?
>
> > On Oct 7, 6:44 pm, Magnitus  wrote:
>
> > > I am in the process of securing the help of an artist for my project,
> > > but he's a casual computer user (doesn't know ssh/scp) and I'm trying
> > > very hard to make everything as painless and pleasant as possible for
> > > him to secure his help.
>
> > > In order to do that, I decided to create a view that will allow the
> > > artist to download and upload pictures in the "static" folder of my
> > > app (similar in concept to the facility provided to translators for
> > > the languages, except with more fine-grained access control).
>
> > > Question 1:
>
> > > My current strategy (security-wise) is:
>
> > > 1) Limit the associated controller to the artist's role
>
> > > 1 a) A strong and unchangeable password will be provided to the artist
> > > (in a face-to-face meeting).
>
> > > 1 b) Everything will go through TLS.
>
> > > 2) Limit downloads/uploads to .png/.gif/.jpg files (main pitfall if
> > > part (1) fails: not sure what would happen if a malicious user
> > > uploaded a malicious script/binary as an image... my guess is not much
> > > except for a very weird-looking picture for the users... possible
> > > webside defiguration there as well).
>
> > > 3) I'd also limit the IP access to the artist's home IP, but his IP
> > > will probably be dynamic. Maybe limit the area, I'll see.
>
> > > 4) The artistis account will be deleted once the work is done.
>
> > > Any blatant oversight or possible improvement to this model?
>
> > > Question 2:
>
> > > The pictures in the static folder are constantly being read-accessed
> > > during web-page requests.
>
> > > My guessing is that not much will happen if the artist downloads an
> > > image.
>
> > > However, any possible complications if the artist uploads (and thus
> > > overwrites) one of the pictures while a page needing it is requested?
>
> > > Thanks in advance for the feedback.
>
>


Re: [web2py] Re: In appadmin clicking on the "file" trying to load it in the browser..

2010-10-10 Thread Jason Brower
Oops, yeah.  We should have a check for that. It would be nice to have 
the option upgrade the appadmin as well, I totally forgot about it.

Best regards,
Jason Brower

On 10/10/2010 10:01 AM, mdipierro wrote:

Is this an app you started some time ago? Could you try move
controllers/appadmin.py and views/appadmin.html from the latest
welcome into your app and see if the problem persists?

On Oct 10, 12:01 am, Jason Brower  wrote:
   

Sure... clicking this link give me this...
It would be nice if it was a bit smarter in that respect and show me the
image or even better some nice overlay with the image.
BR,
Jason

On 10/10/2010 12:56 AM, mdipierro wrote:

 

can you tell us more.
   
 

On Oct 9, 12:45 pm, Jason Browerwrote:
   
 

This is bad as it will load a JPG as garbage.  Perhaps it should always
go for download.  That or build a handler to preview it if it's an image.
Best Regards,
Jason
 



  Screenshot-1.png
830KViewDownload

  Screenshot.png
174KViewDownload
 


Re: [web2py] Re: Any possible problems if I do this? Any possible improvement?

2010-10-10 Thread Michele Comitini
When you meet him why don't you give him a TSL private key+signed cert
on a USB key?
Then you will allow access only if cert is properly signed.  the
private key can be protected by a secret.
It is easier to do than it seems at first :-)

mic

2010/10/10 mdipierro :
> adding the three attempt limit is a good idea.
>
> On Oct 9, 10:56 pm, Magnitus  wrote:
>> Well, technically, you can't access the admin unless:
>>
>> 1) You have local access
>>
>> and/or
>>
>> 2) You are using TLS
>>
>> So if you site isn't using TLS, the admin is disabled and you are safe
>> (even if your generic users aren't).
>>
>> However, I dislike the amount of power you have in one place with the
>> admin app.
>>
>> I'd prefer to break it down into several sections that I need and make
>> various sections available to different roles with user accounts.
>>
>> In particular, I find the ability to edit the controllers/models
>> remotely seldom useful in a deployment server (what I'd want to do if
>> I need to modify code after deployment is to modify a secondary test
>> server, test the mods and then propagate the modified files to the
>> production server) and extremely compromising if someone breaks in
>> (yes, in a perfect world, nobody should be able to login as the admin
>> except the admin and so it doesn't matter if all hell breaks lose if
>> someone manages to do so right?).
>>
>> For that reason, I don't include the admin in the list of accessible
>> urls in the routing file.
>>
>> I think disabling the admin after 3 consecutive unsuccessful login
>> attempts wouldn't be that hard to implement, but as I don't use the
>> admin for reasons mentioned above, I think it would be more
>> interesting to disable user accounts after 3 unsuccessful login
>> attempts (assuming that administration is based on role-based access
>> with user accounts).
>>
>> Then, whether its good to implement the 'disable after 3 login
>> attempts' measure depends on the situation.
>>
>> If secret usernames are used to login, its a decent security measure.
>>
>> If emails or public usernames are used to login, it would be easy for
>> someone to do a DoS attack on a particular user they don't like by
>> repeatedly try to login as the user using a wrong password to lockdown
>> his account (lets face it, some people are just mean). For this
>> reason, I also think it might be bad to implement it on the admin app
>> if you are using it (once someone has found the app, they could
>> perform DoS attacks on the admin with impunity).
>>
>> So assuming that the admin section uses role-based access with an
>> account that doesn't have a public username and that the username is
>> something a little more subtle than 'admin', then it wouldn't be a bad
>> thing to implement the 'disable after 3 login attempts' measure.
>>
>> Another interesting alternative to prevent brute force attacks, at
>> least for the admin (might annoy regular users), would be the use of
>> captchas.
>>
>> On Oct 9, 10:39 pm, Richard  wrote:
>>
>> > > 3) I'd also limit the IP access to the artist's home IP, but his IP
>>
>> > will probably be dynamic. Maybe limit the area, I'll see.
>>
>> > I've got some apps around the web with the admin exposed and haven't
>> > had any problems. Though it probably helps that nothing links to them.
>>
>> > Could you modify admin so that it locks the account after a number of
>> > successive password failures?
>>
>> > On Oct 7, 6:44 pm, Magnitus  wrote:
>>
>> > > I am in the process of securing the help of an artist for my project,
>> > > but he's a casual computer user (doesn't know ssh/scp) and I'm trying
>> > > very hard to make everything as painless and pleasant as possible for
>> > > him to secure his help.
>>
>> > > In order to do that, I decided to create a view that will allow the
>> > > artist to download and upload pictures in the "static" folder of my
>> > > app (similar in concept to the facility provided to translators for
>> > > the languages, except with more fine-grained access control).
>>
>> > > Question 1:
>>
>> > > My current strategy (security-wise) is:
>>
>> > > 1) Limit the associated controller to the artist's role
>>
>> > > 1 a) A strong and unchangeable password will be provided to the artist
>> > > (in a face-to-face meeting).
>>
>> > > 1 b) Everything will go through TLS.
>>
>> > > 2) Limit downloads/uploads to .png/.gif/.jpg files (main pitfall if
>> > > part (1) fails: not sure what would happen if a malicious user
>> > > uploaded a malicious script/binary as an image... my guess is not much
>> > > except for a very weird-looking picture for the users... possible
>> > > webside defiguration there as well).
>>
>> > > 3) I'd also limit the IP access to the artist's home IP, but his IP
>> > > will probably be dynamic. Maybe limit the area, I'll see.
>>
>> > > 4) The artistis account will be deleted once the work is done.
>>
>> > > Any blatant oversight or possible improvement to this model?
>>
>> > > Question 2:
>>
>> > > The pictures

[web2py] Only 1 {{extend ...}} allowed in a view ?

2010-10-10 Thread Stef Mientki
 hello,

I'm trying to make a visible view of the layout components (html, css etc).

Is it correct that in each view,
it's allowed to have at most 1 {{extend ...}}  ?

thanks,
Stef Mientki


[web2py] Re: book, chapter 07

2010-10-10 Thread cjrh
On Oct 9, 11:35 am, andrej burja  wrote:
> hi
>
> in the section about crud

[snip]

Fixed, thanks.



[web2py] Re: please help us test new web site

2010-10-10 Thread johntynan
Great work with the new web2py site!  I like how well the top and
right hand navigation is used and I was glad to discover some
resources about web2py that I didn't realize were available.

I have one question.  Do you think the twitter link should direct
people to the twitter search for web2py, as opposed to the web2py
twitter account?  http://twitter.com/search/web2py

Excellent work!


[web2py] Re: error when registering on local GAE

2010-10-10 Thread Chuck Paulson
I am using web2py version 1.86.2 on Windows Vista and the error
happened with both Internet Explorer and Google Chrome.

Registration works fine when running web2py without GAE. However with
local GAE I get the error given above. For some reason the line

table_user[form.vars.id] = dict(registration_key='')

in tools.py line#1627 is failing to write to the
db.auth_user.registration_key field and the default UUID remains
there. If I change that field to the null string then it works fine.

On Oct 10, 2:46 am, mdipierro  wrote:
> which web2py version?
>
> On Oct 9, 11:27 pm, Chuck Paulson  wrote:
>
>
>
> > I am getting an error while registering on my local GAE. I fill out
> > the registration form, click submit, and then get a ticket for the
> > error shown below.
>
> > The user is put into the auth_user table, but the registration_key
> > field is set to a UUID, causing a "registration needs verification"
> > message to pop up when attempting to login.
>
> > What could be causing this?
>
> > Chuck Paulson
>
> > Traceback (most recent call last):
> >   File "C:\webdev\web2py\gluon\restricted.py", line 188, in restricted
> >     exec ccode in environment
> >   File "C:\webdev\web2py\applications\ArticleSpin/controllers/
> > default.py:user", line 155, in 
> >   File "C:\webdev\web2py\gluon\globals.py", line 96, in 
> >     self._caller = lambda f: f()
> >   File "C:\webdev\web2py\applications\ArticleSpin/controllers/
> > default.py:user", line 134, in user
> >   File "C:\webdev\web2py\gluon\tools.py", line 1028, in __call__
> >     return self.register()
> >   File "C:\webdev\web2py\gluon\tools.py", line 1627, in register
> >     table_user[form.vars.id] = dict(registration_key='')
> >   File "C:\webdev\web2py\gluon\sql.py", line 1672, in __setitem__
> >     elif not self._db(self._id == key)\
> >   File "C:\webdev\web2py\gluon\sql.py", line 1683, in __getattr__
> >     return dict.__getitem__(self,key)
> > KeyError: '_id'- Hide quoted text -
>
> - Show quoted text -


[web2py] Re: Only 1 {{extend ...}} allowed in a view ?

2010-10-10 Thread mdipierro
Think of the layout hierarchy for each page as a tree. You can enter
into any node of the tree. You can include down and extend up.
Beacause each node has a single parent, each html file can only have
on extend.

On Oct 10, 5:04 am, Stef Mientki  wrote:
>  hello,
>
> I'm trying to make a visible view of the layout components (html, css etc).
>
> Is it correct that in each view,
> it's allowed to have at most 1 {{extend ...}}  ?
>
> thanks,
> Stef Mientki


[web2py] result of LOAD do not accept global css/javascript

2010-10-10 Thread Tomas Pelka

Hello,

need to affect result of LOAD by javascript and css. Tying to implement 
something like 
http://www.mattkruse.com/javascript/mktree/documentation.html. In view:



{{if len(res)==0 and q_size==0:}}
{{=nothing}}
{{else:}}
{{=LOAD('sniffer','getResults',ajax=True)}}
{{pass}}


getResults from controller produces an field containing HTML with 
appropriate classes etc (javascript is included in web2py_ajax.html). It 
seems that the result of LOAD is not affected by javascript and css.



Thanks for advices.

--
Tomas Pelka



[web2py] Re: result of LOAD do not accept global css/javascript

2010-10-10 Thread mdipierro
When you load content via ajax, the content should not contain an
.. tag nor a ... tag. the style info are
inherited by the parent page. Perhaps you want an iframe instead?

On Oct 10, 10:19 am, Tomas Pelka  wrote:
> Hello,
>
> need to affect result of LOAD by javascript and css. Tying to implement
> something likehttp://www.mattkruse.com/javascript/mktree/documentation.html. 
> In view:
>
> 
> {{if len(res)==0 and q_size==0:}}
> {{=nothing}}
> {{else:}}
> {{=LOAD('sniffer','getResults',ajax=True)}}
> {{pass}}
> 
>
> getResults from controller produces an field containing HTML with
> appropriate classes etc (javascript is included in web2py_ajax.html). It
> seems that the result of LOAD is not affected by javascript and css.
>
> Thanks for advices.
>
> --
> Tomas Pelka


[web2py] Re: error when registering on local GAE

2010-10-10 Thread mdipierro
I this this bug is fixed in trunk. Can you try trunk?

Massimo

On Oct 10, 8:18 am, Chuck Paulson  wrote:
> I am using web2py version 1.86.2 on Windows Vista and the error
> happened with both Internet Explorer and Google Chrome.
>
> Registration works fine when running web2py without GAE. However with
> local GAE I get the error given above. For some reason the line
>
> table_user[form.vars.id] = dict(registration_key='')
>
> in tools.py line#1627 is failing to write to the
> db.auth_user.registration_key field and the default UUID remains
> there. If I change that field to the null string then it works fine.
>
> On Oct 10, 2:46 am, mdipierro  wrote:
>
> > which web2py version?
>
> > On Oct 9, 11:27 pm, Chuck Paulson  wrote:
>
> > > I am getting an error while registering on my local GAE. I fill out
> > > the registration form, click submit, and then get a ticket for the
> > > error shown below.
>
> > > The user is put into the auth_user table, but the registration_key
> > > field is set to a UUID, causing a "registration needs verification"
> > > message to pop up when attempting to login.
>
> > > What could be causing this?
>
> > > Chuck Paulson
>
> > > Traceback (most recent call last):
> > >   File "C:\webdev\web2py\gluon\restricted.py", line 188, in restricted
> > >     exec ccode in environment
> > >   File "C:\webdev\web2py\applications\ArticleSpin/controllers/
> > > default.py:user", line 155, in 
> > >   File "C:\webdev\web2py\gluon\globals.py", line 96, in 
> > >     self._caller = lambda f: f()
> > >   File "C:\webdev\web2py\applications\ArticleSpin/controllers/
> > > default.py:user", line 134, in user
> > >   File "C:\webdev\web2py\gluon\tools.py", line 1028, in __call__
> > >     return self.register()
> > >   File "C:\webdev\web2py\gluon\tools.py", line 1627, in register
> > >     table_user[form.vars.id] = dict(registration_key='')
> > >   File "C:\webdev\web2py\gluon\sql.py", line 1672, in __setitem__
> > >     elif not self._db(self._id == key)\
> > >   File "C:\webdev\web2py\gluon\sql.py", line 1683, in __getattr__
> > >     return dict.__getitem__(self,key)
> > > KeyError: '_id'- Hide quoted text -
>
> > - Show quoted text -
>
>


Re: [web2py] Re: result of LOAD do not accept global css/javascript

2010-10-10 Thread Tomas Pelka

Hmm, well if the style is inherited from parent it should work instead.

On 10/10/2010 05:56 PM, mdipierro wrote:


When you load content via ajax, the content should not contain an
..  tag nor a...  tag. the style info are
inherited by the parent page. Perhaps you want an iframe instead?

On Oct 10, 10:19 am, Tomas Pelka  wrote:
   

Hello,

need to affect result of LOAD by javascript and css. Tying to implement
something likehttp://www.mattkruse.com/javascript/mktree/documentation.html. In 
view:


{{if len(res)==0 and q_size==0:}}
{{=nothing}}
{{else:}}
{{=LOAD('sniffer','getResults',ajax=True)}}
{{pass}}


getResults from controller produces an field containing HTML with
appropriate classes etc (javascript is included in web2py_ajax.html). It
seems that the result of LOAD is not affected by javascript and css.

Thanks for advices.

--
Tomas Pelka
 


--
Tomas Pelka



Re: [web2py] Re: nginx with bultin uwsgi module

2010-10-10 Thread Michele Alzetta
I'm not sure I understand what the advantage of wsgi would be, in any case
if somebody finds it useful here is the part of my nginx.conf with which I
run web2py with https access on a remote server; if somebody could post
instructions on running web2py through wsgi on nginx I would like to test
the difference.

server {
listen   443;
ssl  on;
ssl_certificate  /etc/ssl/nginx/nginx.pem;
ssl_certificate_key  /etc/ssl/nginx/nginx.key;
keepalive_timeout70;
server_name  my.server.name;
access_log  /var/log/nginx/web2py.access.log;
location / {
set $fixed_destination $http_destination;
if ($http_destination ~* ^https(.*)$)
{
set $fixed_destination http$1;
}
proxy_pass http://127.0.0.1:8000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
#   proxy_set_header
X-Forwarded-For$proxy_add_x_forwarder_for;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_headerDestination $fixed_destination;
}
}

This works for me. Hope it helps.

Michele


[web2py] Init script for Web2Py

2010-10-10 Thread Michele Alzetta
Hello, I wonder if someone has created a "normal" initscript for Web2Py.

For the moment I manage with the following hack, but it is not elegant and I
would prefer something that integrates better with the rest of the system.

My hack:

start.sh ( in web2py directory ):

-

#!/bin/bash

exec /usr/bin/python /my/path/to/web2py/web2py.py -a mypassword -i 127.0.0.1
-p 8000



In /etc/init.d the following file (copied from a lighttpd startup script):



#!/bin/sh

PIDFILE=/my/path/to/web2py/httpserver.pid
HTTPD=/my/path/to/web2py/start.sh

PID=0
if [ -e $PIDFILE ]; then
PID=`cat $PIDFILE`
if [ "x" == "x$PID" ]; then
PID=0
fi
fi

case "$1" in
start)
if [ 0 -ne $PID ]; then
running=`ps --pid $PID | grep $PID |wc -l`
if [ $running ]; then
echo "web2py is already running"
exit 1
fi

echo "web2py does not appear to be running, but old PID file
exists. Removing..."
rm $PIDFILE
PID=0
fi

echo "Starting Web2Py..."
$HTTPD > /dev/null 2>&1
;;
stop)
if [ 0 -eq $PID ]; then
echo "Web2Py was not running"
exit 1
fi

echo "Attempting to kill process $PID (Web2Py)"
kill $PID
tries=""
while [ -e $PIDFILE ]; do
if [ "x$tries" == "x.." ]; then
break
fi
sleep 2
tries=".$tries"
done
if [ -e $PIDFILE ]; then
echo "Unable to kill Web2Py in 10 attempts. Killing with -9
flag..."
kill -9 $PID

---


HTH somebody, but a regular init script would be so much better :)

Michele


Re: [web2py] Re: nginx with bultin uwsgi module

2010-10-10 Thread Roberto De Ioris

> I'm not sure I understand what the advantage of wsgi would be, in any case
> if somebody finds it useful here is the part of my nginx.conf with which I
> run web2py with https access on a remote server; if somebody could post
> instructions on running web2py through wsgi on nginx I would like to test
> the difference.



It is uwsgi not wsgi.

It is a network protocol for fast transfer of information (mainly string
dictionary). It is binary based and very easy to parse (for a machine not
for a human ;) ):

http://projects.unbit.it/uwsgi/wiki/uwsgiProtocol

You can think about it as "simplified fastcgi/scgi", even if uwsgi is not
(only) related to cgi/http messages.

Then there is the uWSGI project (that uses the uwsgi protocol) that is a
web application container (it was born as a WSGI only server, but over
time it has evolved a lot, supporting other languages).

It includes all you can expect from a deploy platform (failover, automatic
respawning, process monitoring, inter-cluster communications, resource
limiting, logging...).

You can find web2py configuration example here:

http://projects.unbit.it/uwsgi/wiki/Example#Web2Py2uWSGI

Handlers for the uwsgi protocol are available even for Cherokee (included
in the official distribution), Apache2 (as external module) and lighttpd
(external, not very well tested, module)

I hope it can be useful

-- 
Roberto De Ioris
http://unbit.it


Re: [web2py] Init script for Web2Py

2010-10-10 Thread Jonathan Lundell
On Oct 10, 2010, at 9:45 AM, Michele Alzetta wrote:
> Hello, I wonder if someone has created a "normal" initscript for Web2Py.
> 
> For the moment I manage with the following hack, but it is not elegant and I 
> would prefer something that integrates better with the rest of the system.

You might want to rm -f $PIDFILE at the end of the stop function, or at least 
in the kill -9 path.

I think that init scripts tend to be rather system-specific. There's a Red Hat 
script in the scripts directory, and maybe some others.

> 
> My hack:
> 
> start.sh ( in web2py directory ):
> 
> -
> 
> #!/bin/bash
> 
> exec /usr/bin/python /my/path/to/web2py/web2py.py -a mypassword -i 127.0.0.1 
> -p 8000 
> 
> 
> 
> In /etc/init.d the following file (copied from a lighttpd startup script):
> 
> 
> 
> #!/bin/sh
> 
> PIDFILE=/my/path/to/web2py/httpserver.pid
> HTTPD=/my/path/to/web2py/start.sh
> 
> PID=0
> if [ -e $PIDFILE ]; then
> PID=`cat $PIDFILE`
> if [ "x" == "x$PID" ]; then
> PID=0
> fi
> fi
> 
> case "$1" in
> start)
> if [ 0 -ne $PID ]; then
> running=`ps --pid $PID | grep $PID |wc -l`
> if [ $running ]; then
> echo "web2py is already running"
> exit 1
> fi
> 
> echo "web2py does not appear to be running, but old PID file 
> exists. Removing..."
> rm $PIDFILE
> PID=0
> fi
> 
> echo "Starting Web2Py..."
> $HTTPD > /dev/null 2>&1
> ;;
> stop)
> if [ 0 -eq $PID ]; then
> echo "Web2Py was not running"
> exit 1
> fi
> 
> echo "Attempting to kill process $PID (Web2Py)"
> kill $PID
> tries=""
> while [ -e $PIDFILE ]; do
> if [ "x$tries" == "x.." ]; then
> break
> fi
> sleep 2
> tries=".$tries"
> done
> if [ -e $PIDFILE ]; then
> echo "Unable to kill Web2Py in 10 attempts. Killing with -9 
> flag..."
> kill -9 $PID
>   
> ---
> 
> 
> HTH somebody, but a regular init script would be so much better :)
> 
> Michele




Re: [web2py] Re: Only 1 {{extend ...}} allowed in a view ?

2010-10-10 Thread Stef Mientki
 thanks Massimo,
for the confirmation,
cheers Stef

On 10-10-2010 16:17, mdipierro wrote:
> Think of the layout hierarchy for each page as a tree. You can enter
> into any node of the tree. You can include down and extend up.
> Beacause each node has a single parent, each html file can only have
> on extend.
>
> On Oct 10, 5:04 am, Stef Mientki  wrote:
>>  hello,
>>
>> I'm trying to make a visible view of the layout components (html, css etc).
>>
>> Is it correct that in each view,
>> it's allowed to have at most 1 {{extend ...}}  ?
>>
>> thanks,
>> Stef Mientki



Re: [web2py] Re: please help us test new web site

2010-10-10 Thread Thadeus Burgess
I think the "w" is redundant in the logo. It just looks funny.

What if the logo was just the user icon in the middle?

--
Thadeus





On Sun, Oct 10, 2010 at 8:04 AM, johntynan  wrote:
> Great work with the new web2py site!  I like how well the top and
> right hand navigation is used and I was glad to discover some
> resources about web2py that I didn't realize were available.
>
> I have one question.  Do you think the twitter link should direct
> people to the twitter search for web2py, as opposed to the web2py
> twitter account?  http://twitter.com/search/web2py
>
> Excellent work!
>


Re: [web2py] Init script for Web2Py

2010-10-10 Thread Jonathan Lundell
On Oct 10, 2010, at 10:10 AM, Jonathan Lundell wrote:
> I think that init scripts tend to be rather system-specific. There's a Red 
> Hat script in the scripts directory, and maybe some others.

Speaking of the scripts directory, it looks to me like a cleanup is in order. 
Some of the scripts could use some comments--they're pretty opaque.

Some of them, I suspect, don't work or are way out of date.

setup-web2py-fedora.sh, for example. apt-get? Ubuntu?

...and it ought to check that it hasn't been run already.


repair.py: isn't that functionality built-in these days (main.py)?


etc...

Re: [web2py] Re: please help us test new web site

2010-10-10 Thread rochacbruno
I did not understand your suggestion, what user icon?

Are you saying to remove "web2py" leaving just the WP or removing the big W 
leaving just the P?

I am working on new ideas for the logo, small changes.

Enviado via iPhone

Em 10/10/2010, às 14:21, Thadeus Burgess  escreveu:

> I think the "w" is redundant in the logo. It just looks funny.
> 
> What if the logo was just the user icon in the middle?
> 
> --
> Thadeus
> 
> 
> 
> 
> 
> On Sun, Oct 10, 2010 at 8:04 AM, johntynan  wrote:
>> Great work with the new web2py site!  I like how well the top and
>> right hand navigation is used and I was glad to discover some
>> resources about web2py that I didn't realize were available.
>> 
>> I have one question.  Do you think the twitter link should direct
>> people to the twitter search for web2py, as opposed to the web2py
>> twitter account?  http://twitter.com/search/web2py
>> 
>> Excellent work!
>> 


Re: [web2py] Re: please help us test new web site

2010-10-10 Thread Thadeus Burgess
The circle-dagger in the middle of the logo. Remove the W and make it
just an i. IE: A user icon, the circle representing a head and the
dagger representing the user body. Remove the \ and / from the logo.

--
Thadeus





On Sun, Oct 10, 2010 at 1:24 PM, rochacbruno  wrote:
> I did not understand your suggestion, what user icon?
>
> Are you saying to remove "web2py" leaving just the WP or removing the big W 
> leaving just the P?
>
> I am working on new ideas for the logo, small changes.
>
> Enviado via iPhone
>
> Em 10/10/2010, às 14:21, Thadeus Burgess  escreveu:
>
>> I think the "w" is redundant in the logo. It just looks funny.
>>
>> What if the logo was just the user icon in the middle?
>>
>> --
>> Thadeus
>>
>>
>>
>>
>>
>> On Sun, Oct 10, 2010 at 8:04 AM, johntynan  wrote:
>>> Great work with the new web2py site!  I like how well the top and
>>> right hand navigation is used and I was glad to discover some
>>> resources about web2py that I didn't realize were available.
>>>
>>> I have one question.  Do you think the twitter link should direct
>>> people to the twitter search for web2py, as opposed to the web2py
>>> twitter account?  http://twitter.com/search/web2py
>>>
>>> Excellent work!
>>>
>


[web2py] Re: please help us test new web site

2010-10-10 Thread weheh
Hi Bruno, good work all around. Thoughts about the logo: I like the
way the logo worked in the past, where the icon part of the logo
separates from the web2py part of the logo and works stand alone. I
like your attempt to combine the W and the P. If you overlap the P on
top of the right-most up-slanting segment of the W, it looks like the
loop in the P could be the head of a snake and the W is its body. As
many of us would not be using web2py were it not for python, the snake
is an important motif IMHO. As you come up with new sketches for the
logo, could you try a design that incorporates these ideas? I present
a quick example of this concept (using your color scheme) here:
https://docs.google.com/leaf?id=0BzPqKovYWlw-YTI5M2Q5NTAtMDk0MS00ZjgwLWFhZGItZTNmYmM3MzdiMjlh&hl=en

On Oct 10, 2:24 pm, rochacbruno  wrote:
> I did not understand your suggestion, what user icon?
>
> Are you saying to remove "web2py" leaving just the WP or removing the big W 
> leaving just the P?
>
> I am working on new ideas for the logo, small changes.
>
> Enviado via iPhone
>
> Em 10/10/2010, às 14:21, Thadeus Burgess  escreveu:
>
> > I think the "w" is redundant in the logo. It just looks funny.
>
> > What if the logo was just the user icon in the middle?
>
> > --
> > Thadeus
>
> > On Sun, Oct 10, 2010 at 8:04 AM, johntynan  wrote:
> >> Great work with the new web2py site!  I like how well the top and
> >> right hand navigation is used and I was glad to discover some
> >> resources about web2py that I didn't realize were available.
>
> >> I have one question.  Do you think the twitter link should direct
> >> people to the twitter search for web2py, as opposed to the web2py
> >> twitter account?  http://twitter.com/search/web2py
>
> >> Excellent work!
>
>


[web2py] Re: please help us test new web site

2010-10-10 Thread mdipierro
I did not do anything. The other people mentioned did.

On Oct 10, 2:07 am, Adi  wrote:
> Amazing work Massimo, Bruno and Martin!
>
> On Oct 10, 11:10 am, Albert Abril  wrote:
>
> > I suggested Bruno and Martin another concept of logo.
> > Here's my draft design (attached).
>
> > On Sun, Oct 10, 2010 at 6:54 AM, guruyaya  wrote:
> > > I happen to like to new logo. It looks like very slick. The offers on
> > > the google docs are problematic, as they are rectangles, not squares
> > > (or even almost squares). Imagine using it as a desktop icon, or as a
> > > favicon, and I think you'll see the problem.
> > > Overall - I like the new design. After getting used to it, I'm sure no-
> > > one will miss the old one.
>
> > > On Oct 10, 6:01 am, Bruno Rocha  wrote:
> > > > I like that concept ->
> > >https://docs.google.com/leaf?id=0BzPqKovYWlw-N2IwYTA0Y2EtNDNjMi00OTg1...
>
> > > > But, the snake looks childish. the idea is very good, but snake have to
> > > be
> > > > redesigned, or maybe simplified, perhaps just the snake silhouette.
>
> > > > And, I still like the actual logo.
>
> > > > 2010/10/10 weheh 
>
> > > > > New website is good. Logo is kind of sinister looking IMHO. If we need
> > > > > a new logo, I would like to resubmit some prototype logos from my
> > > > > friend Diane Heller. I think they have potential and last year, she
> > > > > was willing to spend some more time on the logo (pro bono) if there
> > > > > was any interest. If there's interest now, I'll contact her about it
> > > > > again.
>
> > > > >https://docs.google.com/leaf?id=0BzPqKovYWlw-ODg1ZjE0YzgtMTQ3NC00NmM0.
> > > ..
>
> > > > >https://docs.google.com/leaf?id=0BzPqKovYWlw-MmRhNjcwNjAtM2Y4OS00ZTM1.
> > > ..
>
> > > > >https://docs.google.com/leaf?id=0BzPqKovYWlw-N2IwYTA0Y2EtNDNjMi00OTg1.
> > > ..
>
> > > > > On Oct 9, 4:07 pm, mdipierro  wrote:
> > > > > > New web2py layout:
>
> > > > > >    http://web2py.com
>
> > > > > > Thanks Bruno and Martin
>
> > > > > > New demo_admin:
>
> > > > > >    http://web2py.com/demo_admin
>
> > > > > > Massimo
>
> >  concepte.4.logo.web2py.png
> > 74KViewDownload
>
>


Re: [web2py] Re: please help us test new web site

2010-10-10 Thread Jonathan Lundell
On Oct 10, 2010, at 12:14 PM, weheh wrote:
> 
> Hi Bruno, good work all around. Thoughts about the logo: I like the
> way the logo worked in the past, where the icon part of the logo
> separates from the web2py part of the logo and works stand alone. I
> like your attempt to combine the W and the P. If you overlap the P on
> top of the right-most up-slanting segment of the W, it looks like the
> loop in the P could be the head of a snake and the W is its body. As
> many of us would not be using web2py were it not for python, the snake
> is an important motif IMHO. As you come up with new sketches for the
> logo, could you try a design that incorporates these ideas? I present
> a quick example of this concept (using your color scheme) here:
> https://docs.google.com/leaf?id=0BzPqKovYWlw-YTI5M2Q5NTAtMDk0MS00ZjgwLWFhZGItZTNmYmM3MzdiMjlh&hl=en

"Sorry, the page (or document) you have requested is not available."




> 
> On Oct 10, 2:24 pm, rochacbruno  wrote:
>> I did not understand your suggestion, what user icon?
>> 
>> Are you saying to remove "web2py" leaving just the WP or removing the big W 
>> leaving just the P?
>> 
>> I am working on new ideas for the logo, small changes.
>> 
>> Enviado via iPhone
>> 
>> Em 10/10/2010, às 14:21, Thadeus Burgess  escreveu:
>> 
>>> I think the "w" is redundant in the logo. It just looks funny.
>> 
>>> What if the logo was just the user icon in the middle?
>> 
>>> --
>>> Thadeus
>> 
>>> On Sun, Oct 10, 2010 at 8:04 AM, johntynan  wrote:
 Great work with the new web2py site!  I like how well the top and
 right hand navigation is used and I was glad to discover some
 resources about web2py that I didn't realize were available.
>> 
 I have one question.  Do you think the twitter link should direct
 people to the twitter search for web2py, as opposed to the web2py
 twitter account?  http://twitter.com/search/web2py
>> 
 Excellent work!
>> 
>> 




[web2py] Re: error when registering on local GAE

2010-10-10 Thread Chuck Paulson
I am trying the trun. It works fine for my app under web2py. However
for the local GAE I get an error as soon as the browser goes to http//
127.0.0.1:8080. It may be some configuration issue, I just don't know.
Here's the error traceback.

Traceback (most recent call last):
  File "C:\webdev\google_appengine\google\appengine\tools
\dev_appserver.py", line 3206, in _HandleRequest
self._Dispatch(dispatcher, self.rfile, outfile, env_dict)
  File "C:\webdev\google_appengine\google\appengine\tools
\dev_appserver.py", line 3149, in _Dispatch
base_env_dict=env_dict)
  File "C:\webdev\google_appengine\google\appengine\tools
\dev_appserver.py", line 525, in Dispatch
base_env_dict=base_env_dict)
  File "C:\webdev\google_appengine\google\appengine\tools
\dev_appserver.py", line 2402, in Dispatch
self._module_dict)
  File "C:\webdev\google_appengine\google\appengine\tools
\dev_appserver.py", line 2312, in ExecuteCGI
reset_modules = exec_script(handler_path, cgi_path, hook)
  File "C:\webdev\google_appengine\google\appengine\tools
\dev_appserver.py", line 2208, in ExecuteOrImportScript
exec module_code in script_module.__dict__
  File "C:\webdev\web2py\gaehandler.py", line 55, in 
import gluon.main
  File "C:\webdev\google_appengine\google\appengine\tools
\dev_appserver.py", line 1287, in Decorate
return func(self, *args, **kwargs)
  File "C:\webdev\google_appengine\google\appengine\tools
\dev_appserver.py", line 1937, in load_module
return self.FindAndLoadModule(submodule, fullname, search_path)
  File "C:\webdev\google_appengine\google\appengine\tools
\dev_appserver.py", line 1287, in Decorate
return func(self, *args, **kwargs)
  File "C:\webdev\google_appengine\google\appengine\tools
\dev_appserver.py", line 1839, in FindAndLoadModule
description)
  File "C:\webdev\google_appengine\google\appengine\tools
\dev_appserver.py", line 1287, in Decorate
return func(self, *args, **kwargs)
  File "C:\webdev\google_appengine\google\appengine\tools
\dev_appserver.py", line 1790, in LoadModuleRestricted
description)
  File "C:\webdev\web2py\gluon\main.py", line 37, in 
os.chdir(web2py_path)
AttributeError: 'module' object has no attribute 'chdir'

On Oct 10, 11:57 am, mdipierro  wrote:
> I this this bug is fixed in trunk. Can you try trunk?
>
> Massimo
>
> On Oct 10, 8:18 am, Chuck Paulson  wrote:
>
>
>
> > I am using web2py version 1.86.2 on Windows Vista and the error
> > happened with both Internet Explorer and Google Chrome.
>
> > Registration works fine when running web2py without GAE. However with
> > local GAE I get the error given above. For some reason the line
>
> > table_user[form.vars.id] = dict(registration_key='')
>
> > in tools.py line#1627 is failing to write to the
> > db.auth_user.registration_key field and the default UUID remains
> > there. If I change that field to the null string then it works fine.
>
> > On Oct 10, 2:46 am, mdipierro  wrote:
>
> > > which web2py version?
>
> > > On Oct 9, 11:27 pm, Chuck Paulson  wrote:
>
> > > > I am getting an error while registering on my local GAE. I fill out
> > > > the registration form, click submit, and then get a ticket for the
> > > > error shown below.
>
> > > > The user is put into the auth_user table, but the registration_key
> > > > field is set to a UUID, causing a "registration needs verification"
> > > > message to pop up when attempting to login.
>
> > > > What could be causing this?
>
> > > > Chuck Paulson
>
> > > > Traceback (most recent call last):
> > > >   File "C:\webdev\web2py\gluon\restricted.py", line 188, in restricted
> > > >     exec ccode in environment
> > > >   File "C:\webdev\web2py\applications\ArticleSpin/controllers/
> > > > default.py:user", line 155, in 
> > > >   File "C:\webdev\web2py\gluon\globals.py", line 96, in 
> > > >     self._caller = lambda f: f()
> > > >   File "C:\webdev\web2py\applications\ArticleSpin/controllers/
> > > > default.py:user", line 134, in user
> > > >   File "C:\webdev\web2py\gluon\tools.py", line 1028, in __call__
> > > >     return self.register()
> > > >   File "C:\webdev\web2py\gluon\tools.py", line 1627, in register
> > > >     table_user[form.vars.id] = dict(registration_key='')
> > > >   File "C:\webdev\web2py\gluon\sql.py", line 1672, in __setitem__
> > > >     elif not self._db(self._id == key)\
> > > >   File "C:\webdev\web2py\gluon\sql.py", line 1683, in __getattr__
> > > >     return dict.__getitem__(self,key)
> > > > KeyError: '_id'- Hide quoted text -
>
> > > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -


[web2py] Re: please help us test new web site

2010-10-10 Thread weheh
Sorry ... sharing settings weren't set properly.

https://docs.google.com/leaf?id=0BzPqKovYWlw-YTI5M2Q5NTAtMDk0MS00ZjgwLWFhZGItZTNmYmM3MzdiMjlh&hl=en

On Oct 10, 3:29 pm, Jonathan Lundell  wrote:
> On Oct 10, 2010, at 12:14 PM, weheh wrote:
>
>
>
> > Hi Bruno, good work all around. Thoughts about the logo: I like the
> > way the logo worked in the past, where the icon part of the logo
> > separates from the web2py part of the logo and works stand alone. I
> > like your attempt to combine the W and the P. If you overlap the P on
> > top of the right-most up-slanting segment of the W, it looks like the
> > loop in the P could be the head of a snake and the W is its body. As
> > many of us would not be using web2py were it not for python, the snake
> > is an important motif IMHO. As you come up with new sketches for the
> > logo, could you try a design that incorporates these ideas? I present
> > a quick example of this concept (using your color scheme) here:
> >https://docs.google.com/leaf?id=0BzPqKovYWlw-YTI5M2Q5NTAtMDk0MS00Zjgw...
>
> "Sorry, the page (or document) you have requested is not available."
>
>
>
> > On Oct 10, 2:24 pm, rochacbruno  wrote:
> >> I did not understand your suggestion, what user icon?
>
> >> Are you saying to remove "web2py" leaving just the WP or removing the big 
> >> W leaving just the P?
>
> >> I am working on new ideas for the logo, small changes.
>
> >> Enviado via iPhone
>
> >> Em 10/10/2010, às 14:21, Thadeus Burgess  escreveu:
>
> >>> I think the "w" is redundant in the logo. It just looks funny.
>
> >>> What if the logo was just the user icon in the middle?
>
> >>> --
> >>> Thadeus
>
> >>> On Sun, Oct 10, 2010 at 8:04 AM, johntynan  wrote:
>  Great work with the new web2py site!  I like how well the top and
>  right hand navigation is used and I was glad to discover some
>  resources about web2py that I didn't realize were available.
>
>  I have one question.  Do you think the twitter link should direct
>  people to the twitter search for web2py, as opposed to the web2py
>  twitter account?  http://twitter.com/search/web2py
>
>  Excellent work!
>
>


[web2py] Re: please help us test new web site

2010-10-10 Thread Anthony
For what it's worth, I don't think we need a snake in the logo. At
least, it can be difficult to get it right -- snake logos can easily
end up looking either too fierce/scary or too childish/cartoonish.
Most other Python frameworks and libraries don't have snake logos (not
to mention that the language was actually named after Monty Python,
not a snake). The few snake logos that actually look OK are typically
highly stylized and don't really look too "snaky".

Anthony

On Oct 10, 2:24 pm, rochacbruno  wrote:
> I did not understand your suggestion, what user icon?
>
> Are you saying to remove "web2py" leaving just the WP or removing the big W 
> leaving just the P?
>
> I am working on new ideas for the logo, small changes.
>
> Enviado via iPhone
>
> Em 10/10/2010, às 14:21, Thadeus Burgess  escreveu:
>
>
>
> > I think the "w" is redundant in the logo. It just looks funny.
>
> > What if the logo was just the user icon in the middle?
>
> > --
> > Thadeus
>
> > On Sun, Oct 10, 2010 at 8:04 AM, johntynan  wrote:
> >> Great work with the new web2py site!  I like how well the top and
> >> right hand navigation is used and I was glad to discover some
> >> resources about web2py that I didn't realize were available.
>
> >> I have one question.  Do you think the twitter link should direct
> >> people to the twitter search for web2py, as opposed to the web2py
> >> twitter account?  http://twitter.com/search/web2py
>
> >> Excellent work!- Hide quoted text -
>
> - Show quoted text -


[web2py] Re: please help us test new web site

2010-10-10 Thread mdipierro
This was discussed long ago... Snakes are a nice reference to the
Python community but are not appealing outside the community. They are
not exactly perceived as friendly animals.


On Oct 10, 3:19 pm, Anthony  wrote:
> For what it's worth, I don't think we need a snake in the logo. At
> least, it can be difficult to get it right -- snake logos can easily
> end up looking either too fierce/scary or too childish/cartoonish.
> Most other Python frameworks and libraries don't have snake logos (not
> to mention that the language was actually named after Monty Python,
> not a snake). The few snake logos that actually look OK are typically
> highly stylized and don't really look too "snaky".
>
> Anthony
>
> On Oct 10, 2:24 pm, rochacbruno  wrote:
>
> > I did not understand your suggestion, what user icon?
>
> > Are you saying to remove "web2py" leaving just the WP or removing the big W 
> > leaving just the P?
>
> > I am working on new ideas for the logo, small changes.
>
> > Enviado via iPhone
>
> > Em 10/10/2010, às 14:21, Thadeus Burgess  escreveu:
>
> > > I think the "w" is redundant in the logo. It just looks funny.
>
> > > What if the logo was just the user icon in the middle?
>
> > > --
> > > Thadeus
>
> > > On Sun, Oct 10, 2010 at 8:04 AM, johntynan  wrote:
> > >> Great work with the new web2py site!  I like how well the top and
> > >> right hand navigation is used and I was glad to discover some
> > >> resources about web2py that I didn't realize were available.
>
> > >> I have one question.  Do you think the twitter link should direct
> > >> people to the twitter search for web2py, as opposed to the web2py
> > >> twitter account?  http://twitter.com/search/web2py
>
> > >> Excellent work!- Hide quoted text -
>
> > - Show quoted text -
>
>


Re: [web2py] Re: please help us test new web site

2010-10-10 Thread Albert Abril
In case of a new logo.
What are the guidelines you want to accomplish?

On Sun, Oct 10, 2010 at 10:55 PM, mdipierro  wrote:

> This was discussed long ago... Snakes are a nice reference to the
> Python community but are not appealing outside the community. They are
> not exactly perceived as friendly animals.
>
>
> On Oct 10, 3:19 pm, Anthony  wrote:
> > For what it's worth, I don't think we need a snake in the logo. At
> > least, it can be difficult to get it right -- snake logos can easily
> > end up looking either too fierce/scary or too childish/cartoonish.
> > Most other Python frameworks and libraries don't have snake logos (not
> > to mention that the language was actually named after Monty Python,
> > not a snake). The few snake logos that actually look OK are typically
> > highly stylized and don't really look too "snaky".
> >
> > Anthony
> >
> > On Oct 10, 2:24 pm, rochacbruno  wrote:
> >
> > > I did not understand your suggestion, what user icon?
> >
> > > Are you saying to remove "web2py" leaving just the WP or removing the
> big W leaving just the P?
> >
> > > I am working on new ideas for the logo, small changes.
> >
> > > Enviado via iPhone
> >
> > > Em 10/10/2010, às 14:21, Thadeus Burgess 
> escreveu:
> >
> > > > I think the "w" is redundant in the logo. It just looks funny.
> >
> > > > What if the logo was just the user icon in the middle?
> >
> > > > --
> > > > Thadeus
> >
> > > > On Sun, Oct 10, 2010 at 8:04 AM, johntynan 
> wrote:
> > > >> Great work with the new web2py site!  I like how well the top and
> > > >> right hand navigation is used and I was glad to discover some
> > > >> resources about web2py that I didn't realize were available.
> >
> > > >> I have one question.  Do you think the twitter link should direct
> > > >> people to the twitter search for web2py, as opposed to the web2py
> > > >> twitter account?  http://twitter.com/search/web2py
> >
> > > >> Excellent work!- Hide quoted text -
> >
> > > - Show quoted text -
> >
> >
>


[web2py] Re: please help us test new web site

2010-10-10 Thread ma...@rockiger.com
Totally digg the new website, looks good and more importan seems to be
much better organized.

Regarding the logo: use the old one - web2py has working hard to
establish
some kind of brand, why destroy that?

Take care


[web2py] Re: please help us test new web site

2010-10-10 Thread Rowdy

mdipierro wrote:

New web2py layout:

http://web2py.com

Thanks Bruno and Martin

New demo_admin:

   http://web2py.com/demo_admin

Massimo



Looks good, clean, professional, consistent.

Some comments:

1. The black icons for the links on the lower right (User Groups,
   Twitter ...) stand out from the rest of page.  They look a bit dark
   and angular compared to the slightly softer look of the rest of the
   site.  Maybe buttons like the ones on the Download page would look
   better.

2. The download link was returning a 404 error this morning (about 10
   minutes ago), but just seems to have fixed itself.

Rowdy



[web2py] Re: please help us test new web site

2010-10-10 Thread mdipierro
I was working on it live. Sorry. Fixed now.

On Oct 10, 4:22 pm, Rowdy  wrote:
> mdipierro wrote:
> > New web2py layout:
>
> >    http://web2py.com
>
> > Thanks Bruno and Martin
>
> > New demo_admin:
>
> >    http://web2py.com/demo_admin
>
> > Massimo
>
> Looks good, clean, professional, consistent.
>
> Some comments:
>
> 1. The black icons for the links on the lower right (User Groups,
>     Twitter ...) stand out from the rest of page.  They look a bit dark
>     and angular compared to the slightly softer look of the rest of the
>     site.  Maybe buttons like the ones on the Download page would look
>     better.
>
> 2. The download link was returning a 404 error this morning (about 10
>     minutes ago), but just seems to have fixed itself.
>
> Rowdy


[web2py] Re: Init script for Web2Py

2010-10-10 Thread berubejd
I have created an updated script for Fedora/CentOS/RedHat and done
testing on the OSs which I have available to me.  (Not very
exhaustive, however.)  The script has both been forwarded to Massimo
and posted on web2pyslices at:

   http://web2pyslices.com/main/slices/take_slice/98

I have used it a number of times and I haven't encountered any issues.

Jeff

On Oct 10, 10:28 am, Jonathan Lundell  wrote:
> On Oct 10, 2010, at 10:10 AM, Jonathan Lundell wrote:
>
> > I think that init scripts tend to be rather system-specific. There's a Red 
> > Hat script in the scripts directory, and maybe some others.
>
> Speaking of the scripts directory, it looks to me like a cleanup is in order. 
> Some of the scripts could use some comments--they're pretty opaque.
>
> Some of them, I suspect, don't work or are way out of date.
>
> setup-web2py-fedora.sh, for example. apt-get? Ubuntu?
>
> ...and it ought to check that it hasn't been run already.
>
> repair.py: isn't that functionality built-in these days (main.py)?
>
> etc...


[web2py] Re: Init script for Web2Py

2010-10-10 Thread mdipierro
posted in trunk as setup-web2py-fedora.sh
thanks

Massimo

On Oct 10, 4:29 pm, berubejd  wrote:
> I have created an updated script for Fedora/CentOS/RedHat and done
> testing on the OSs which I have available to me.  (Not very
> exhaustive, however.)  The script has both been forwarded to Massimo
> and posted on web2pyslices at:
>
>    http://web2pyslices.com/main/slices/take_slice/98
>
> I have used it a number of times and I haven't encountered any issues.
>
> Jeff
>
> On Oct 10, 10:28 am, Jonathan Lundell  wrote:
>
> > On Oct 10, 2010, at 10:10 AM, Jonathan Lundell wrote:
>
> > > I think that init scripts tend to be rather system-specific. There's a 
> > > Red Hat script in the scripts directory, and maybe some others.
>
> > Speaking of the scripts directory, it looks to me like a cleanup is in 
> > order. Some of the scripts could use some comments--they're pretty opaque.
>
> > Some of them, I suspect, don't work or are way out of date.
>
> > setup-web2py-fedora.sh, for example. apt-get? Ubuntu?
>
> > ...and it ought to check that it hasn't been run already.
>
> > repair.py: isn't that functionality built-in these days (main.py)?
>
> > etc...
>
>


Re: [web2py] Re: Init script for Web2Py

2010-10-10 Thread Jonathan Lundell
On Oct 10, 2010, at 2:29 PM, berubejd wrote:
> 
> I have created an updated script for Fedora/CentOS/RedHat and done
> testing on the OSs which I have available to me.  (Not very
> exhaustive, however.)  The script has both been forwarded to Massimo
> and posted on web2pyslices at:
> 
>   http://web2pyslices.com/main/slices/take_slice/98
> 
> I have used it a number of times and I haven't encountered any issues.

A couple of comments.

Ideally, the Python version(s) should be parameterized. I assume, for example, 
that we'd want to use 2.6.6 rather than 2.6.4, and it'd be easier to do those 
updates if the version were not embedded in the code. Likewise 2.6 vs 2.7?

Likewise the mod_wsgi version.

The old /etc/httpd/conf.d/welcome.conf will be obliterated if the script is run 
twice. Maybe we don't care...

Big improvement; thanks.

[web2py] plugin_wiki

2010-10-10 Thread christina
I just installed the plugin_wiki, but when I go to the "Pages" tab, I
cannot really get anything to work. Following along with the book
tutorial, I tried to make  "home" page, but when I submit, I get a
page that says "This page does not exist yet. Create this page".
Clicking "Create this page" sends me a ticket.

So I tried to manually create a page called home at
http://127.0.0.1:8000/.../plugin_wiki/page/home, but could not. Does
this have something to do with the "templates"? Because when I open
the "Page" tab, there is nothing in the "Templates" drop down. Do I
need to install something else before trying to run the plugin_wiki?

Also, it complained about me not having the correct tables in my
database. Since I did not have auth_user or auth_group tables, it
threw an error. I added empty auth_user and auth_group tables, but it
is still not working. What am I doing wrong?

Thanks


[web2py] Re: plugin_wiki

2010-10-10 Thread mdipierro
Please email me personally your app. Something is missing in your app
but I cannot tell what.

massimo

On Oct 10, 5:35 pm, christina  wrote:
> I just installed the plugin_wiki, but when I go to the "Pages" tab, I
> cannot really get anything to work. Following along with the book
> tutorial, I tried to make  "home" page, but when I submit, I get a
> page that says "This page does not exist yet. Create this page".
> Clicking "Create this page" sends me a ticket.
>
> So I tried to manually create a page called home 
> athttp://127.0.0.1:8000/.../plugin_wiki/page/home, but could not. Does
> this have something to do with the "templates"? Because when I open
> the "Page" tab, there is nothing in the "Templates" drop down. Do I
> need to install something else before trying to run the plugin_wiki?
>
> Also, it complained about me not having the correct tables in my
> database. Since I did not have auth_user or auth_group tables, it
> threw an error. I added empty auth_user and auth_group tables, but it
> is still not working. What am I doing wrong?
>
> Thanks


[web2py] DateTime Widget

2010-10-10 Thread villas
For a Datetime field...

On creating a record I wish to use a default date (say today) and
choose only the time (selected from half hour intervals),  e.g.
10:30,  14:00,  19:30  etc.

On editing a record,  I would maintain the date but simply allow the
time to be edited.

Can anyone make a suggestion to handle that elegantly?

Thks, David


[web2py] Re: plugin_wiki

2010-10-10 Thread christina
Hi Massimo.

Thanks for the quick reply. I fixed the problem! It started working
when I added a "roles" field in my auth_group table.

Christina



On Oct 10, 5:59 pm, mdipierro  wrote:
> Please email me personally your app. Something is missing in your app
> but I cannot tell what.
>
> massimo
>
> On Oct 10, 5:35 pm, christina  wrote:
>
>
>
> > I just installed the plugin_wiki, but when I go to the "Pages" tab, I
> > cannot really get anything to work. Following along with the book
> > tutorial, I tried to make  "home" page, but when I submit, I get a
> > page that says "This page does not exist yet. Create this page".
> > Clicking "Create this page" sends me a ticket.
>
> > So I tried to manually create a page called home 
> > athttp://127.0.0.1:8000/.../plugin_wiki/page/home, but could not. Does
> > this have something to do with the "templates"? Because when I open
> > the "Page" tab, there is nothing in the "Templates" drop down. Do I
> > need to install something else before trying to run the plugin_wiki?
>
> > Also, it complained about me not having the correct tables in my
> > database. Since I did not have auth_user or auth_group tables, it
> > threw an error. I added empty auth_user and auth_group tables, but it
> > is still not working. What am I doing wrong?
>
> > Thanks


[web2py] Re: plugin_wiki

2010-10-10 Thread mdipierro
Thanks for letting us know.

Massimo

On Oct 10, 7:02 pm, christina  wrote:
> Hi Massimo.
>
> Thanks for the quick reply. I fixed the problem! It started working
> when I added a "roles" field in my auth_group table.
>
> Christina
>
> On Oct 10, 5:59 pm, mdipierro  wrote:
>
> > Please email me personally your app. Something is missing in your app
> > but I cannot tell what.
>
> > massimo
>
> > On Oct 10, 5:35 pm, christina  wrote:
>
> > > I just installed the plugin_wiki, but when I go to the "Pages" tab, I
> > > cannot really get anything to work. Following along with the book
> > > tutorial, I tried to make  "home" page, but when I submit, I get a
> > > page that says "This page does not exist yet. Create this page".
> > > Clicking "Create this page" sends me a ticket.
>
> > > So I tried to manually create a page called home 
> > > athttp://127.0.0.1:8000/.../plugin_wiki/page/home, but could not. Does
> > > this have something to do with the "templates"? Because when I open
> > > the "Page" tab, there is nothing in the "Templates" drop down. Do I
> > > need to install something else before trying to run the plugin_wiki?
>
> > > Also, it complained about me not having the correct tables in my
> > > database. Since I did not have auth_user or auth_group tables, it
> > > threw an error. I added empty auth_user and auth_group tables, but it
> > > is still not working. What am I doing wrong?
>
> > > Thanks
>
>


[web2py] Powered by web2py

2010-10-10 Thread Bruno Rocha
A student of one of my classes of web2py training in Brazil, research the
web and made a list of websites powered by web2py.

he separates in categories: Populars, Great Ones, Good ones and which keeps
scaffold layout.

I found good designed websites in that list.

http://www.elizabethscanvas.org/
http://www.qakit.com/
http://ru.ly/ ( an URL shortener)


Forwarded is the entire list, do you know someone else?


---
-- Forwarded message --
From: Rene Guerrero 
Date: 2010/10/10
Subject: Sites que utilizam web2py
To: rochacbr...@gmail.com


Bruno

Participei no seu curso de web2py básico na Tempo Real Eventos em 28 de
agosto em São Paulo.
Desde aquela data até hoje tenho me dedicado a estudar o web2py.
Paralelamente fui na web procurar exemplos de sites desenvolvidos com o
web2py.
Encontrei vários, que classifiquei seguindo meu conceito de sites melhor
desenvolvidos, mais complexos ou mais bonitos.
Espero que sejam de alguma ajuda para você poder utilizar na sua tarefa
evangelizadora deste framework.
Para alguns deles não indico a página inicial, porque a mencionada me
pareceu mais esclarecedora.
Nem todos indicam inicialmente que foram feitos com web2py. Uns poucos só
indicam sua origem em algum lugar dentro dos respectivos blogs (da empresa
ou do autor).

Conhecidos:
http://web2pyslices.com/main/default/index
http://www.pyforum.org/
http://www.qualitysystems.com/qs/
http://www.tenthrow.com/home/
http://radbox.me/
https://us.pycon.org/2009/register/default/about
https://us.pycon.org/2010/register/default/about

Bons:
http://www.latnblack.com/
http://auctionall.info/hausstand
http://www.qakit.com/
http://www.epysoft.com/
http://www.healthscapes.org/welcome/default/index
http://www.whitepeaksoftware.com/
http://hipercenter.com/
http://www.corraleslamagdalena.com.ar/lamagdalena/
http://www.norterural.com.ar/norterural/default/noticias/2
http://rockiger.com/
http://www.elizabethscanvas.org/
http://site.quadraforte.com/
http://www.signatur-kampagnen.de/NichtraucherSignatur/default/show/company
http://www.nzacap.org.nz/welcome/folders/public/1/1
http://www.throngly.com/
http://www.klasproducts.com/
http://ru.ly/
http://www.justindressel.com/
http://web2pybrasil.com.br

Algo menos:
http://ga2arch.appspot.com/
https://backdoorhiding.appspot.com/
http://laurendickey.com/
http://www.wedo-group.com/welcome/statement/vision
http://danielkrol.com/welcome/default/diffeqmunchers/
http://diarywiz.com/dw/default/index
http://wavedirectory.appspot.com/
http://openshare.emotionull.com/
http://projectkintaro.appspot.com/
http://www.spinyc.com/
http://ronluppers.nl/ronluppers/default/index
http://www.sitescraper.net/
http://www.opensvc.com/
http://www.igeejo.com/blog/default/projects
http://equimindfinancial.appspot.com/equi/default/index
http://www.professionalit.com.br/
http://favr.appspot.com/
http://web2py.appspot.com/metacryption
http://klever.hs-augsburg.de/NiKatFI/rstPages/show/Courses/Navigation/index.rst
http://fightalzheimers.appspot.com/init/default/wiki/main
http://www.jwfind.net/
http://rheum.huh.harvard.edu/pgdemo/stree/view/4
http://valmivolpato.appspot.com/villeveneteacaerano/default/villa
http://web2py.appspot.com/
http://www.semanticsbml.org/aym/

Bem menos:
http://www.futurelogic.com/init/default/wiki/Currents
http://w2popenid.appspot.com/init/default/wiki/main
http://www.paneido.com/init/default/index
http://aion-info.appspot.com/
http://www.zgus.com/
http://www.audiobabble.com/audiobabble/default/multi_suggest
http://www.web-it.dk/
http://semanticsbml.org/semanticSBML
http://www.saluedo.be/
http://web2py-crm.appspot.com/
http://www.site51.net/wiki/default/page/DiyWeb2py
http://www.seccion36.org.mx/
http://web2py.appspot.com/t3/default/wiki/main
http://web2py.appspot.com/survey/survey/index

No caso da última lista, este sites mostram praticamente a mesma
configuração visual default do web2py, com poucas alterações.

Ainda estou aguardando que seja completado o número mínimo para poder
participar do seu curso avançado de web2py.

Por enquanto e "hasta la vista",

René Guerrero Contreras


[web2py] Re: Powered by web2py

2010-10-10 Thread mdipierro
They are indeed well done. I did not know. How do you know ru.ly the
last one is powered by web2py? It does not say.



On Oct 10, 7:50 pm, Bruno Rocha  wrote:
> A student of one of my classes of web2py training in Brazil, research the
> web and made a list of websites powered by web2py.
>
> he separates in categories: Populars, Great Ones, Good ones and which keeps
> scaffold layout.
>
> I found good designed websites in that list.
>
> http://www.elizabethscanvas.org/http://www.qakit.com/http://ru.ly/( an URL 
> shortener)
>
> Forwarded is the entire list, do you know someone else?
>
> ---
>
> -- Forwarded message --
> From: Rene Guerrero 
> Date: 2010/10/10
> Subject: Sites que utilizam web2py
> To: rochacbr...@gmail.com
>
> Bruno
>
> Participei no seu curso de web2py básico na Tempo Real Eventos em 28 de
> agosto em São Paulo.
> Desde aquela data até hoje tenho me dedicado a estudar o web2py.
> Paralelamente fui na web procurar exemplos de sites desenvolvidos com o
> web2py.
> Encontrei vários, que classifiquei seguindo meu conceito de sites melhor
> desenvolvidos, mais complexos ou mais bonitos.
> Espero que sejam de alguma ajuda para você poder utilizar na sua tarefa
> evangelizadora deste framework.
> Para alguns deles não indico a página inicial, porque a mencionada me
> pareceu mais esclarecedora.
> Nem todos indicam inicialmente que foram feitos com web2py. Uns poucos só
> indicam sua origem em algum lugar dentro dos respectivos blogs (da empresa
> ou do autor).
>
> Conhecidos:http://web2pyslices.com/main/default/indexhttp://www.pyforum.org/http://www.qualitysystems.com/qs/http://www.tenthrow.com/home/http://radbox.me/https://us.pycon.org/2009/register/default/abouthttps://us.pycon.org/2010/register/default/about
>
> Bons:http://www.latnblack.com/http://auctionall.info/hausstandhttp://www.qakit.com/http://www.epysoft.com/http://www.healthscapes.org/welcome/default/indexhttp://www.whitepeaksoftware.com/http://hipercenter.com/http://www.corraleslamagdalena.com.ar/lamagdalena/http://www.norterural.com.ar/norterural/default/noticias/2http://rockiger.com/http://www.elizabethscanvas.org/http://site.quadraforte.com/http://www.signatur-kampagnen.de/NichtraucherSignatur/default/show/co...http://www.nzacap.org.nz/welcome/folders/public/1/1http://www.throngly.com/http://www.klasproducts.com/http://ru.ly/http://www.justindressel.com/
> http://web2pybrasil.com.br
>
> Algo 
> menos:http://ga2arch.appspot.com/https://backdoorhiding.appspot.com/http://laurendickey.com/http://www.wedo-group.com/welcome/statement/visionhttp://danielkrol.com/welcome/default/diffeqmunchers/http://diarywiz.com/dw/default/indexhttp://wavedirectory.appspot.com/http://openshare.emotionull.com/http://projectkintaro.appspot.com/http://www.spinyc.com/http://ronluppers.nl/ronluppers/default/indexhttp://www.sitescraper.net/http://www.opensvc.com/http://www.igeejo.com/blog/default/projectshttp://equimindfinancial.appspot.com/equi/default/indexhttp://www.professionalit.com.br/http://favr.appspot.com/http://web2py.appspot.com/metacryptionhttp://klever.hs-augsburg.de/NiKatFI/rstPages/show/Courses/Navigation...http://fightalzheimers.appspot.com/init/default/wiki/mainhttp://www.jwfind.net/http://rheum.huh.harvard.edu/pgdemo/stree/view/4http://valmivolpato.appspot.com/villeveneteacaerano/default/villahttp://web2py.appspot.com/http://www.semanticsbml.org/aym/
>
> Bem 
> menos:http://www.futurelogic.com/init/default/wiki/Currentshttp://w2popenid.appspot.com/init/default/wiki/mainhttp://www.paneido.com/init/default/indexhttp://aion-info.appspot.com/http://www.zgus.com/http://www.audiobabble.com/audiobabble/default/multi_suggesthttp://www.web-it.dk/http://semanticsbml.org/semanticSBMLhttp://www.saluedo.be/http://web2py-crm.appspot.com/http://www.site51.net/wiki/default/page/DiyWeb2pyhttp://www.seccion36.org.mx/http://web2py.appspot.com/t3/default/wiki/mainhttp://web2py.appspot.com/survey/survey/index
>
> No caso da última lista, este sites mostram praticamente a mesma
> configuração visual default do web2py, com poucas alterações.
>
> Ainda estou aguardando que seja completado o número mínimo para poder
> participar do seu curso avançado de web2py.
>
> Por enquanto e "hasta la vista",
>
> René Guerrero Contreras
>
>


[web2py] Re: Powered by web2py

2010-10-10 Thread mdipierro
can you post the entire list?

Massimo

On Oct 10, 7:50 pm, Bruno Rocha  wrote:
> A student of one of my classes of web2py training in Brazil, research the
> web and made a list of websites powered by web2py.
>
> he separates in categories: Populars, Great Ones, Good ones and which keeps
> scaffold layout.
>
> I found good designed websites in that list.
>
> http://www.elizabethscanvas.org/http://www.qakit.com/http://ru.ly/( an URL 
> shortener)
>
> Forwarded is the entire list, do you know someone else?
>
> ---
>
> -- Forwarded message --
> From: Rene Guerrero 
> Date: 2010/10/10
> Subject: Sites que utilizam web2py
> To: rochacbr...@gmail.com
>
> Bruno
>
> Participei no seu curso de web2py básico na Tempo Real Eventos em 28 de
> agosto em São Paulo.
> Desde aquela data até hoje tenho me dedicado a estudar o web2py.
> Paralelamente fui na web procurar exemplos de sites desenvolvidos com o
> web2py.
> Encontrei vários, que classifiquei seguindo meu conceito de sites melhor
> desenvolvidos, mais complexos ou mais bonitos.
> Espero que sejam de alguma ajuda para você poder utilizar na sua tarefa
> evangelizadora deste framework.
> Para alguns deles não indico a página inicial, porque a mencionada me
> pareceu mais esclarecedora.
> Nem todos indicam inicialmente que foram feitos com web2py. Uns poucos só
> indicam sua origem em algum lugar dentro dos respectivos blogs (da empresa
> ou do autor).
>
> Conhecidos:http://web2pyslices.com/main/default/indexhttp://www.pyforum.org/http://www.qualitysystems.com/qs/http://www.tenthrow.com/home/http://radbox.me/https://us.pycon.org/2009/register/default/abouthttps://us.pycon.org/2010/register/default/about
>
> Bons:http://www.latnblack.com/http://auctionall.info/hausstandhttp://www.qakit.com/http://www.epysoft.com/http://www.healthscapes.org/welcome/default/indexhttp://www.whitepeaksoftware.com/http://hipercenter.com/http://www.corraleslamagdalena.com.ar/lamagdalena/http://www.norterural.com.ar/norterural/default/noticias/2http://rockiger.com/http://www.elizabethscanvas.org/http://site.quadraforte.com/http://www.signatur-kampagnen.de/NichtraucherSignatur/default/show/co...http://www.nzacap.org.nz/welcome/folders/public/1/1http://www.throngly.com/http://www.klasproducts.com/http://ru.ly/http://www.justindressel.com/
> http://web2pybrasil.com.br
>
> Algo 
> menos:http://ga2arch.appspot.com/https://backdoorhiding.appspot.com/http://laurendickey.com/http://www.wedo-group.com/welcome/statement/visionhttp://danielkrol.com/welcome/default/diffeqmunchers/http://diarywiz.com/dw/default/indexhttp://wavedirectory.appspot.com/http://openshare.emotionull.com/http://projectkintaro.appspot.com/http://www.spinyc.com/http://ronluppers.nl/ronluppers/default/indexhttp://www.sitescraper.net/http://www.opensvc.com/http://www.igeejo.com/blog/default/projectshttp://equimindfinancial.appspot.com/equi/default/indexhttp://www.professionalit.com.br/http://favr.appspot.com/http://web2py.appspot.com/metacryptionhttp://klever.hs-augsburg.de/NiKatFI/rstPages/show/Courses/Navigation...http://fightalzheimers.appspot.com/init/default/wiki/mainhttp://www.jwfind.net/http://rheum.huh.harvard.edu/pgdemo/stree/view/4http://valmivolpato.appspot.com/villeveneteacaerano/default/villahttp://web2py.appspot.com/http://www.semanticsbml.org/aym/
>
> Bem 
> menos:http://www.futurelogic.com/init/default/wiki/Currentshttp://w2popenid.appspot.com/init/default/wiki/mainhttp://www.paneido.com/init/default/indexhttp://aion-info.appspot.com/http://www.zgus.com/http://www.audiobabble.com/audiobabble/default/multi_suggesthttp://www.web-it.dk/http://semanticsbml.org/semanticSBMLhttp://www.saluedo.be/http://web2py-crm.appspot.com/http://www.site51.net/wiki/default/page/DiyWeb2pyhttp://www.seccion36.org.mx/http://web2py.appspot.com/t3/default/wiki/mainhttp://web2py.appspot.com/survey/survey/index
>
> No caso da última lista, este sites mostram praticamente a mesma
> configuração visual default do web2py, com poucas alterações.
>
> Ainda estou aguardando que seja completado o número mínimo para poder
> participar do seu curso avançado de web2py.
>
> Por enquanto e "hasta la vista",
>
> René Guerrero Contreras
>
>


[web2py] How to edit the display of a database table

2010-10-10 Thread primitive
Hello all,

I am wondering how to get a database table to display properly within
my web2py app. Currently my tables are too wide and end up going off
the side of the content area for the page. Is there a way I can limit
the width of a table, or otherwise fix this issue?

Thank you.


[web2py] Re: How to edit the display of a database table

2010-10-10 Thread mdipierro
Given rows=db(...).select()
You have options like

{{=SQLTABLE(rows,headers='fieldname:capitalize',fields=[..])}}

and fields is a list of 'tablename.fieldname'

If you download plugin wiki you can do

{{=plugin_wiki.jqgrid(tablename)}}

On Oct 10, 7:57 pm, primitive  wrote:
> Hello all,
>
> I am wondering how to get a database table to display properly within
> my web2py app. Currently my tables are too wide and end up going off
> the side of the content area for the page. Is there a way I can limit
> the width of a table, or otherwise fix this issue?
>
> Thank you.


Re: [web2py] Re: Powered by web2py

2010-10-10 Thread Bruno Rocha
2010/10/10 mdipierro 

> They are indeed well done. I did not know. How do you know ru.ly the
> last one is powered by web2py? It does not say.
>
> I did not, Rene did,
>
 look at slide 69
http://www.slideshare.net/robinb123/gentle-app-engine-intro


[web2py] Form returns None for field after AJAX update

2010-10-10 Thread weheh
# model
...
db.define_table('u',Field('name'))
db.define_table('v',Field('name'))
db.define_table('mytable',Field('x',u.id,requires=IS_IN_DB(db,'u.id')),Field('y',v.id,requires=IS_IN_DB(db,'v.id')))

# controller
...
  form=SQLFORM.factory(db.mytable)
  # ajax to update v when u is selected
  form.element('select#no_table_u')
['_onchange']="ajax('update/'+jQuery(this).val(),['v'],':eval');"
...
# and then later in the same controller
def update():
...
 
new_select_list=SELECT(...OPTION(...,_selected='selected'),OPTION(...),OPTION(...))
  return 'jQuery("#v").html("%s")'%new_select_list.xml()

ISSUE: The form displays OK. When I select a value from the first
field, u, the values shown in the second field, v, change dynamically,
as expected. I inspected the list of values for the v field and they
look OK. However, when I submit the form, the value of the v field is
always None. This happens whether or not I select a value from the v
pulldown or whether it defaults to the selected value in the SELECT
list.

What gives?


[web2py] Did anybody notice oracle bought Sun?

2010-10-10 Thread mdipierro
This all happened in less than 2 months:

http://blogs.computerworld.com/16741/oracle_dumps_opensolaris
http://www.techeye.net/business/creator-of-zfs-to-leave-oracle
http://openquery.com/blog/ken-jacobs-leaves-oracle
http://www.theregister.co.uk/2010/10/07/mysql_veteran_leaves_sunoracle/
http://www.theregister.co.uk/2010/09/28/openoffice_independence_from_oracle/
http://arstechnica.com/tech-policy/news/2010/08/oracle-sues-google-over-use-of-java-in-android-sdk.ars

http://globalspecials.sun.com/store/mysql/ContentTheme/pbPage.categoryEnterprise?resid=MKgYhgoBAlcAAE77WocD&rests=1286764426624

The last link affects us more directly. If you have to choose use
postgresql, not mysql.

Massimo


[web2py] Re: Powered by web2py

2010-10-10 Thread mdipierro
Robin is one of the main authors of the port of DAL to GAE.

On Oct 10, 9:25 pm, Bruno Rocha  wrote:
> 2010/10/10 mdipierro 
>
> > They are indeed well done. I did not know. How do you know ru.ly the
> > last one is powered by web2py? It does not say.
>
> > I did not, Rene did,
>
>  look at slide 69http://www.slideshare.net/robinb123/gentle-app-engine-intro


[web2py] Re: Form returns None for field after AJAX update

2010-10-10 Thread mdipierro
too any ... to tell for sure. It could be a browser issue or perhaps
the select name is missing. Can I check this online. It should be easy
to figure it out with firebug.

massimo

On Oct 10, 9:25 pm, weheh  wrote:
> # model
> ...
> db.define_table('u',Field('name'))
> db.define_table('v',Field('name'))
> db.define_table('mytable',Field('x',u.id,requires=IS_IN_DB(db,'u.id')),Field('y',v.id,requires=IS_IN_DB(db,'v.id')))
>
> # controller
> ...
>   form=SQLFORM.factory(db.mytable)
>   # ajax to update v when u is selected
>   form.element('select#no_table_u')
> ['_onchange']="ajax('update/'+jQuery(this).val(),['v'],':eval');"
> ...
> # and then later in the same controller
> def update():
> ...
>
> new_select_list=SELECT(...OPTION(...,_selected='selected'),OPTION(...),OPTION(...))
>   return 'jQuery("#v").html("%s")'%new_select_list.xml()
>
> ISSUE: The form displays OK. When I select a value from the first
> field, u, the values shown in the second field, v, change dynamically,
> as expected. I inspected the list of values for the v field and they
> look OK. However, when I submit the form, the value of the v field is
> always None. This happens whether or not I select a value from the v
> pulldown or whether it defaults to the selected value in the SELECT
> list.
>
> What gives?


[web2py] Re: Form returns None for field after AJAX update

2010-10-10 Thread weheh
Thanks Massimo. Unfortunately, this is not online, yet. I have some
more info, now. First, I seem to have fixed the problem with None
being returned. Now, the correct value is being returned. However, the
type is string and the field into which it is being stuffed is
integer, since it is an id. I think this type mismatch may be the
problem. What do you think?


[web2py] Re: Powered by web2py

2010-10-10 Thread mdipierro
I think we have enough links that the web2py main index page could
contain a slideshow of images of web2py powered sites

On Oct 10, 7:50 pm, Bruno Rocha  wrote:
> A student of one of my classes of web2py training in Brazil, research the
> web and made a list of websites powered by web2py.
>
> he separates in categories: Populars, Great Ones, Good ones and which keeps
> scaffold layout.
>
> I found good designed websites in that list.
>
> http://www.elizabethscanvas.org/http://www.qakit.com/http://ru.ly/( an URL 
> shortener)
>
> Forwarded is the entire list, do you know someone else?
>
> ---
>
> -- Forwarded message --
> From: Rene Guerrero 
> Date: 2010/10/10
> Subject: Sites que utilizam web2py
> To: rochacbr...@gmail.com
>
> Bruno
>
> Participei no seu curso de web2py básico na Tempo Real Eventos em 28 de
> agosto em São Paulo.
> Desde aquela data até hoje tenho me dedicado a estudar o web2py.
> Paralelamente fui na web procurar exemplos de sites desenvolvidos com o
> web2py.
> Encontrei vários, que classifiquei seguindo meu conceito de sites melhor
> desenvolvidos, mais complexos ou mais bonitos.
> Espero que sejam de alguma ajuda para você poder utilizar na sua tarefa
> evangelizadora deste framework.
> Para alguns deles não indico a página inicial, porque a mencionada me
> pareceu mais esclarecedora.
> Nem todos indicam inicialmente que foram feitos com web2py. Uns poucos só
> indicam sua origem em algum lugar dentro dos respectivos blogs (da empresa
> ou do autor).
>
> Conhecidos:http://web2pyslices.com/main/default/indexhttp://www.pyforum.org/http://www.qualitysystems.com/qs/http://www.tenthrow.com/home/http://radbox.me/https://us.pycon.org/2009/register/default/abouthttps://us.pycon.org/2010/register/default/about
>
> Bons:http://www.latnblack.com/http://auctionall.info/hausstandhttp://www.qakit.com/http://www.epysoft.com/http://www.healthscapes.org/welcome/default/indexhttp://www.whitepeaksoftware.com/http://hipercenter.com/http://www.corraleslamagdalena.com.ar/lamagdalena/http://www.norterural.com.ar/norterural/default/noticias/2http://rockiger.com/http://www.elizabethscanvas.org/http://site.quadraforte.com/http://www.signatur-kampagnen.de/NichtraucherSignatur/default/show/co...http://www.nzacap.org.nz/welcome/folders/public/1/1http://www.throngly.com/http://www.klasproducts.com/http://ru.ly/http://www.justindressel.com/
> http://web2pybrasil.com.br
>
> Algo 
> menos:http://ga2arch.appspot.com/https://backdoorhiding.appspot.com/http://laurendickey.com/http://www.wedo-group.com/welcome/statement/visionhttp://danielkrol.com/welcome/default/diffeqmunchers/http://diarywiz.com/dw/default/indexhttp://wavedirectory.appspot.com/http://openshare.emotionull.com/http://projectkintaro.appspot.com/http://www.spinyc.com/http://ronluppers.nl/ronluppers/default/indexhttp://www.sitescraper.net/http://www.opensvc.com/http://www.igeejo.com/blog/default/projectshttp://equimindfinancial.appspot.com/equi/default/indexhttp://www.professionalit.com.br/http://favr.appspot.com/http://web2py.appspot.com/metacryptionhttp://klever.hs-augsburg.de/NiKatFI/rstPages/show/Courses/Navigation...http://fightalzheimers.appspot.com/init/default/wiki/mainhttp://www.jwfind.net/http://rheum.huh.harvard.edu/pgdemo/stree/view/4http://valmivolpato.appspot.com/villeveneteacaerano/default/villahttp://web2py.appspot.com/http://www.semanticsbml.org/aym/
>
> Bem 
> menos:http://www.futurelogic.com/init/default/wiki/Currentshttp://w2popenid.appspot.com/init/default/wiki/mainhttp://www.paneido.com/init/default/indexhttp://aion-info.appspot.com/http://www.zgus.com/http://www.audiobabble.com/audiobabble/default/multi_suggesthttp://www.web-it.dk/http://semanticsbml.org/semanticSBMLhttp://www.saluedo.be/http://web2py-crm.appspot.com/http://www.site51.net/wiki/default/page/DiyWeb2pyhttp://www.seccion36.org.mx/http://web2py.appspot.com/t3/default/wiki/mainhttp://web2py.appspot.com/survey/survey/index
>
> No caso da última lista, este sites mostram praticamente a mesma
> configuração visual default do web2py, com poucas alterações.
>
> Ainda estou aguardando que seja completado o número mínimo para poder
> participar do seu curso avançado de web2py.
>
> Por enquanto e "hasta la vista",
>
> René Guerrero Contreras
>
>


[web2py] Re: Did anybody notice oracle bought Sun?

2010-10-10 Thread weheh
Yes, this happened awhile ago. I was planning on moving all my work
over to PostgreSQL already, but the merger just made it even more
compelling.

On Oct 10, 10:38 pm, mdipierro  wrote:
> This all happened in less than 2 months:
>
> http://blogs.computerworld.com/16741/oracle_dumps_opensolarishttp://www.techeye.net/business/creator-of-zfs-to-leave-oraclehttp://openquery.com/blog/ken-jacobs-leaves-oraclehttp://www.theregister.co.uk/2010/10/07/mysql_veteran_leaves_sunoracle/http://www.theregister.co.uk/2010/09/28/openoffice_independence_from_...http://arstechnica.com/tech-policy/news/2010/08/oracle-sues-google-ov...
>
> http://globalspecials.sun.com/store/mysql/ContentTheme/pbPage.categor...
>
> The last link affects us more directly. If you have to choose use
> postgresql, not mysql.
>
> Massimo


[web2py] Re: How to edit the display of a database table

2010-10-10 Thread weheh
Have you tried controlling the table  widths with css?

On Oct 10, 8:57 pm, primitive  wrote:
> Hello all,
>
> I am wondering how to get a database table to display properly within
> my web2py app. Currently my tables are too wide and end up going off
> the side of the content area for the page. Is there a way I can limit
> the width of a table, or otherwise fix this issue?
>
> Thank you.


Re: [web2py] Did anybody notice oracle bought Sun?

2010-10-10 Thread Jason Brower
This is what h0pens when closed buys open i guess. Guess this makes my 
databased options a bit easier. Does it even mantion you can use it for free?
Br
jason

- Original message -
> This all happened in less than 2 months:
> 
> http://blogs.computerworld.com/16741/oracle_dumps_opensolaris
> http://www.techeye.net/business/creator-of-zfs-to-leave-oracle
> http://openquery.com/blog/ken-jacobs-leaves-oracle
> http://www.theregister.co.uk/2010/10/07/mysql_veteran_leaves_sunoracle/
> http://www.theregister.co.uk/2010/09/28/openoffice_independence_from_oracle/
> http://arstechnica.com/tech-policy/news/2010/08/oracle-sues-google-over-use-of-java-in-android-sdk.ars
> 
> http://globalspecials.sun.com/store/mysql/ContentTheme/pbPage.categoryEnterprise?resid=MKgYhgoBAlcAAE77WocD&rests=1286764426624
> 
> The last link affects us more directly. If you have to choose use
> postgresql, not mysql.
> 
> Massimo



[web2py] Re: please help us test new web site

2010-10-10 Thread Richard
I like the Django and Symfony logos:
http://upload.wikimedia.org/wikipedia/commons/7/75/Django_logo.svg
http://upload.wikimedia.org/wikipedia/commons/b/bc/Symfony.gif

Straightforward.

Richard


On Oct 11, 8:24 am, mdipierro  wrote:
> I was working on it live. Sorry. Fixed now.
>
> On Oct 10, 4:22 pm, Rowdy  wrote:
>
> > mdipierro wrote:
> > > New web2py layout:
>
> > >    http://web2py.com
>
> > > Thanks Bruno and Martin
>
> > > New demo_admin:
>
> > >    http://web2py.com/demo_admin
>
> > > Massimo
>
> > Looks good, clean, professional, consistent.
>
> > Some comments:
>
> > 1. The black icons for the links on the lower right (User Groups,
> >     Twitter ...) stand out from the rest of page.  They look a bit dark
> >     and angular compared to the slightly softer look of the rest of the
> >     site.  Maybe buttons like the ones on the Download page would look
> >     better.
>
> > 2. The download link was returning a 404 error this morning (about 10
> >     minutes ago), but just seems to have fixed itself.
>
> > Rowdy
>
>


[web2py] Re: please help us test new web site

2010-10-10 Thread Richard
forgot to include my point - so how about remove the WP thing and just
keep the stylish "web2py" text.


On Oct 11, 2:16 pm, Richard  wrote:
> I like the Django and Symfony 
> logos:http://upload.wikimedia.org/wikipedia/commons/7/75/Django_logo.svghttp://upload.wikimedia.org/wikipedia/commons/b/bc/Symfony.gif
>
> Straightforward.
>
> Richard
>
> On Oct 11, 8:24 am, mdipierro  wrote:
>
> > I was working on it live. Sorry. Fixed now.
>
> > On Oct 10, 4:22 pm, Rowdy  wrote:
>
> > > mdipierro wrote:
> > > > New web2py layout:
>
> > > >    http://web2py.com
>
> > > > Thanks Bruno and Martin
>
> > > > New demo_admin:
>
> > > >    http://web2py.com/demo_admin
>
> > > > Massimo
>
> > > Looks good, clean, professional, consistent.
>
> > > Some comments:
>
> > > 1. The black icons for the links on the lower right (User Groups,
> > >     Twitter ...) stand out from the rest of page.  They look a bit dark
> > >     and angular compared to the slightly softer look of the rest of the
> > >     site.  Maybe buttons like the ones on the Download page would look
> > >     better.
>
> > > 2. The download link was returning a 404 error this morning (about 10
> > >     minutes ago), but just seems to have fixed itself.
>
> > > Rowdy
>
>


[web2py] Slow streaming of several images

2010-10-10 Thread VP
I want to display several images (some type of gallery) at once.
These images are quite small.  Sometimes, it is very slow to load the
page.   This happens when I just open up the application or refresh
the page (sometime) (using Ctr-R).

I am unsure this is because:

1. I'm running in "prototype" mode with sqlite, built-in server
(rocket), or
2. These small images are being streamed simultaneously.  I don't know
if this makes a difference, but I'd prefer these images are "static",
not streamed. But I don't know how to do this in web2py.

Any idea?

Thanks.
VP


Re: [web2py] Re: Powered by web2py

2010-10-10 Thread Bruno Rocha
Can be done with this Jquery plugin - http://fredhq.com/projects/roundabout/
and thumbs with http://www.pageglimpse.com/

2010/10/10 mdipierro 

> I think we have enough links that the web2py main index page could
> contain a slideshow of images of web2py powered sites
>
> On Oct 10, 7:50 pm, Bruno Rocha  wrote:
> > A student of one of my classes of web2py training in Brazil, research the
> > web and made a list of websites powered by web2py.
> >
> > he separates in categories: Populars, Great Ones, Good ones and which
> keeps
> > scaffold layout.
> >
> > I found good designed websites in that list.
> >
> > http://www.elizabethscanvas.org/http://www.qakit.com/http://ru.ly/(an
> >  URL shortener)
> >
> > Forwarded is the entire list, do you know someone else?
> >
> > ---
> >
> > -- Forwarded message --
> > From: Rene Guerrero 
> > Date: 2010/10/10
> > Subject: Sites que utilizam web2py
> > To: rochacbr...@gmail.com
> >
> > Bruno
> >
> > Participei no seu curso de web2py básico na Tempo Real Eventos em 28 de
> > agosto em São Paulo.
> > Desde aquela data até hoje tenho me dedicado a estudar o web2py.
> > Paralelamente fui na web procurar exemplos de sites desenvolvidos com o
> > web2py.
> > Encontrei vários, que classifiquei seguindo meu conceito de sites melhor
> > desenvolvidos, mais complexos ou mais bonitos.
> > Espero que sejam de alguma ajuda para você poder utilizar na sua tarefa
> > evangelizadora deste framework.
> > Para alguns deles não indico a página inicial, porque a mencionada me
> > pareceu mais esclarecedora.
> > Nem todos indicam inicialmente que foram feitos com web2py. Uns poucos só
> > indicam sua origem em algum lugar dentro dos respectivos blogs (da
> empresa
> > ou do autor).
> >
> > Conhecidos:
> http://web2pyslices.com/main/default/indexhttp://www.pyforum.org/http://www.qualitysystems.com/qs/http://www.tenthrow.com/home/http://radbox.me/https://us.pycon.org/2009/register/default/abouthttps://us.pycon.org/2010/register/default/about
> >
> > Bons:
> http://www.latnblack.com/http://auctionall.info/hausstandhttp://www.qakit.com/http://www.epysoft.com/http://www.healthscapes.org/welcome/default/indexhttp://www.whitepeaksoftware.com/http://hipercenter.com/http://www.corraleslamagdalena.com.ar/lamagdalena/http://www.norterural.com.ar/norterural/default/noticias/2http://rockiger.com/http://www.elizabethscanvas.org/http://site.quadraforte.com/http://www.signatur-kampagnen.de/NichtraucherSignatur/default/show/co...http://www.nzacap.org.nz/welcome/folders/public/1/1http://www.throngly.com/http://www.klasproducts.com/http://ru.ly/http://www.justindressel.com/
> > http://web2pybrasil.com.br
> >
> > Algo menos:
> http://ga2arch.appspot.com/https://backdoorhiding.appspot.com/http://laurendickey.com/http://www.wedo-group.com/welcome/statement/visionhttp://danielkrol.com/welcome/default/diffeqmunchers/http://diarywiz.com/dw/default/indexhttp://wavedirectory.appspot.com/http://openshare.emotionull.com/http://projectkintaro.appspot.com/http://www.spinyc.com/http://ronluppers.nl/ronluppers/default/indexhttp://www.sitescraper.net/http://www.opensvc.com/http://www.igeejo.com/blog/default/projectshttp://equimindfinancial.appspot.com/equi/default/indexhttp://www.professionalit.com.br/http://favr.appspot.com/http://web2py.appspot.com/metacryptionhttp://klever.hs-augsburg.de/NiKatFI/rstPages/show/Courses/Navigation...http://fightalzheimers.appspot.com/init/default/wiki/mainhttp://www.jwfind.net/http://rheum.huh.harvard.edu/pgdemo/stree/view/4http://valmivolpato.appspot.com/villeveneteacaerano/default/villahttp://web2py.appspot.com/http://www.semanticsbml.org/aym/
> >
> > Bem menos:
> http://www.futurelogic.com/init/default/wiki/Currentshttp://w2popenid.appspot.com/init/default/wiki/mainhttp://www.paneido.com/init/default/indexhttp://aion-info.appspot.com/http://www.zgus.com/http://www.audiobabble.com/audiobabble/default/multi_suggesthttp://www.web-it.dk/http://semanticsbml.org/semanticSBMLhttp://www.saluedo.be/http://web2py-crm.appspot.com/http://www.site51.net/wiki/default/page/DiyWeb2pyhttp://www.seccion36.org.mx/http://web2py.appspot.com/t3/default/wiki/mainhttp://web2py.appspot.com/survey/survey/index
> >
> > No caso da última lista, este sites mostram praticamente a mesma
> > configuração visual default do web2py, com poucas alterações.
> >
> > Ainda estou aguardando que seja completado o número mínimo para poder
> > participar do seu curso avançado de web2py.
> >
> > Por enquanto e "hasta la vista",
> >
> > René Guerrero Contreras
> >
> >
>



-- 

http://rochacbruno.com.br


[web2py] Re: Init script for Web2Py

2010-10-10 Thread berubejd
I understand your concern.

While updating it, I had given some thought to whether or not I should
embed specific versions into the script.  I opted to include them
directly in the file so that, getting started, you would be using a
"tested" set of support applications if the OS you were running
required you to install them yourself.  If the OS has newer versions
provided by default or via an update, those will be used instead.
Also, if you know enough to desire a specific version, you can
probably modify the script to the version you prefer. :)

If we wanted to parameterize it, I would opt for optional command line
parameters that would default to a version that most people agree is
the most "ideal".

I hadn't considered if someone would be running it multiple times and
wanted to keep all pre-existing versions of welcome.conf.  If it is
desired, it would be quick to move it over to a date stamped backup
file.

A large part of updating the script was to make it easier to get
things up and running quickly and correctly with the script acting as
a record of what needed to happen to get there.  (Including some of
the less common things like SELinux or afterthoughts like iptables.)
After that, hopefully, the person running it can start to tweak things
here and there to their individual liking.

Thanks for the feedback!
Jeff

On Oct 10, 2:52 pm, Jonathan Lundell  wrote:
> On Oct 10, 2010, at 2:29 PM, berubejd wrote:
>
>
>
> > I have created an updated script for Fedora/CentOS/RedHat and done
> > testing on the OSs which I have available to me.  (Not very
> > exhaustive, however.)  The script has both been forwarded to Massimo
> > and posted on web2pyslices at:
>
> >  http://web2pyslices.com/main/slices/take_slice/98
>
> > I have used it a number of times and I haven't encountered any issues.
>
> A couple of comments.
>
> Ideally, the Python version(s) should be parameterized. I assume, for 
> example, that we'd want to use 2.6.6 rather than 2.6.4, and it'd be easier to 
> do those updates if the version were not embedded in the code. Likewise 2.6 
> vs 2.7?
>
> Likewise the mod_wsgi version.
>
> The old /etc/httpd/conf.d/welcome.conf will be obliterated if the script is 
> run twice. Maybe we don't care...
>
> Big improvement; thanks.


[web2py] Re: Form returns str for field after AJAX update [open]

2010-10-10 Thread weheh
I have identified the problem. When I load the form from the
controller and press submit without changing anything, the SELECT list
value is interpreted as an integer. However, when I update the SELECT
list from AJAX and then press submit, the selected SELECT list item is
interpreted as a string.


[web2py] just downloaded latest nightly build

2010-10-10 Thread mart
It is kicking again At least for me, there is drastic performance
improvements (locally, is where it was suffering). before the update,
I was seriously thinking of running to the mac store and have them do
something (dunno what, but something)! Things were unbearably slow,
thought I may have had dud RAM or something

so what ever you did, thanks! :)

Mart :)


[web2py] Re: just downloaded latest nightly build

2010-10-10 Thread mdipierro
I have no idea what you are talking about. The nightly build is
actually 1.86.3 which was recalled because had a problem saving in
windows from admin. Other than that it should be same as 1.86.2.

Massimo

On Oct 11, 12:13 am, mart  wrote:
> It is kicking again At least for me, there is drastic performance
> improvements (locally, is where it was suffering). before the update,
> I was seriously thinking of running to the mac store and have them do
> something (dunno what, but something)! Things were unbearably slow,
> thought I may have had dud RAM or something
>
> so what ever you did, thanks! :)
>
> Mart :)


[web2py] Re: just downloaded latest nightly build

2010-10-10 Thread mdipierro
... on a second thought. there was try.. finally that makes sure
session files are closed. Perhaps that was a problem for you. What os
did you use? which Python interpreter?

Massimo

On Oct 11, 12:13 am, mart  wrote:
> It is kicking again At least for me, there is drastic performance
> improvements (locally, is where it was suffering). before the update,
> I was seriously thinking of running to the mac store and have them do
> something (dunno what, but something)! Things were unbearably slow,
> thought I may have had dud RAM or something
>
> so what ever you did, thanks! :)
>
> Mart :)


[web2py] Re: please help us test new web site

2010-10-10 Thread lannick
What about a contest for a new logo ?

Nice work Massimo.

Regards,
Lannick