[web2py:25855] Re: IS_NOT_IN_DB() and no automatic drop box

2009-07-06 Thread annet

Massimo,

The validators now read like:

db.adres.adressoort.requires=[IS_IN_DB(db,db.adressoort.id,'%(soort)
s',orderby=db.adressoort.id),IS_NOT_IN_DB(db
(db.adres.bedrijf==request.vars.bedrijf),db.adres.adressoort)]
tmp=SQLField
('adressoort',db.adressoort,requires=db.adres.adressoort.requires[0])
tmp._tablename=db.adres.adressoort._tablename
db.adres.adressoort.widget=lambda f,v: OptionsWidget.widget(tmp,v)


The problem is that it doesn't prevent me from entering the same sort
of address for a company twice. Changing the order of the validator
and the widget results in an error ticket as does removing the first
part of the validator. How do I get this to work?


Kind regards,

Annet.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25854] Re: Check to delete doesn't delete record.

2009-07-06 Thread annet

It is not just the check to delete that doesn't work, when I update
the record and click submit the update isn't being executed either.


Kind regards,

Annet.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25853] Check to delete doesn't delete record.

2009-07-06 Thread annet

These functions in a controller:

@auth.requires_membership('tier1_manager')
def crud_nfa():
response.functionname='Manage nfa-gegevens'
db.nfa.bedrijf.writable=False
db.nfa.bedrijf.default=auth.user.bedrijf
form=create_form(db.nfa)
records=db((db.nfa.bedrijf==auth.user.bedrijf)&
(db.nfa.nfatype==db.nfatype.id))\
.select(db.nfa.ALL,db.nfatype.naam,orderby=db.nfa.nfatype)
return dict(form=form,records=records)


@auth.requires_membership('tier1_manager')
def update_nfa():
response.view='tier1/update.html'
db.nfa.bedrijf.writable=False
record=db.nfa[request.args[0]]
if not record or not record.bedrijf==auth.user.bedrijf:
redirect(URL(r=request,f='crud_nfa'))
form=update_form(db.nfa,record,'crud_nfa')
return dict(form=form)


... and this function in the model:

def update_form(table,rec,nxt):
form=crud.update(table,rec,next=(URL(r=request,f=nxt)))
form[0][-1][1].append(INPUT
(_type='button',_value='Cancel',_onclick='javascript:history.go(-1)'))
return form


... worked in web2py 1.64, in 1.65 they no longer do. When I check the
check to delete box and click submit the record isn't being deleted
and the function doesn't return to the previous page.

What changed between those versions? How do I get this to work again?


Kind regards,

Annet.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25852] Re: How do we petition Google to mention web2py?

2009-07-06 Thread Yarko Tymciurak
Ach - I see why you are so protective of the user base, and all your
efforts, long hours and fine teachings.

Let it not get in the way of stepping back now and then, and looking,
seeing...

there is no shame in reality...

On Tue, Jul 7, 2009 at 12:01 AM, Yarko Tymciurak  wrote:

>
> On Mon, Jul 6, 2009 at 7:00 PM, mdipierro  wrote:
>
>>
>> Yarko,
>>
>> we should not transform a strength into a weakness.
>
>
> Massimo, Massimo, Massimo -
>
> Facts are neither strength or weakness (these words from you seem strange
> indeed).
>
>
>> As I stressed many
>> times web2py is mostly used to develop intranet apps in corporate
>> environments (small and medium size businesses).
>>
>> There are people do not want to say what they are doing with web2py
>> and do not want to advertise that they are using web2py because they
>> are not developing open source projects, because their paid by an
>> employer who does not want them to publicly say what they are doing,
>> because
>> they do not know if they will meet their deadline, and for many other
>> reasons
>
>
> I agree - but you would have me believe that is the _only_ user base, and
> that challenges credibility,
> and raises questions.
>
> Besides, even IN THE CORPORATION - to get a project ok'd, you STILL need
> some evidence like I'm calling for,
> so your arguments seem to me circular, avoiding...
>
>
>>
>> While the fact that we want to have more information is a problem for
>> us, this is not a weakness of web2py.
>
>
> I agree - not a weakness, merely the current opportunity (if it is
> recognized).
>
>
>> Those corporate users are
>> exactly our target users and they are entitled to keep their privacy.
>> I do not care if nobody says they are using web2py. I know we get more
>> tha 1000 visitors/day and more than 100downloads/day.
>
>
> Yes - well, your personal interests are teaching.  My personal interests
> are connecting teachings to practical uses.
> We have complementary objectives.
>
> Downloading is fine;  learning is fine;  being able to apply what you learn
> to the benefit of others is... divine! ;-)
>
>
>>
>> I see how everybody is eager to increase the users base.
>
>
> I am not - increasing the user base should be a symptom; a sign that we are
> doing something right.
>
> The question remains: who is that user base?  Why is it increasing?  (The
> answers will affect interpretation, of course!)
>
> Downloads of web2py measure NO increasing the "I use this great website and
> it really helps me / our organization.  What was that thing is was
> built with again???" - that is the base to increase (indirectly) now.
>
>
> I made a plot of #users/time from the data in the google group.
>
>
> What that is, is a plot of potential web site writers... not "users",
> coders (or "would-be" coders, people considering if the cost of entry is
> good for them, their ideas).
>
>
>
>> The
>> data is nicely fit by an exponential. What is remarkable is that there
>> are no bumps in the data. It is very smooth. This means web2py is not
>> spreading because of major events (like my reddit posts) but it is
>> spreading by word of mouth.
>
>
> For people not familiar with website programming, web2py has an
> unmistakably low threshold (and some conceptual roadblocks)
> For people who know website programming, there is also some special
> leverage (and some flexigility barriers, although the important ones are
> lowering all the time - which is great).
>
> You have hit a particular market - two classes of web-developers (and
> would-be developers).
>
> Now, what kind of end-user impact will these groups achieve?
>
>
>>
>>
>> So, we'll keep collecting information people want to send us and we
>> encourage them to do so. But, most importantly, we should all do our
>> best to talk about the tools we like to use and contribute develop.
>
>
> And why we like to use them, and how they help (or hinder) our end goals,
> and how best to work towards those end goals,
> and how best to see them, and to look at how they have worked in practice
> (so me may stay rooted in reality).
>
>
>>
>>
>> Massimo
>
>
> Yarko
>
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25851] Re: How do we petition Google to mention web2py?

2009-07-06 Thread Yarko Tymciurak
On Mon, Jul 6, 2009 at 7:00 PM, mdipierro  wrote:

>
> Yarko,
>
> we should not transform a strength into a weakness.


Massimo, Massimo, Massimo -

Facts are neither strength or weakness (these words from you seem strange
indeed).


> As I stressed many
> times web2py is mostly used to develop intranet apps in corporate
> environments (small and medium size businesses).
>
> There are people do not want to say what they are doing with web2py
> and do not want to advertise that they are using web2py because they
> are not developing open source projects, because their paid by an
> employer who does not want them to publicly say what they are doing,
> because
> they do not know if they will meet their deadline, and for many other
> reasons


I agree - but you would have me believe that is the _only_ user base, and
that challenges credibility,
and raises questions.

Besides, even IN THE CORPORATION - to get a project ok'd, you STILL need
some evidence like I'm calling for,
so your arguments seem to me circular, avoiding...


>
> While the fact that we want to have more information is a problem for
> us, this is not a weakness of web2py.


I agree - not a weakness, merely the current opportunity (if it is
recognized).


> Those corporate users are
> exactly our target users and they are entitled to keep their privacy.
> I do not care if nobody says they are using web2py. I know we get more
> tha 1000 visitors/day and more than 100downloads/day.


Yes - well, your personal interests are teaching.  My personal interests are
connecting teachings to practical uses.
We have complementary objectives.

Downloading is fine;  learning is fine;  being able to apply what you learn
to the benefit of others is... divine! ;-)


>
> I see how everybody is eager to increase the users base.


I am not - increasing the user base should be a symptom; a sign that we are
doing something right.

The question remains: who is that user base?  Why is it increasing?  (The
answers will affect interpretation, of course!)

Downloads of web2py measure NO increasing the "I use this great website and
it really helps me / our organization.  What was that thing is was
built with again???" - that is the base to increase (indirectly) now.


I made a plot of #users/time from the data in the google group.


What that is, is a plot of potential web site writers... not "users", coders
(or "would-be" coders, people considering if the cost of entry is good for
them, their ideas).



> The
> data is nicely fit by an exponential. What is remarkable is that there
> are no bumps in the data. It is very smooth. This means web2py is not
> spreading because of major events (like my reddit posts) but it is
> spreading by word of mouth.


For people not familiar with website programming, web2py has an unmistakably
low threshold (and some conceptual roadblocks)
For people who know website programming, there is also some special leverage
(and some flexigility barriers, although the important ones are lowering all
the time - which is great).

You have hit a particular market - two classes of web-developers (and
would-be developers).

Now, what kind of end-user impact will these groups achieve?


>
>
> So, we'll keep collecting information people want to send us and we
> encourage them to do so. But, most importantly, we should all do our
> best to talk about the tools we like to use and contribute develop.


And why we like to use them, and how they help (or hinder) our end goals,
and how best to work towards those end goals,
and how best to see them, and to look at how they have worked in practice
(so me may stay rooted in reality).


>
>
> Massimo


Yarko

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25850] Re: _extra returns string instead of date

2009-07-06 Thread Sebastian E. Ovide
same problem with another field:

it is defined as

db.Field('impressions','integer'),

but impressions=r._extra[db.ans_dashboard_report.impressions.sum()] is
returning decimal instead of integer !!!

the strange thing is than on another machine it gives me integer...

any ideas ?

On Thu, Jul 2, 2009 at 8:24 PM, Sebastian E. Ovide  wrote:

> following up from another thread
> http://groups.google.com/group/web2py/browse_frm/thread/aac58263328d9e8f/96af57e862484949
>
> rows.colnames=["date","id","clicks","impressions"]
>
> for rename the cols
>
> and
>
> row._extra["date"]
>
> for acceding the field
>
>
> =-
>
>
>
> On Thu, Jul 2, 2009 at 8:08 PM, Hans Donner  wrote:
>
>>
>> "I have renamed a query columns setting colnames."
>> Could you be more precise what you did, eg by showing us some code?
>>
>> As it looks now you did something that you shouldn't have.
>>
>> On Thu, Jul 2, 2009 at 1:38 PM, Sebastian E.
>> Ovide wrote:
>> > Hi Massimo
>> >
>> > I have renamed a query columns setting colnames. For some reason the
>> _extra
>> > operator is returning a string for a field that is date.  In another
>> server
>> > running the same web2py version _extra is returning datetime for the
>> same
>> > field (instead of date)
>> >
>> > Version 1.64.1 (2009-06-11 15:48:02)
>> >
>> > Is it working as expected ?
>> >
>> >
>> >
>> >
>> > >
>> >
>>
>> >>
>>
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25849] Re: _action='.'

2009-07-06 Thread mdipierro

I do not think this needs to be in web2py.

You can already define something like:

def url(f,args=request.args): return URL(r=request,f=f,args=args)

I always do it together with some of my other favorite shortcuts.

Massimo

On Jul 6, 8:06 pm, Jonathan Lundell  wrote:
> On Jul 6, 2009, at 2:10 PM, mdipierro wrote:
>
>
>
> > _action=URL(r=request))
>
> > is probably fine
>
> > _action=URL(r=request,args=request.args))
>
> > to be user
>
> Because valid html requires a non-empty action, I'd like to make the  
> effort to specify self-submission as easy as possible. I've been  
> thinking along these lines:
>
>         FORM(..., _action=request._self)
>
> where:
>
> class Request(Storage):
>
>      ...
>
>      def _self(self):
>          return URL(r=self, args=self.args)
>
> or two methods, if there's a reason you don't want the args. Depending  
> on which is more commons, _self() and _self_args() or _self() and  
> _self_only, say.
>
> Or even simpler:
>
>         FORM(..., r=request)
>
> where FORM would fill in action with a self-reference if it's not  
> otherwise specified (instead of setting it to '' as it does now). (And  
> depending on whether we need with-args and without-args flavors.)
>
> Again, the general idea is that a) valid html is highly desirable, b)  
> self-submission is a very common case, and consequently c) it's  
> worthwhile making that case as concise as possible.
>
>
>
> > On Jul 6, 3:32 pm, Jonathan Lundell  wrote:
> >> On Jul 6, 2009, at 12:31 PM, Yarko Tymciurak wrote:
>
> >>> _action value (in SQLForm) is what "action" in HTML FORM  will be
> >>> set to.
>
> >>> It is a URI, so "." is relative to the current context.
>
> >>> check out something likehttp://www.w3.org/TR/html401/interact/forms.html
> >>>  for more.
>
> >> OK, thanks.
>
> >> The problem with that, as I read the RFC, is that the "current
> >> context" means the current URL with everything to the right of the
> >> rightmost slash deleted, which isn't going to work very well for
> >> web2py URLs, if the intent is a self-reference (unless perhaps the
> >> current URL is to the default controller and/or function).
>
> >> Here's why I'm asking: a missing or empty form action is invalid
> >> (x)html, and I'm looking for the most concise way of asking for a  
> >> self-
> >> reference. action="." would work fine if the URL ended in a slash,  
> >> but
> >> it does not.
>
> >> The shortest self-reference I can see is: FORM( ...,
> >> _action=URL(r=request))
>
> >> Is that right?
>
> >>> On Mon, Jul 6, 2009 at 1:44 PM, Jonathan Lundell
> >>>  wrote:
>
> >>> The example _action='.' appears in the manual, section 7.2  
> >>> (SQLForm),
> >>> page 168.
>
> >>> What does that mean?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25848] Re: new chapters for the book CRUD and AUTH

2009-07-06 Thread Alexandre Andrade
I think I good information to put in 'auth' section, besides the "Renaming
Auth tables" is how translate auth tables fields:

db.auth_user.first_name.label=T("First Name")
etc.
etc.

I take some time to figure how get it.

IDEA: I sugest, to make web2py more friendly to l10n, the labels was default
as above, so we need only to translate xx-xx.py language file

2009/7/6 mdipierro 

>
> Let me add that only one chapter needs to be added the book (about web
> services) and two chapters need minor revisions. Aside for that all
> new features are stable and described in the book. If I get some help
> with proofreading and screenshots I can have a web2py book 2nd edition
> in by the end of July, mid August at most.
>
> Then nobody can say the docs do not keep pace with development.
>
> Massimo
>
>
> Massimo Di Pierro wrote:
> > Here are two very very draft chapters for the second edition of the
> > book.
> > Chapter 7 has been amended to include CRUD
> > Chapter 8 has been added and discusses AUTH
> >
> > This is very draft because I just wrote, I did not not update/add
> > screenshots and I did not even read it back. This means it is will of
> > typos.
> > I will appreciate if you could help me proof read it and perhaps try
> > some of the examples.
> >
>


-- 
Atenciosamente

-- 
=
Alexandre Andrade
Hipercenter.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25847] Re: new chapters for the book CRUD and AUTH

2009-07-06 Thread mdipierro

Thank you. I am going to work on this probably one or two more weeks.
Than I will post here a list if screenshots that are needed and some
guidelines.

I cannot promise much in return other than a mention in the book and a
copy of the final version to all those who help.

Massimo

On Jul 6, 9:47 pm, JohnMc  wrote:
> I would be willing to do screen shots if you are looking for a
> volunteer.
>
> JohnMc
>
> On Jul 6, 7:49 pm, mdipierro  wrote:
>
> > Let me add that most of the the other chapters have already been
> > revised, although need some proofreading.
>
> > Only one chapter needs to be added the book (a short one, about web
> > services) and two chapters still need some revision. Aside for that
> > all
> > new features are stable and described in the book. If I get some help
> > with proofreading and screen shots I can have a web2py book 2nd
> > edition
> > in by the end of July, mid August at most.
>
> > Everything I can think of is now described in there.
> > Then nobody can say the docs do not keep pace with development.
>
> > Massimo
>
> > On Jul 6, 7:09 pm, Massimo Di Pierro  wrote:
>
> > > Here are two very very draft chapters for the second edition of the  
> > > book.
> > > Chapter 7 has been amended to include CRUD
> > > Chapter 8 has been added and discusses AUTH
>
> > > This is very draft because I just wrote, I did not not update/add  
> > > screenshots and I did not even read it back. This means it is will of  
> > > typos.
> > > I will appreciate if you could help me proof read it and perhaps try  
> > > some of the examples.
>
> > >  web2py_manual_7&8.pdf
> > > 1317KViewDownload
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25846] Re: new chapters for the book CRUD and AUTH

2009-07-06 Thread JohnMc

I would be willing to do screen shots if you are looking for a
volunteer.

JohnMc

On Jul 6, 7:49 pm, mdipierro  wrote:
> Let me add that most of the the other chapters have already been
> revised, although need some proofreading.
>
> Only one chapter needs to be added the book (a short one, about web
> services) and two chapters still need some revision. Aside for that
> all
> new features are stable and described in the book. If I get some help
> with proofreading and screen shots I can have a web2py book 2nd
> edition
> in by the end of July, mid August at most.
>
> Everything I can think of is now described in there.
> Then nobody can say the docs do not keep pace with development.
>
> Massimo
>
> On Jul 6, 7:09 pm, Massimo Di Pierro  wrote:
>
> > Here are two very very draft chapters for the second edition of the  
> > book.
> > Chapter 7 has been amended to include CRUD
> > Chapter 8 has been added and discusses AUTH
>
> > This is very draft because I just wrote, I did not not update/add  
> > screenshots and I did not even read it back. This means it is will of  
> > typos.
> > I will appreciate if you could help me proof read it and perhaps try  
> > some of the examples.
>
> >  web2py_manual_7&8.pdf
> > 1317KViewDownload
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25845] Re: new chapters for the book CRUD and AUTH

2009-07-06 Thread mikech

I look forward to this new edition.

Mike

On Jul 6, 6:20 pm, net  wrote:
> This is just in time! I'm starting to add AUTH functions to the app
> I'm working on
> so I'll read both chapters and provide feedback.
>
> Sterling
>
> On Jul 6, 7:09 pm, Massimo Di Pierro  wrote:
>
>
>
> > Here are two very very draft chapters for the second edition of the
> > book.
> > Chapter 7 has been amended to include CRUD
> > Chapter 8 has been added and discusses AUTH
>
> > This is very draft because I just wrote, I did not not update/add
> > screenshots and I did not even read it back. This means it is will of
> > typos.
> > I will appreciate if you could help me proof read it and perhaps try
> > some of the examples.
>
> >  web2py_manual_7&8.pdf
> > 1317KViewDownload
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25844] Re: new chapters for the book CRUD and AUTH

2009-07-06 Thread net

This is just in time! I'm starting to add AUTH functions to the app
I'm working on
so I'll read both chapters and provide feedback.

Sterling



On Jul 6, 7:09 pm, Massimo Di Pierro  wrote:
> Here are two very very draft chapters for the second edition of the
> book.
> Chapter 7 has been amended to include CRUD
> Chapter 8 has been added and discusses AUTH
>
> This is very draft because I just wrote, I did not not update/add
> screenshots and I did not even read it back. This means it is will of
> typos.
> I will appreciate if you could help me proof read it and perhaps try
> some of the examples.
>
>  web2py_manual_7&8.pdf
> 1317KViewDownload
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25842] Re: new chapters for the book CRUD and AUTH

2009-07-06 Thread mdipierro

Let me add that most of the the other chapters have already been
revised, although need some proofreading.

Only one chapter needs to be added the book (a short one, about web
services) and two chapters still need some revision. Aside for that
all
new features are stable and described in the book. If I get some help
with proofreading and screen shots I can have a web2py book 2nd
edition
in by the end of July, mid August at most.

Everything I can think of is now described in there.
Then nobody can say the docs do not keep pace with development.

Massimo



On Jul 6, 7:09 pm, Massimo Di Pierro  wrote:
> Here are two very very draft chapters for the second edition of the  
> book.
> Chapter 7 has been amended to include CRUD
> Chapter 8 has been added and discusses AUTH
>
> This is very draft because I just wrote, I did not not update/add  
> screenshots and I did not even read it back. This means it is will of  
> typos.
> I will appreciate if you could help me proof read it and perhaps try  
> some of the examples.
>
>  web2py_manual_7&8.pdf
> 1317KViewDownload
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25843] Re: _action='.'

2009-07-06 Thread Jonathan Lundell

On Jul 6, 2009, at 2:10 PM, mdipierro wrote:

>
> _action=URL(r=request))
>
> is probably fine
>
> _action=URL(r=request,args=request.args))
>
> to be user

Because valid html requires a non-empty action, I'd like to make the  
effort to specify self-submission as easy as possible. I've been  
thinking along these lines:

FORM(..., _action=request._self)

where:

class Request(Storage):

 ...

 def _self(self):
 return URL(r=self, args=self.args)

or two methods, if there's a reason you don't want the args. Depending  
on which is more commons, _self() and _self_args() or _self() and  
_self_only, say.

Or even simpler:

FORM(..., r=request)

where FORM would fill in action with a self-reference if it's not  
otherwise specified (instead of setting it to '' as it does now). (And  
depending on whether we need with-args and without-args flavors.)

Again, the general idea is that a) valid html is highly desirable, b)  
self-submission is a very common case, and consequently c) it's  
worthwhile making that case as concise as possible.


>
>
> On Jul 6, 3:32 pm, Jonathan Lundell  wrote:
>> On Jul 6, 2009, at 12:31 PM, Yarko Tymciurak wrote:
>>
>>> _action value (in SQLForm) is what "action" in HTML FORM  will be
>>> set to.
>>
>>> It is a URI, so "." is relative to the current context.
>>
>>> check out something likehttp://www.w3.org/TR/html401/interact/forms.html
>>>  for more.
>>
>> OK, thanks.
>>
>> The problem with that, as I read the RFC, is that the "current
>> context" means the current URL with everything to the right of the
>> rightmost slash deleted, which isn't going to work very well for
>> web2py URLs, if the intent is a self-reference (unless perhaps the
>> current URL is to the default controller and/or function).
>>
>> Here's why I'm asking: a missing or empty form action is invalid
>> (x)html, and I'm looking for the most concise way of asking for a  
>> self-
>> reference. action="." would work fine if the URL ended in a slash,  
>> but
>> it does not.
>>
>> The shortest self-reference I can see is: FORM( ...,
>> _action=URL(r=request))
>>
>> Is that right?
>>
>>
>>
>>> On Mon, Jul 6, 2009 at 1:44 PM, Jonathan Lundell
>>>  wrote:
>>
>>> The example _action='.' appears in the manual, section 7.2  
>>> (SQLForm),
>>> page 168.
>>
>>> What does that mean?



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25841] Re: new chapters for the book CRUD and AUTH

2009-07-06 Thread mdipierro

Let me add that only one chapter needs to be added the book (about web
services) and two chapters need minor revisions. Aside for that all
new features are stable and described in the book. If I get some help
with proofreading and screenshots I can have a web2py book 2nd edition
in by the end of July, mid August at most.

Then nobody can say the docs do not keep pace with development.

Massimo


Massimo Di Pierro wrote:
> Here are two very very draft chapters for the second edition of the
> book.
> Chapter 7 has been amended to include CRUD
> Chapter 8 has been added and discusses AUTH
>
> This is very draft because I just wrote, I did not not update/add
> screenshots and I did not even read it back. This means it is will of
> typos.
> I will appreciate if you could help me proof read it and perhaps try
> some of the examples.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25839] Re: How do we petition Google to mention web2py?

2009-07-06 Thread mdipierro

Yarko,

we should not transform a strength into a weakness. As I stressed many
times web2py is mostly used to develop intranet apps in corporate
environments (small and medium size businesses).

There are people do not want to say what they are doing with web2py
and do not want to advertise that they are using web2py because they
are not developing open source projects, because their paid by an
employer who does not want them to publicly say what they are doing,
because
they do not know if they will meet their deadline, and for many other
reasons

While the fact that we want to have more information is a problem for
us, this is not a weakness of web2py. Those corporate users are
exactly our target users and they are entitled to keep their privacy.
I do not care if nobody says they are using web2py. I know we get more
tha 1000 visitors/day and more than 100downloads/day.

I see how everybody is eager to increase the users base.

I made a plot of #users/time from the data in the google group. The
data is nicely fit by an exponential. What is remarkable is that there
are no bumps in the data. It is very smooth. This means web2py is not
spreading because of major events (like my reddit posts) but it is
spreading by word of mouth.

So, we'll keep collecting information people want to send us and we
encourage them to do so. But, most importantly, we should all do our
best to talk about the tools we like to use and contribute develop.

Massimo


On Jul 6, 5:48 pm, Yarko Tymciurak  wrote:
> On Mon, Jul 6, 2009 at 3:13 PM, mdipierro  wrote:
>
> > I understand what you are trying to say but when you say "no one is
> > using web2py" gives people the wrong impression and not the correct
> > one. It is not fair to member of this community who use web2py.
>
> Massimo - "no one is using..." are your words, not mine - what I _did_ say
> is there is a gross shortage
> of sites you can point to that serve signicifant users (PyCon registration
> being the one clear exception).
>
> This doesn't need to be fair or unfair - it just data - what is (I hesitate
> to say "fact" as there may be unknown data).
>
>
>
> > You should also assume that there are lots of people on this list who
> > are considering web2py but have not yet made their mind about it.
>
> There are people who consider using it for developing projects.
>
> Do you deny it would help them, if they are to present to their partners,
> their clients, their boards, etc.
> if we had more evidence collected and available for them (us) to use as
> resources?
>
> Do you realy believe this is not useful?  Data is not useful?  Ach!
>
> Serving that community - even if it gets uncomfortable - if fair.
>
>
>
> > As you pointed out Pycon 2009 used web2py to register 800 users and
> > handled thousands of monetary transactions.
>
> This is significant.  Cooperated w/ django app for site info.
>
>
>
> >http://www.klasproducts.com/uses web2py to sell hundreds of products
>
> This is important, if small quantity.  It is a nice  site.
>
>
>
> >http://www.spinyc.com/uses web2py in their intranet
>
> This is significant, but anecdotal (nothing you can show someone for them to
> experience; perhaps a mockup that is open would be possible?).
> Runs with RorR as main site (and all we can see / point to).
>
>
>
> >http://www.whitepeaksoftware.com/ uses web2py for their web site
>
> For purposes of showing web2py look and feel, this is just a website front
> done in web2py;
> The storefront is something else; the blog is wordpress.  There is nothing
> of the "benefits" of web2py to show here I could see.
>
> That is not to criticize - no sense re-inventing wheels; use what is
> available, and build what is new and interesting.
>
> But from the standpoint of being a showcase example for this community to
> draw on - for people wanting to show sites
> that take advantage of the benefits of web2py, I do not feel this belongs on
> this list.
>
> We need to be more discerning.
>
>
>
> >http://diarywiz.com/is powered by web2py
>
> This is a real application example.  I'm not sure how it is significant in
> terms of what it does new (for example, like survey tool did),
> and I'm not sure that I would show this as an example to clients, boards,
> etc
>
> It seems like an appropriate example for prospective developers.
>
>
>
> > There are just some of those we know about and choose to advertise
> > what they do.
>
> So that is 2 for "showcase" - one very low usage ("hundreds"), one seasonal
> but successful (near 1000 users).
>
>
>
> > Of course more people will come out eventually. As I said most of the
> > work is done on intranet apps.
>
> Let's hear talk about them.  Even if someone can't name the company, or the
> specifics it is useful to hear kinds of things.
>
>
>
> > There is no question that Django is more popular and Drupal is
> > probably much more popular than web2py. They have been around longer,
> > came first and had more time to build a community. Moreover Drupal is
> > a des

[web2py:25838] Re: How do we petition Google to mention web2py?

2009-07-06 Thread Joe Barnhart

+1

On Jul 6, 3:48 pm, Yarko Tymciurak  wrote:
> On Mon, Jul 6, 2009 at 3:13 PM, mdipierro  wrote:
>
> > I understand what you are trying to say but when you say "no one is
> > using web2py" gives people the wrong impression and not the correct
> > one. It is not fair to member of this community who use web2py.
>
> Massimo - "no one is using..." are your words, not mine - what I _did_ say
> is there is a gross shortage
> of sites you can point to that serve signicifant users (PyCon registration
> being the one clear exception).
>
> This doesn't need to be fair or unfair - it just data - what is (I hesitate
> to say "fact" as there may be unknown data).
>
>
>
> > You should also assume that there are lots of people on this list who
> > are considering web2py but have not yet made their mind about it.
>
> There are people who consider using it for developing projects.
>
> Do you deny it would help them, if they are to present to their partners,
> their clients, their boards, etc.
> if we had more evidence collected and available for them (us) to use as
> resources?
>
> Do you realy believe this is not useful?  Data is not useful?  Ach!
>
> Serving that community - even if it gets uncomfortable - if fair.
>
>
>
> > As you pointed out Pycon 2009 used web2py to register 800 users and
> > handled thousands of monetary transactions.
>
> This is significant.  Cooperated w/ django app for site info.
>
>
>
> >http://www.klasproducts.com/uses web2py to sell hundreds of products
>
> This is important, if small quantity.  It is a nice  site.
>
>
>
> >http://www.spinyc.com/uses web2py in their intranet
>
> This is significant, but anecdotal (nothing you can show someone for them to
> experience; perhaps a mockup that is open would be possible?).
> Runs with RorR as main site (and all we can see / point to).
>
>
>
> >http://www.whitepeaksoftware.com/ uses web2py for their web site
>
> For purposes of showing web2py look and feel, this is just a website front
> done in web2py;
> The storefront is something else; the blog is wordpress.  There is nothing
> of the "benefits" of web2py to show here I could see.
>
> That is not to criticize - no sense re-inventing wheels; use what is
> available, and build what is new and interesting.
>
> But from the standpoint of being a showcase example for this community to
> draw on - for people wanting to show sites
> that take advantage of the benefits of web2py, I do not feel this belongs on
> this list.
>
> We need to be more discerning.
>
>
>
> >http://diarywiz.com/is powered by web2py
>
> This is a real application example.  I'm not sure how it is significant in
> terms of what it does new (for example, like survey tool did),
> and I'm not sure that I would show this as an example to clients, boards,
> etc
>
> It seems like an appropriate example for prospective developers.
>
>
>
> > There are just some of those we know about and choose to advertise
> > what they do.
>
> So that is 2 for "showcase" - one very low usage ("hundreds"), one seasonal
> but successful (near 1000 users).
>
>
>
> > Of course more people will come out eventually. As I said most of the
> > work is done on intranet apps.
>
> Let's hear talk about them.  Even if someone can't name the company, or the
> specifics it is useful to hear kinds of things.
>
>
>
> > There is no question that Django is more popular and Drupal is
> > probably much more popular than web2py. They have been around longer,
> > came first and had more time to build a community. Moreover Drupal is
> > a designed to build CMS therefore apps made with Drupal are naturally
> > publicly available.
>
> I am pointing out what will be helpful here, for web2py, for this community.
> I am stating what I could use now, what I want
>
> Those other things, comparing, are just distractions (inasmuch as they serve
> as guideposts, examples, lessons of aspects
> we can benefit from).
>
>
>
> > I do not think discussion about how popular we are vs how popular they
> > are is healthy. Moreover despite what some people think I do not care
> > much about it. I would like the discussion to focus more on what we do
> > better (feature wise), what they do better, what can we do to improve
> > our features, what can we do to promote web2py features.
>
> I am puzzled why you keep using the term "popular" - you must have some
> issue with this.
> There is "fad"; there is popular because useful, reasons behind use (e.g.
> excercise is popular - it helps you stay healthy!  When the evidence smoking
> was bad for health became available, smoking became much less "popular").
>
> Discussing what we can do better feature wise - and this is my point - I'd
> like to see balanced with
> EVIDENCE / EXAMPLES of that "better" - "Here - look at this site, for
> example; or look at this example site."
>
> People ask ME for that, and it's a fair request.
>
> > Some people are not interested in features as are only interested in
> > learning the system that will give them the h

[web2py:25837] Re: How to create a JavaScript confirmation popup?

2009-07-06 Thread Speedbird

I must say that I grow even more impressed with this framework as time
goes by :)

On Jul 6, 2:53 pm, mdipierro  wrote:
> hey... web2py does this automatically if you use an input checkbox
> with class="delete". No JS needed.
>
> Massimo
>
> On Jul 6, 3:57 pm, NetAdmin  wrote:
>
> > Hello All,
>
> > I'm trying to display records in a table, that has a button at the end
> > of each row, that calls a JavaScript popup to confirm the delete.
>
> > I'm stuck and would appreciate any help anyone can offer.
>
> > Some of the code is attached.
>
> > Thanks!
>
> > Sterling
>
> > 
> > 
> > 
> > 
> > 
>
> > {{#  tboffice.id     tboffice.fdesc   tboffice.fprice }}
> > 
> > {{ for r in recs: }}
> > {{ price = '%.2f' % r.fprice }}
> > {{ rec_id = '%04i ' % r.id }}
> > {{ d = r.fdesc }}
> >  
> >   {{=rec_id}}    {{=r.fdesc}}  
> > {{=price}}   {{=LI(A("Delete", _href=URL(r=request ,
> > f="delete/"+str(rec_id)  ))) }} > onClick="confirmation()" value="Delete">  
> >  
> > {{pass}}
> > 
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25836] Re: How do we petition Google to mention web2py?

2009-07-06 Thread Yarko Tymciurak
On Mon, Jul 6, 2009 at 5:48 PM, Yarko Tymciurak  wrote:

>
> On Mon, Jul 6, 2009 at 3:13 PM, mdipierro  wrote:
>
>>
>> .

>
>
>
>>
>> http://www.whitepeaksoftware.com/  uses web2py for their web site
>
>
> For purposes of showing web2py look and feel, this is just a website front
> done in web2py;
> The storefront is something else; the blog is wordpress.  There is nothing
> of the "benefits" of web2py to show here I could see.
>
> That is not to criticize - no sense re-inventing wheels; use what is
> available, and build what is new and interesting.
>
> But from the standpoint of being a showcase example for this community to
> draw on - for people wanting to show sites
> that take advantage of the benefits of web2py, I do not feel this belongs
> on this list.
>
> We need to be more discerning.
>
>
I am sure WhitePeaks is a fine development house.  Perhaps they have some
examples they would be willing to share with the community?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25835] Re: How do we petition Google to mention web2py?

2009-07-06 Thread Yarko Tymciurak
On Mon, Jul 6, 2009 at 3:13 PM, mdipierro  wrote:

>
> I understand what you are trying to say but when you say "no one is
> using web2py" gives people the wrong impression and not the correct
> one. It is not fair to member of this community who use web2py.


Massimo - "no one is using..." are your words, not mine - what I _did_ say
is there is a gross shortage
of sites you can point to that serve signicifant users (PyCon registration
being the one clear exception).

This doesn't need to be fair or unfair - it just data - what is (I hesitate
to say "fact" as there may be unknown data).

>
>
> You should also assume that there are lots of people on this list who
> are considering web2py but have not yet made their mind about it.


There are people who consider using it for developing projects.

Do you deny it would help them, if they are to present to their partners,
their clients, their boards, etc.
if we had more evidence collected and available for them (us) to use as
resources?

Do you realy believe this is not useful?  Data is not useful?  Ach!

Serving that community - even if it gets uncomfortable - if fair.


>
>
> As you pointed out Pycon 2009 used web2py to register 800 users and
> handled thousands of monetary transactions.


This is significant.  Cooperated w/ django app for site info.


>
> http://www.klasproducts.com/ uses web2py to sell hundreds of products


This is important, if small quantity.  It is a nice  site.


>
> http://www.spinyc.com/ uses web2py in their intranet


This is significant, but anecdotal (nothing you can show someone for them to
experience; perhaps a mockup that is open would be possible?).
Runs with RorR as main site (and all we can see / point to).



>
> http://www.whitepeaksoftware.com/  uses web2py for their web site


For purposes of showing web2py look and feel, this is just a website front
done in web2py;
The storefront is something else; the blog is wordpress.  There is nothing
of the "benefits" of web2py to show here I could see.

That is not to criticize - no sense re-inventing wheels; use what is
available, and build what is new and interesting.

But from the standpoint of being a showcase example for this community to
draw on - for people wanting to show sites
that take advantage of the benefits of web2py, I do not feel this belongs on
this list.

We need to be more discerning.



>
> http://diarywiz.com/ is powered by web2py


This is a real application example.  I'm not sure how it is significant in
terms of what it does new (for example, like survey tool did),
and I'm not sure that I would show this as an example to clients, boards,
etc

It seems like an appropriate example for prospective developers.


>
>
> There are just some of those we know about and choose to advertise
> what they do.


So that is 2 for "showcase" - one very low usage ("hundreds"), one seasonal
but successful (near 1000 users).


>
>
> Of course more people will come out eventually. As I said most of the
> work is done on intranet apps.


Let's hear talk about them.  Even if someone can't name the company, or the
specifics it is useful to hear kinds of things.


>
> There is no question that Django is more popular and Drupal is
> probably much more popular than web2py. They have been around longer,
> came first and had more time to build a community. Moreover Drupal is
> a designed to build CMS therefore apps made with Drupal are naturally
> publicly available.



I am pointing out what will be helpful here, for web2py, for this community.
I am stating what I could use now, what I want

Those other things, comparing, are just distractions (inasmuch as they serve
as guideposts, examples, lessons of aspects
we can benefit from).


>
> I do not think discussion about how popular we are vs how popular they
> are is healthy. Moreover despite what some people think I do not care
> much about it. I would like the discussion to focus more on what we do
> better (feature wise), what they do better, what can we do to improve
> our features, what can we do to promote web2py features.


I am puzzled why you keep using the term "popular" - you must have some
issue with this.
There is "fad"; there is popular because useful, reasons behind use (e.g.
excercise is popular - it helps you stay healthy!  When the evidence smoking
was bad for health became available, smoking became much less "popular").

Discussing what we can do better feature wise - and this is my point - I'd
like to see balanced with
EVIDENCE / EXAMPLES of that "better" - "Here - look at this site, for
example; or look at this example site."

People ask ME for that, and it's a fair request.


> Some people are not interested in features as are only interested in
> learning the system that will give them the highest chance of getting
> hired. Some people are interested in features as a way to get the job
> done better and quicker. I am working for this second class of users.
> I am interested in building a community for these p

[web2py:25833] Re: How do we petition Google to mention web2py?

2009-07-06 Thread Tim Michelsen

mdipierro :
  Some people are interested in features as a way to get the job
> done better and quicker. I am working for this second class of users.
> I am interested in building a community for these people.
I like that statement. Keen to see what follows up.
I mean, you add neice little features every week and asure to maintain
backward compatibility.
But I really miss a roadmap with release dates.

mdipierro :
> One is that the python community still perceives web2py as a one man
> project. You people need to brag more about it and about your
> contribution.
True. And I guess this applies even for memebers of this list.

Such posts as
http://groups.google.com/group/web2py/msg/61d0e1356ac1252a
are interesting.
But will not change a lot until something changes in the project set up.

I agre with Hans here:
> We need more visibility on this, eg like Django on
> http://code.djangoproject.com/#Gettinginvolved, but also the
> ticket/feature requests discussed earlier. This will create better
> visibility that more people are(already)  contributing.

For my topic of contribution I would suggest you to install pydocweb on
your server:
http://groups.google.com/group/sphinx-dev/browse_thread/thread/b77ff5ed73faf410
http://code.google.com/p/pydocweb/
http://gminick.wordpress.com/

Although written in Django, it offers the great opportunity to get nice
shiny and valid docstrings with doctest more sooner than later.

a good notice: I was asked by my potential users to continue my app
development today.

Best regards,
Timmie


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25828] Re: How do we petition Google to mention web2py?

2009-07-06 Thread Jonathan Lundell

On Jul 5, 2009, at 11:59 PM, mdipierro wrote:

> Why is that? I think there are multiple answers.
>
> One is that the python community still perceives web2py as a one man
> project. You people need to brag more about it and about your
> contribution.

To the extent that the "one-man project" characterization is true (and  
in a sense it's undeniable), it may be helpful to make the analogy of  
Linux, where there are many, many developers, but Linus is the  
gatekeeper for the release tree, and is the final arbiter of every  
patch to that tree, as well as the final authority on overall design  
and direction questions.

Of course, Linux is a bigger project, and there are a lot of project  
leaders for various parts of the tree. But there's a real sense in  
which it's a "one-man project", and it manages to be quite popular,  
thank you very much.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25834] Re: web2pyslices.com test feedback

2009-07-06 Thread Joe Barnhart

It looks very good mr. freeze.  On my system it is "horizontally
challenged" however.  Do you really need four columns in the layout or
could you stack the "new" slices and the "favorite" slices?

Sites should be usable without too much scrolling in an 800x600
window.  That may not be possible in all cases but it is a good
minimum to shoot for.

On Jul 6, 1:24 pm, "mr.freeze"  wrote:
> Thanks! I will pack it into a w2p and make it available on the site
> after it is deployed.  I've still got a few bugs to iron out and CSS
> to clean up.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25832] Re: How to create a JavaScript confirmation popup?

2009-07-06 Thread mdipierro

hey... web2py does this automatically if you use an input checkbox
with class="delete". No JS needed.

Massimo

On Jul 6, 3:57 pm, NetAdmin  wrote:
> Hello All,
>
> I'm trying to display records in a table, that has a button at the end
> of each row, that calls a JavaScript popup to confirm the delete.
>
> I'm stuck and would appreciate any help anyone can offer.
>
> Some of the code is attached.
>
> Thanks!
>
> Sterling
>
> 
> 
> 
> 
> 
>
> {{#  tboffice.id     tboffice.fdesc   tboffice.fprice }}
> 
> {{ for r in recs: }}
> {{ price = '%.2f' % r.fprice }}
> {{ rec_id = '%04i ' % r.id }}
> {{ d = r.fdesc }}
>  
>   {{=rec_id}}    {{=r.fdesc}}  
> {{=price}}   {{=LI(A("Delete", _href=URL(r=request ,
> f="delete/"+str(rec_id)  ))) }} onClick="confirmation()" value="Delete">  
>  
> {{pass}}
> 
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25824] How to create a JavaScript confirmation popup?

2009-07-06 Thread NetAdmin

Hello All,

I'm trying to display records in a table, that has a button at the end
of each row, that calls a JavaScript popup to confirm the delete.

I'm stuck and would appreciate any help anyone can offer.

Some of the code is attached.

Thanks!

Sterling







{{#  tboffice.id tboffice.fdesc   tboffice.fprice }}

{{ for r in recs: }}
{{ price = '%.2f' % r.fprice }}
{{ rec_id = '%04i ' % r.id }}
{{ d = r.fdesc }}
 
  {{=rec_id}}{{=r.fdesc}}  
{{=price}}   {{=LI(A("Delete", _href=URL(r=request ,
f="delete/"+str(rec_id)  ))) }}  
 
{{pass}}


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25831] peek at new DAL

2009-07-06 Thread Massimo Di Pierro
Some people have asked so here is a prototype of the new DAL. It is  
far come complete. The tests at the end work. It cannot jet be  
integrated in web2py because the part for auto-closing transactions if  
missing.



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---

import os
import datetime
import logging
logging.level=0

drivers=[]

try:
from pysqlite2 import dbapi2 as sqlite3
drivers.append('pysqlite2')
except:
try:
import sqlite3
drivers.append('SQLite3')
except:
logging.debug('no sqlite3 or pysqlite2.dbapi2 driver')

class AdaptorSQLite:

name = 'sqlite'

def __init__(self,db,uri):
"""
connects to database and allocates 
self.connection
self.cursor
"""
(self._db,self.uri)=(db,uri)

def execute(self,command):
logging.info('web2py.gluon.AdaptorSQLite:'+command)
if isinstance(command, str): self.cursor.execute(command)
else: raise SyntaxError, "invalid command:, ", repr(command)

def quote(self,value):
return "'%s'" % value.replace("'","''")

def r(self,value,type='s'):
if isinstance(value,Field):
return value._truefullname
if isinstance(value,(Query, Expression)):
return value.command
if value==None:
return 'NULL'
if isinstance(value, unicode):
value = value.encode('utf-8')
if type[0] == 'i':
return str(int(value))
if type[0] == 'd':
return str(float(value))
if type[0] == 'r':
return str(int(value))
if isinstance(value,(datetime.date,datetime.datetime,datetime.time)):
return "'%s'" % value.isoformat()
if type=='boolean':
if value and not str(value).upper()[0] in ('0','F'): return 'T'
return 'F'
if type=='blob':
value = base64.b64encode(str(value))
if not isinstance(value,str):
value=str(value)
return self.quote(value)

def migrate(self,table):
"""
creates or alters the table as requires
"""
self.execute(self.CREATE(table)) ### do migrations here
self.COMMIT()
def lastrowid(self,table):
return self.cursor.lastrowid
def rowcount(self):
return self.cursor.rowcount
def insert(self,table,**fields):
[self.execute(q) for q in self.INSERT(table,**fields)]
return self.lastrowid(table)
def drop(self,table):
[self.execute(q) for q in self.DROP(table)]
def truncate(self,table):
[self.execute(q) for q in self.TRUNCATE(table)]
def count(self,query):
[self.execute(q) for q in self.COUNT(query)]
return self.cursor.fetchone()[0]
def update(self,query,**fields):
[self.execute(q) for q in self.UPDATE(query,**fields)]
return self.rowcount()
def select(self,query,*fields,**args):
items=self.SELECT(query,*fields,**args)
[self.execute(q) for q in items[1:]]
response=self.convert(self.cursor.fetchall(),items[0])
return Rows(self.db,response,items[0])
def convert(self,items,columns):
nc=range(len(columns))
for i in range(len(items)):
item=items[i]
newitem=[]
for j in nc:
value=item[j]
column=columns[j]
### ADD MAMBO JUMBO
newitem.append(value)
items[i]=tuple(newitem)
return items
def BEGIN(self):
pass
def AND(self,first,second):
return '(%s) AND (%s)' % (self.r(first),self.r(second))
def OR(self,first,second):
return '(%s) OR (%s)' % (self.r(first),self.r(second))
def NOT(self,first,second):
return 'NOT (%s)' % (self.r(first))
def COMMA(self,first,second):
return '%s, %s' % (self.r(first),self.r(second))
def DESC(self,first):
return '%s DESC' % (self.r(first))
def EQ(self,first,second):
return '%s = %s' % (self.r(first),self.r(second,first.type))
def NEQ(self,first,second):
return '%s <> %s' % (self.r(first),self.r(second,first.type))
def LT(self,first,second):
return '%s < %s' % (self.r(first),self.r(second,first.type))
def GT(self,first,second):
return '%s > %s' % (self.r(first),self.r(second,first.type))
def LE(self,first,second):
return '%s <= %s' % (self.r(first),self.r(second,first.type))
def GE(self,first,second):
return '%s >= %s' % (self.r(first),self.r(second,first.type))
def ADD(

[web2py:25830] Re: How do we petition Google to mention web2py?

2009-07-06 Thread JohnMc

"Some people are not interested in features as are only interested in
learning the system that will give them the highest chance of getting
hired. Some people are interested in features as a way to get the job
done better and quicker. I am working for this second class of users.
I am interested in building a community for these people.

Massimo"

What you are describing is a SWOT (strength, weakness, opportunity,
threats) analysis.

S:
- works with existing DB's with minimal restrictions.
- Provides WWW std outputs (RSS, XML, etc)
- DAL to abstract away DB complexity.
- GAE friendly.
- High level of customization possible.
- Appliances to do plug and play.
- Built in ticketing.
- etc.

W:
- Python powered. (Rankles me too, but Python is usually not the first
language uttered when discussing web platforms even with Django's
popularity.)
- Minimal third party tools.
- Fear of 'death by truck' for the framework.
- Development is outpacing documentation.

O:
- DAL possibly support schemeless DB's (CouchDB or BerkelyDB)?
(future?)
- Ability to run in a Android environment.
- General portability of the framework.


T:
- Not in the top three in their language class as a framework.
- PHP on the low end. Django/Rails in the midrange. Java/Glassfish/
JBoss/PlOne/Zodb on the high end.

Least that is what I would report to my boss were he to ask. And
please I did this as impartial as I could. For example 'minimal third
party tools' would be valid complaint. The counter argument of course
is many tools are already built in and anything one could consider
lacking could be developed or modified from existing tools.

Were I to make one recommendation for a feature -- Make the DAL
capable of inter-operating with CouchDB. Rationale --

* CouchDB is an up and comer in the DB arena. It plays into the
BigTable and S3 space as a substitute for those that need to keep data
inhouse.
* CouchDB has a simple interface and there are tools that permit one
to integrate django to CouchDB. But it is tacked on. A seamless
interface between Web2Py and CouchDB would be a reasonable first for
any framework.
* One would garner more support from the Mozilla Foundation in the way
of recognition and public relations than one might get from Google.

Just one opinion.

JohnMc


On Jul 6, 3:13 pm, mdipierro  wrote:
> I understand what you are trying to say but when you say "no one is
> using web2py" gives people the wrong impression and not the correct
> one. It is not fair to member of this community who use web2py.
>
> You should also assume that there are lots of people on this list who
> are considering web2py but have not yet made their mind about it.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25829] Re: How to create a JavaScript confirmation popup?

2009-07-06 Thread NetAdmin

YES! YES! YES!
That worked GREAT! I spent HOURS trying to get that correct!

Thanks So Much!

Sterling

On Jul 6, 4:07 pm, Speedbird  wrote:
> onclick="confirmation('{{=r.id}}');"
>
> Then just accept the parameter in your JS function and handle it
> there, something like
>
> function confirmation(recno) {
> ...
>
> -- Julio
>
> On Jul 6, 1:57 pm, NetAdmin  wrote:
>
> > Hello All,
>
> > I'm trying to display records in a table, that has a button at the end
> > of each row, that calls a JavaScript popup to confirm the delete.
>
> > I'm stuck and would appreciate any help anyone can offer.
>
> > Some of the code is attached.
>
> > Thanks!
>
> > Sterling
>
> > 
> > 
> > 
> > 
> > 
>
> > {{#  tboffice.id     tboffice.fdesc   tboffice.fprice }}
> > 
> > {{ for r in recs: }}
> > {{ price = '%.2f' % r.fprice }}
> > {{ rec_id = '%04i ' % r.id }}
> > {{ d = r.fdesc }}
> >  
> >   {{=rec_id}}    {{=r.fdesc}}  
> > {{=price}}   {{=LI(A("Delete", _href=URL(r=request ,
> > f="delete/"+str(rec_id)  ))) }} > onClick="confirmation()" value="Delete">  
> >  
> > {{pass}}
> > 
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25825] Re: List of web hosting for Web2py

2009-07-06 Thread gluegl

Here is one Web2Py Hosting site ... http://Gpro.ws
-G

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25827] Re: _action='.'

2009-07-06 Thread mdipierro

_action=URL(r=request))

is probably fine

_action=URL(r=request,args=request.args))

to be user


On Jul 6, 3:32 pm, Jonathan Lundell  wrote:
> On Jul 6, 2009, at 12:31 PM, Yarko Tymciurak wrote:
>
> > _action value (in SQLForm) is what "action" in HTML FORM  will be  
> > set to.
>
> > It is a URI, so "." is relative to the current context.
>
> > check out something likehttp://www.w3.org/TR/html401/interact/forms.html
> >  for more.
>
> OK, thanks.
>
> The problem with that, as I read the RFC, is that the "current  
> context" means the current URL with everything to the right of the  
> rightmost slash deleted, which isn't going to work very well for  
> web2py URLs, if the intent is a self-reference (unless perhaps the  
> current URL is to the default controller and/or function).
>
> Here's why I'm asking: a missing or empty form action is invalid  
> (x)html, and I'm looking for the most concise way of asking for a self-
> reference. action="." would work fine if the URL ended in a slash, but  
> it does not.
>
> The shortest self-reference I can see is: FORM( ...,  
> _action=URL(r=request))
>
> Is that right?
>
>
>
> > On Mon, Jul 6, 2009 at 1:44 PM, Jonathan Lundell  
> >  wrote:
>
> > The example _action='.' appears in the manual, section 7.2 (SQLForm),
> > page 168.
>
> > What does that mean?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25822] Re: web2pyslices.com test feedback

2009-07-06 Thread mr.freeze

Thanks! I will pack it into a w2p and make it available on the site
after it is deployed.  I've still got a few bugs to iron out and CSS
to clean up.

On Jul 6, 2:48 pm, waTR  wrote:
> That looks VERY sleek!!   Great job!!
>
> Any way to get the source-code to learn from it?
>
> On Jul 5, 9:46 pm, "mr.freeze"  wrote:
>
>
>
> > I am putting together a paste bin site for web2py called
> > web2pyslices.com.  It has ratings, markdown, favorites, comments and a
> > few other features.  The test site is up athttp://web2pyslices.com.
> > I would appreciate any feedback.  WARNING - the test database will
> > probably be dumped when/if the site is deployed so don't invest too
> > much time.  I just want to iron out as many bugs as possible before
> > deploying.  Hopefully this will be beneficial to the community.- Hide 
> > quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25826] Re: How to create a JavaScript confirmation popup?

2009-07-06 Thread Speedbird

onclick="confirmation('{{=r.id}}');"

Then just accept the parameter in your JS function and handle it
there, something like

function confirmation(recno) {
...


-- Julio

On Jul 6, 1:57 pm, NetAdmin  wrote:
> Hello All,
>
> I'm trying to display records in a table, that has a button at the end
> of each row, that calls a JavaScript popup to confirm the delete.
>
> I'm stuck and would appreciate any help anyone can offer.
>
> Some of the code is attached.
>
> Thanks!
>
> Sterling
>
> 
> 
> 
> 
> 
>
> {{#  tboffice.id     tboffice.fdesc   tboffice.fprice }}
> 
> {{ for r in recs: }}
> {{ price = '%.2f' % r.fprice }}
> {{ rec_id = '%04i ' % r.id }}
> {{ d = r.fdesc }}
>  
>   {{=rec_id}}    {{=r.fdesc}}  
> {{=price}}   {{=LI(A("Delete", _href=URL(r=request ,
> f="delete/"+str(rec_id)  ))) }} onClick="confirmation()" value="Delete">  
>  
> {{pass}}
> 
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25820] Re: List of web hosting for Web2py

2009-07-06 Thread mdipierro

This is thought one because there are many subtleties.

web2py can run everywhere as long as they have python installed. If
they can run any other python framework they can run web2py. If they
can run java apps, they can run Jython and thus they can run web2py
too. All sites that list cherrypy

I would be interested more in a matrix that for each site says:

do they support python 2.4, 2.5 (preferred), 2.6, jython?
do they provide ssh?
do they provide sftp?
do they provide a mechanism to restart processes automatically?
can you edit http.conf? yes/no
does it run with cgi? yes/no (if you cannot edit the apache config but
discouraged)
does it run as a proxy? yes/no (if you cannot edit the apache config,
reccommended)
does it run with fastcgi? yes/no (this is normally for lightpd and
cherokee)
does it run with mod_wsgi? (this is preferred)
does it run with mod_python? (this is old technology but it what most
sites supporting Django do)
etc.

and links to setup examples in each case.

Massimo


On Jul 6, 2:25 pm, Yarko Tymciurak  wrote:
> I think your request is a good one:
>
> -  A blog-like list of hosting where web2py is known to run, and what it
> takes to setup a web2py site there.
>
> I have an account on webfaction, and have moved others there.  They have a
> writeup on how to get web2py deployed, and support you through it.
>
> I _know_ there are others.  It would be good to have a list, so people have
> something to start from when looking for themselves.
>
> - Yarko
>
> On Mon, Jul 6, 2009 at 11:26 AM, Speedbird  wrote:
>
> > Replied. Thanks!
>
> > On Jul 6, 9:08 am, Yannick  wrote:
> > > Can I know the name of the company you are using please ?
>
> > > On Jul 6, 11:25 am, Speedbird  wrote:
>
> > > > In addition to that, are we talking about companies that support
> > > > web2py in the sense that they provide some sort of "control panel" for
> > > > it? - I mean I've been using my (same) hosting company for ages now,
> > > > though I have a "dedicated" VPS with them I do not have a control
> > > > panel of any sort, and I've been using web2py (and several other
> > > > python technologies (cgi and zope)) for quite a while without any
> > > > glitches other than the standard ones.
>
> > > > Julio
>
> > > > On Jul 6, 8:03 am, Jonathan Lundell  wrote:
>
> > > > > On Jul 6, 2009, at 7:54 AM, Yannick wrote:
>
> > > > > > Maybe it will be good to have in the web2py's website a section
> > where
> > > > > > we can see a list of all the good and serious hosting company that
> > > > > > support web2py it will be helpful... Me the web hosting I found
> > > > > > doesn't seems to be very professional and maybe you guys know a
> > better
> > > > > > and really serious web hosting company.
>
> > > > > What would an ideal web2py host look like? (Not so much
> > > > > professionalism issues, which would apply to anything, but web2py-
> > > > > specific issues.)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25821] Re: web2pyslices.com test feedback

2009-07-06 Thread mdipierro

yes, excellent job!

On Jul 6, 2:48 pm, waTR  wrote:
> That looks VERY sleek!!   Great job!!
>
> Any way to get the source-code to learn from it?
>
> On Jul 5, 9:46 pm, "mr.freeze"  wrote:
>
> > I am putting together a paste bin site for web2py called
> > web2pyslices.com.  It has ratings, markdown, favorites, comments and a
> > few other features.  The test site is up athttp://web2pyslices.com.
> > I would appreciate any feedback.  WARNING - the test database will
> > probably be dumped when/if the site is deployed so don't invest too
> > much time.  I just want to iron out as many bugs as possible before
> > deploying.  Hopefully this will be beneficial to the community.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25819] Re: How do we petition Google to mention web2py?

2009-07-06 Thread mdipierro

I understand what you are trying to say but when you say "no one is
using web2py" gives people the wrong impression and not the correct
one. It is not fair to member of this community who use web2py.

You should also assume that there are lots of people on this list who
are considering web2py but have not yet made their mind about it.

As you pointed out Pycon 2009 used web2py to register 800 users and
handled thousands of monetary transactions.
http://www.klasproducts.com/ uses web2py to sell hundreds of products
http://www.spinyc.com/ uses web2py in their intranet
http://www.whitepeaksoftware.com/  uses web2py for their web site
http://diarywiz.com/ is powered by web2py

There are just some of those we know about and choose to advertise
what they do.

Of course more people will come out eventually. As I said most of the
work is done on intranet apps.

There is no question that Django is more popular and Drupal is
probably much more popular than web2py. They have been around longer,
came first and had more time to build a community. Moreover Drupal is
a designed to build CMS therefore apps made with Drupal are naturally
publicly available.

I do not think discussion about how popular we are vs how popular they
are is healthy. Moreover despite what some people think I do not care
much about it. I would like the discussion to focus more on what we do
better (feature wise), what they do better, what can we do to improve
our features, what can we do to promote web2py features.

Some people are not interested in features as are only interested in
learning the system that will give them the highest chance of getting
hired. Some people are interested in features as a way to get the job
done better and quicker. I am working for this second class of users.
I am interested in building a community for these people.

Massimo



On Jul 6, 2:18 pm, Yarko Tymciurak  wrote:
> Hey weheh -
>
> On Mon, Jul 6, 2009 at 1:33 PM, weheh  wrote:
>
> > Hey, Massimo, what've you got against cats? ;^)
>
> ..
>
>
>
> > I just announced my first app, which has been used commercially now
> > for a few weeks and has made hundreds of paid-for reservations for the
> > club "SPiN New York". Talk about high profile, SPiN has been mentioned
> > in Conde Nast, People Magazine, Jimmy Fallon Late at Night, Good
> > Morning America, etc.
>
> I remember - I was just with a board member that week who was asking "is
> there something we can look at"; I clicked over to the site, and it was run
> in (I think it was) Ruby-on-Rails, and you explained just your piece, just
> the reservation piece...
>
> Now - I don't diminish your work, or that it is used - but I also don't have
> something I can give a board of directors and say "sure - look around this
> system, see if you like it's behavior" --- they might wind up looking for a
> RoR consultant!
>
> I looked at events:  that doesn't look like web2py;
> (it does show a version number that is only displayed in "show source"
> intentionally - it would be nice to have such a marker in webpy basic
> layout)
> I looked at membership doesn't look web2py either;
>
> Go look at their website. Susan Sarandon is one
>
> > of the backers. Not that she's very web saavy, but you can bet she's
> > conscious of keeping her image clean. Which means, she doesn't want
> > her website to crash.
>
> I looked around, but could not find anything that I could point a board to
> look around on their own to get to know web2py.
>
> I couldn't use this.
>
>
>
> > My web2py app was a ground-up implementation of a calendar-based
> > reservations system which is every bit as sophisticated as Google
> > calendar, with a GUI interface and a comprehensive api. It supports
> > all the "gnarly" functionality that Google claims as a reason why you
> > should use Google Cal and not build one yourself. (As a matter of
> > fact, it was a little gnarly, especially with the repeat events, but
> > web2py made it a lot easier to build IMO).
>
> Sounds perhaps like material for an article to a Python mag somewhere...
>
>
>
> > Listen. I'm not asking for Google to tell everyone to use web2py. I'm
> > just asking for Google to acknowledge web2py in the same breath as
> > Django on their "what is GAE" page. They don't have to endorse it.
> > Just say it works with GAE. For that matter, they should also mention
> > other frameworks that work with GAE. As I said before, I think if the
> > concensus here is that web2py works with GAE as well as Django does,
> > then pull the trigger and let's start a petition to get some
> > visibility and mention on the GAE page. I, for one, am 100% behind
> > building commercial-grade, heavy-lifting, production websites in
> > web2py. I may not be the world's most sophisticated web developer, but
> > it sure does the trick for me. As such, I want to see it thrive so
> > that my approach will survive.
>
> Good motivation.
>
> What I said is "I don't think they will - they use code-review publicly and
> inte

[web2py:25823] Re: _action='.'

2009-07-06 Thread Jonathan Lundell
On Jul 6, 2009, at 12:31 PM, Yarko Tymciurak wrote:

> _action value (in SQLForm) is what "action" in HTML FORM  will be  
> set to.
>
> It is a URI, so "." is relative to the current context.
>
> check out something like http://www.w3.org/TR/html401/interact/forms.html 
>  for more.

OK, thanks.

The problem with that, as I read the RFC, is that the "current  
context" means the current URL with everything to the right of the  
rightmost slash deleted, which isn't going to work very well for  
web2py URLs, if the intent is a self-reference (unless perhaps the  
current URL is to the default controller and/or function).

Here's why I'm asking: a missing or empty form action is invalid  
(x)html, and I'm looking for the most concise way of asking for a self- 
reference. action="." would work fine if the URL ended in a slash, but  
it does not.

The shortest self-reference I can see is: FORM( ...,  
_action=URL(r=request))

Is that right?

>
> On Mon, Jul 6, 2009 at 1:44 PM, Jonathan Lundell  
>  wrote:
>
> The example _action='.' appears in the manual, section 7.2 (SQLForm),
> page 168.
>
> What does that mean?
>
>



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25816] Re: web2pyslices.com test feedback

2009-07-06 Thread waTR

That looks VERY sleek!!   Great job!!

Any way to get the source-code to learn from it?





On Jul 5, 9:46 pm, "mr.freeze"  wrote:
> I am putting together a paste bin site for web2py called
> web2pyslices.com.  It has ratings, markdown, favorites, comments and a
> few other features.  The test site is up athttp://web2pyslices.com.
> I would appreciate any feedback.  WARNING - the test database will
> probably be dumped when/if the site is deployed so don't invest too
> much time.  I just want to iron out as many bugs as possible before
> deploying.  Hopefully this will be beneficial to the community.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25815] Locking vertical scrollbar ?

2009-07-06 Thread Piotr Banaszkiewicz

I think, that web editor in web2py shouldn't be your main code editor. It 
is really poor in comparison to other IDEs (Eclipse, NetBeans, or Geany, 
as Jason mentioned). For example, does it have autocompletion, or a 
debugger? No.

I also think, that the main point of using web editor (which doesn't work 
in all browsers!) is only correcting small typos. For other tasks it seems 
inconvenient.

Piotr.

Dnia poniedziałek 06 lipca 2009 o 20:42:07 Fauché JM napisał(a):
> I am talking of administrative interface of web2py .When looking to my
> code (models,controllers,views,...) it should be interesting having
> this option.Of course some idle or éditors,can do that "outside" ,it
> should be better "inside web2py"...
>
> Jean-Marc

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25814] Re: _action='.'

2009-07-06 Thread Yarko Tymciurak
_action value (in SQLForm) is what "action" in HTML FORM  will be set to.

It is a URI, so "." is relative to the current context.

check out something like
http://www.w3.org/TR/html401/interact/forms.htmlfor more.

On Mon, Jul 6, 2009 at 1:44 PM, Jonathan Lundell  wrote:

>
> The example _action='.' appears in the manual, section 7.2 (SQLForm),
> page 168.
>
> What does that mean?
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25813] Re: List of web hosting for Web2py

2009-07-06 Thread Yarko Tymciurak
I think your request is a good one:

-  A blog-like list of hosting where web2py is known to run, and what it
takes to setup a web2py site there.

I have an account on webfaction, and have moved others there.  They have a
writeup on how to get web2py deployed, and support you through it.

I _know_ there are others.  It would be good to have a list, so people have
something to start from when looking for themselves.

- Yarko

On Mon, Jul 6, 2009 at 11:26 AM, Speedbird  wrote:

>
> Replied. Thanks!
>
> On Jul 6, 9:08 am, Yannick  wrote:
> > Can I know the name of the company you are using please ?
> >
> > On Jul 6, 11:25 am, Speedbird  wrote:
> >
> > > In addition to that, are we talking about companies that support
> > > web2py in the sense that they provide some sort of "control panel" for
> > > it? - I mean I've been using my (same) hosting company for ages now,
> > > though I have a "dedicated" VPS with them I do not have a control
> > > panel of any sort, and I've been using web2py (and several other
> > > python technologies (cgi and zope)) for quite a while without any
> > > glitches other than the standard ones.
> >
> > > Julio
> >
> > > On Jul 6, 8:03 am, Jonathan Lundell  wrote:
> >
> > > > On Jul 6, 2009, at 7:54 AM, Yannick wrote:
> >
> > > > > Maybe it will be good to have in the web2py's website a section
> where
> > > > > we can see a list of all the good and serious hosting company that
> > > > > support web2py it will be helpful... Me the web hosting I found
> > > > > doesn't seems to be very professional and maybe you guys know a
> better
> > > > > and really serious web hosting company.
> >
> > > > What would an ideal web2py host look like? (Not so much
> > > > professionalism issues, which would apply to anything, but web2py-
> > > > specific issues.)
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25812] Re: How do we petition Google to mention web2py?

2009-07-06 Thread Yarko Tymciurak
Hey weheh -

On Mon, Jul 6, 2009 at 1:33 PM, weheh  wrote:

>
> Hey, Massimo, what've you got against cats? ;^)
>
..

>
> I just announced my first app, which has been used commercially now
> for a few weeks and has made hundreds of paid-for reservations for the
> club "SPiN New York". Talk about high profile, SPiN has been mentioned
> in Conde Nast, People Magazine, Jimmy Fallon Late at Night, Good
> Morning America, etc.


I remember - I was just with a board member that week who was asking "is
there something we can look at"; I clicked over to the site, and it was run
in (I think it was) Ruby-on-Rails, and you explained just your piece, just
the reservation piece...

Now - I don't diminish your work, or that it is used - but I also don't have
something I can give a board of directors and say "sure - look around this
system, see if you like it's behavior" --- they might wind up looking for a
RoR consultant!

I looked at events:  that doesn't look like web2py;
(it does show a version number that is only displayed in "show source"
intentionally - it would be nice to have such a marker in webpy basic
layout)
I looked at membership doesn't look web2py either;

Go look at their website. Susan Sarandon is one
> of the backers. Not that she's very web saavy, but you can bet she's
> conscious of keeping her image clean. Which means, she doesn't want
> her website to crash.


I looked around, but could not find anything that I could point a board to
look around on their own to get to know web2py.

I couldn't use this.


>
> My web2py app was a ground-up implementation of a calendar-based
> reservations system which is every bit as sophisticated as Google
> calendar, with a GUI interface and a comprehensive api. It supports
> all the "gnarly" functionality that Google claims as a reason why you
> should use Google Cal and not build one yourself. (As a matter of
> fact, it was a little gnarly, especially with the repeat events, but
> web2py made it a lot easier to build IMO).


Sounds perhaps like material for an article to a Python mag somewhere...

>
>
> Listen. I'm not asking for Google to tell everyone to use web2py. I'm
> just asking for Google to acknowledge web2py in the same breath as
> Django on their "what is GAE" page. They don't have to endorse it.
> Just say it works with GAE. For that matter, they should also mention
> other frameworks that work with GAE. As I said before, I think if the
> concensus here is that web2py works with GAE as well as Django does,
> then pull the trigger and let's start a petition to get some
> visibility and mention on the GAE page. I, for one, am 100% behind
> building commercial-grade, heavy-lifting, production websites in
> web2py. I may not be the world's most sophisticated web developer, but
> it sure does the trick for me. As such, I want to see it thrive so
> that my approach will survive.


Good motivation.

What I said is "I don't think they will - they use code-review publicly and
internally, gae+django;  heck, the Android project took reitveld (the
code-review project) and rewrote it in java for Android development use.
They don't see anything near that scale, and won't feel comfortable _saying_
that 'you can use web2py with our google stuff' because they want to see
what they would be associating with first.

Who can blame them?   Any small board of directors I've talked to wants the
same!

PyCon said "ok" to web2py for strength of Massimo's enthusiasm, and support
of 2-3 people who were behind it. It was a fight, but the final
determinant:  it was late, and they had no other viable choices before
them.  It worked out, so they were happy in the end.

Every board I've talked to is as risk averse.



> And to do such a petition takes almost no effort at all in the
> internet era.


As Massimo suggested: Mention you are working w/ web2py;  stop trying to
"control" if Google likes you or will talk about you; worry instead about
what you can do (you can control that).

If you are not willing to  see the realities I uncover before you,  then you
will net see them and you will not be able to address them.

Start building a portfolio you (we) can show others.  (and as Massimo so
correctly points out, that is not "fluff" popularity, etc although if
you build somthing that takes on as much as twitter or facebook, that
probably won't hurt - popularity that brings a large user base is, at least,
data!).

- Yarko

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25811] Re: How do we petition Google to mention web2py?

2009-07-06 Thread Yarko Tymciurak
Massimo -

Sounds good.

On Mon, Jul 6, 2009 at 8:51 AM, mdipierro  wrote:

>
> Yarko. Many more people than you know are using web2py.
>
> I know of companies who do and I know of government organizations who
> do, although I am not saying their names without their permission.


 While this is understandable for occaisional users, it makes little sense
that there is _no one_ to talk about.


> For various reason these users tend to use web2py do develop
> applications for internal use and not public web sites. Our users are
> naturally reserved about what they do. We pitch web2py as an
> Enterprise framework in fact.


If I - anyone - tries to sell someone, the first questions that come out are
something like this:

   - Who else uses this?  How much do they use this?
   - Is there enough users that if something happens to you, we will be able
   to find someone to maintain / update?
   - How widely is it used?  How much traffic has this seen?


>
> We should not confuse apples and oranges. Some frameworks are popular
> because they have been used to develop public blogs, wikies and things
> like that. While web2py, for example, has been used to develop a
> complex system for a major bank. If you read posts on this list you
> find people are using web2py to build systems for medical records and
> accounting systems.


You are not hearing me - I am not talking about populrity - I am talking
about something else.

E.g. - "Medical system I am not at liberty to disclose;  type of use:
records;  estimated data size:  over 10M records;  estimated user base:  >
1000 system uses;  frequency of use:  daily 24/7"  is a FAR sight different
than "people are developing for major medical system with web2py!  Isn't
that great?!"

The first I (you - anyone) can take to a client (assuming it is accompanied
by _some_ disclosable data, e.g. "City of Sao Paulo;
http://www.here_i_am_a_web2py_site.gov";);

the second is no more than so much talk.

>
>
> One of the most iPhone apps is called iFart. By that analogy
> popularity is not a measure of quality nor a measure of success.


I ask for data, concrete evidence, and you talk to me about popularity...
this (iFart) example is completely irrelevant here.



>
> It is good that web2py runs on the Google App Engine and I would like
> to see more applications but I am happier with one major bank a web2py
> app than 100 GAE apps to post pictures of cats.


Me too.  In fact, look at this page:

http://www.joomla.org/about-joomla.html

Notice "who uses Joomla"  (a php cms that is in my face at at least one
organization:  "Yarko look at this:  who uses web2py?  what can I show the
board of directors to compare? They are being told they should go with
Joomla" ---  *Get real: NO ONE is asking about popularity!!!)

*Notice the balance:  only ONE  "internal, we can't show you" in a sea of 9
sites.
Notice: while there are no statistics here, the _sense_ is:  "kinds of
uses".  Want to see that?  I particularly liked the Harvard site:
http://gsas.harvard.edu/

Click around it; hover over things; "feels" responsize.  It's a good "first
impression".

"Yarko - is there a web2py site like this we can look at with the Board of
Directors?"

Ummm- I'm trying to find something please just be patient with that
contract  Don't go to php just yet...



> I would be like Google to acknowledge web2py more on their site. For
> this to happen the community has to speak up. One way to do it is,
> when asking questions on their list, make clear that we are using
> web2py.


That (mention what you are using, why you are asking) is at least a sane
suggestion.

Doesn't address my issue in the least, but at least it makes some sense.


> Massimo
>

Yarko

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:/] Re: xml (important)

2009-07-06 Thread pk



it still doesn`t work.
here the routes.py

#begin
routes_in=(('/2busy/default/table_as_xml/$projectmember\.html','/myapp/
default/table_as_xml\.xml/$projectmember'),)
routes_out=(('/2busy/default/table_as_xml\.html/$projectmember','/
myapp/default/table_as_xml/$projectmember\.html'),)
#end


http://127.0.0.1:8000/2busy/default/table_as_xml/projectmember.xml ->
do not work
http://127.0.0.1:8000/2busy/default/table_as_xml/projectmember -> work


On 6 Jul., 20:20, mdipierro  wrote:
> P.S. This is a very well established feature. It is just a matter of
> getting the regex right.
> I can help you but you may want to read about it in the book. It is
> well documented.
>
> Massimo
>
> On Jul 6, 1:09 pm, pk  wrote:
>
> > it still doesn`t work
>
> > On 6 Jul., 19:59, mdipierro  wrote:
>
> > > one more try
> > > #begin
> > > routes_in=(('/myapp/default/table_as_xml/$user\.html','/myapp/default/
> > > table_as_xml\.xml/$user'),)
> > > routes_out=(('/myapp/default/table_as_xml\.html/$user','/myapp/default/
> > > table_as_xml/$user\.html'),)
> > > #end
>
> > > On Jul 6, 11:57 am, pk  wrote:
>
> > > >http://127.0.0.1:8000/2busy/default/table_as_xml/projectmember
> > > > if i try this, this works fine
> > > > but 
> > > > still:http://127.0.0.1:8000/2busy/default/table_as_xml/projectmember.xml
> > > > throw a ticket
>
> > > > On 6 Jul., 18:54, pk  wrote:
>
> > > > > i also get this ticket
> > > > > Traceback (most recent call last):
> > > > >   File "gluon/restricted.py", line 107, in restricted
> > > > >   File "/Applications/web2py/web2py1.64.4/web2py.app/Contents/
> > > > > Resources/applications/2busy/controllers/default.py", line 55, in
> > > > > 
> > > > >   File "gluon/globals.py", line 100, in 
> > > > >   File "/Applications/web2py/web2py1.64.4/web2py.app/Contents/
> > > > > Resources/applications/2busy/controllers/default.py", line 53, in
> > > > > table_as_xml
> > > > >   File "gluon/sql.py", line 519, in __getitem__
> > > > > KeyError: 'projectmember.xml'
>
> > > > > On 6 Jul., 18:49, mdipierro  wrote:
>
> > > > > > my mistake. try this
>
> > > > > > #begin
> > > > > > routes_in=(('/myapp/default/table_as_xml/$user.html','/myapp/default/
> > > > > > table_as_xml.xml/$user'),)
> > > > > > routes_out=(('/myapp/default/table_as_xml.html/$user','/myapp/default/
> > > > > > table_as_xml/$user.html'),)
> > > > > > #end
>
> > > > > > On Jul 6, 11:40 am, pk  wrote:
>
> > > > > > > ok but now i get this errormessage
> > > > > > > Traceback (most recent call last):
> > > > > > >   File "gluon/restricted.py", line 107, in restricted
> > > > > > >   File "/Applications/web2py/web2py1.64.4/web2py.app/Contents/
> > > > > > > Resources/applications/2busy/controllers/default.py", line 55, in
> > > > > > > 
> > > > > > >   File "gluon/globals.py", line 100, in 
> > > > > > >   File "/Applications/web2py/web2py1.64.4/web2py.app/Contents/
> > > > > > > Resources/applications/2busy/controllers/default.py", line 53, in
> > > > > > > table_as_xml
> > > > > > >   File "gluon/sql.py", line 519, in __getitem__
> > > > > > > KeyError: 'projectmember.xml'
>
> > > > > > > i have create route.py in the right directory.
> > > > > > > and copied the code in it, i only changed user into projectmember
>
> > > > > > > On 6 Jul., 18:19, mdipierro  wrote:
>
> > > > > > > > From a OSX terminal (which you can open from 
> > > > > > > > Application/Utilities) go
> > > > > > > > into
>
> > > > > > > > web2py.app/Contents/Resources/
> > > > > > > > and create and edit route.py. Place this text in it:
>
> > > > > > > > #begin
> > > > > > > > routes_in=(('/myapp/default/table_as_xml/user.html','/myapp/default/
> > > > > > > > table_as_xml.xml/user'),)
> > > > > > > > routes_out=(('/myapp/default/table_as_xml.html/user','/myapp/default/
> > > > > > > > table_as_xml/user.html'),)
> > > > > > > > #end
>
> > > > > > > > that's all.
>
> > > > > > > > On Jul 6, 11:14 am, pk  wrote:
>
> > > > > > > > > can you explain in more detailed. what i have to do to change 
> > > > > > > > > the
> > > > > > > > > routes.py
>
> > > > > > > > > On 6 Jul., 18:11, pk  wrote:
>
> > > > > > > > > > ok thanks but i dont`t find the routes.example.py
> > > > > > > > > > i use a mac
>
> > > > > > > > > > On 6 Jul., 17:55, Jonathan Lundell  
> > > > > > > > > > wrote:
>
> > > > > > > > > > > On Jul 6, 2009, at 8:50 AM, Fran wrote:
>
> > > > > > > > > > > > On Jul 6, 4:47 pm, pk 
> > > > > > > > > > > >  wrote:
> > > > > > > > > > > >> where can i find routes.py?
>
> > > > > > > > > > > > cp web2py\routes.example.py web2py\routes.py
>
> > > > > > > > > > > And section 4.15 of the manual.
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~

[web2py:25810] Re: How do we petition Google to mention web2py?

2009-07-06 Thread mdipierro

weheh. You think you absolutely have a point.

here are some other public apps that use web2py (although as I said
most web2py apps are not designed to be public):

http://www.appliedstacks.com/NewestFirst/web2py

Massimo

On Jul 6, 1:33 pm, weheh  wrote:
> Hey, Massimo, what've you got against cats? ;^)
>
> And Yarko says:
> """Your TG story is another thing, but the _fact_ remains (and I've
> had this
> private conversation quite recently with you) that solid, well
> designed,
> non-trivial, and commercially in-use applications written in web2py
> are
> what?  not advertised?  non-existent? """
>
> I just announced my first app, which has been used commercially now
> for a few weeks and has made hundreds of paid-for reservations for the
> club "SPiN New York". Talk about high profile, SPiN has been mentioned
> in Conde Nast, People Magazine, Jimmy Fallon Late at Night, Good
> Morning America, etc. Go look at their website. Susan Sarandon is one
> of the backers. Not that she's very web saavy, but you can bet she's
> conscious of keeping her image clean. Which means, she doesn't want
> her website to crash.
>
> My web2py app was a ground-up implementation of a calendar-based
> reservations system which is every bit as sophisticated as Google
> calendar, with a GUI interface and a comprehensive api. It supports
> all the "gnarly" functionality that Google claims as a reason why you
> should use Google Cal and not build one yourself. (As a matter of
> fact, it was a little gnarly, especially with the repeat events, but
> web2py made it a lot easier to build IMO).
>
> Listen. I'm not asking for Google to tell everyone to use web2py. I'm
> just asking for Google to acknowledge web2py in the same breath as
> Django on their "what is GAE" page. They don't have to endorse it.
> Just say it works with GAE. For that matter, they should also mention
> other frameworks that work with GAE. As I said before, I think if the
> concensus here is that web2py works with GAE as well as Django does,
> then pull the trigger and let's start a petition to get some
> visibility and mention on the GAE page. I, for one, am 100% behind
> building commercial-grade, heavy-lifting, production websites in
> web2py. I may not be the world's most sophisticated web developer, but
> it sure does the trick for me. As such, I want to see it thrive so
> that my approach will survive.
>
> And to do such a petition takes almost no effort at all in the
> internet era.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25809] Re: auth and multiple controllers

2009-07-06 Thread mdipierro

No. You should define the 'user; action only one (for example in
default.py)
But, you also need the following in the model

auth.settings.login_url = URL(r=request,c='default',f='user/login')
auth.settings.on_failed_authorization = URL
(r=request,c='default',f='user/on_failed_authorization')

so all models know where to find it.


On Jul 6, 1:32 pm, Jose  wrote:
> On 6 jul, 18:16, mdipierro  wrote:> Not sure I 
> understand. You need only one
>
> > > def user ():
> > >     return dict(form=auth())
>
> > If you need to decorate lots of functions with @auth.requires_login(),
> > you can do
>
> > if not request.function in ['index','other_allowed_function'] and not
> > auth.is_logged_in():
> >     redirect(URL(r=request,f='user/login'))
>
> I refer to that if I define:
>
> def user ():
>     return dict(form=auth())
>
> in default.py, I can decorate only the functions of default.py. If I
> need to decorate a function in another_controller.py, I cannot do it.
> I must define again:
>
> def user ():
>     return dict(form=auth())
>
> in another_controller.py
>
> Jose
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25808] _action='.'

2009-07-06 Thread Jonathan Lundell

The example _action='.' appears in the manual, section 7.2 (SQLForm),  
page 168.

What does that mean?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25807] Re: Locking vertical scrollbar ?

2009-07-06 Thread Fauché JM

I am talking of administrative interface of web2py .When looking to my
code (models,controllers,views,...) it should be interesting having
this option.Of course some idle or éditors,can do that "outside" ,it
should be better "inside web2py"...

Jean-Marc
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25805] Re: Locking vertical scrollbar ?

2009-07-06 Thread Jason Brower

Little hack I do that most editors have...
If you want to see your last change:
Cntrl-Z for undo... that will jump your cursor there...
the Cntrl-Y is ussually redo, and that will put back your change with
your cursor where you want it.
I use geany, it has a nice bookmarking feature.  I use it at work,
school, and home.  All python and HTML stuff.


On Mon, 2009-07-06 at 17:37 +0200, Piotr Banaszkiewicz wrote:
> Hi,
> 
> Are you talking about some IDE?
> 
> In many IDEs you have something like Outline (Eclipse + PyDev) or 
> Navigator (NetBeans + Python plugin) which displays classes, 
> functions, often with variables in them. By doubleclicking on some 
> name (let's say, class Client) you can quickly go to its definition in file.
> It's pretty useful when file is long.
> 
> Another way of copeing with the problem you mentioned is bookmarks 
> mechanism I saw in some IDE (or just editor, now I can't remember). 
> It's just like putting breakpoint on some line, but instead of 
> breakpoint you put bookmark which you can quickly go to.
> 
> Regards,
> Piotr.
> 
> PS If I misunderstood you, please, expound.
> 
> Dnia poniedziałek 06 lipca 2009 o 16:32:03 Fauché JM napisał(a):
> > Hello,
> > when you have hundreds lines of code and you are working on one
> > function ,when testing (index) and comming back to code, you have 
> to
> > scroll to ...the last place you were working on ! (so loosing few
> > precious time).
> > I know you can find a line or word in text editor but you have to
> > enter a word or a name ..(precious time...)
> > So whe can imagine in editor a locking/unlocking button witch 
> permit
> > to comme back where you are in text after testing , or directly in "
> > standart " it come back to the last position.
> >
> > Jean-Marc
> 
> > 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25804] Re: Trouble with Recaptcha

2009-07-06 Thread weheh

Thanks, Kuba. I was wondering about that and where to get the keys.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25803] Re: How do we petition Google to mention web2py?

2009-07-06 Thread weheh

Hey, Massimo, what've you got against cats? ;^)

And Yarko says:
"""Your TG story is another thing, but the _fact_ remains (and I've
had this
private conversation quite recently with you) that solid, well
designed,
non-trivial, and commercially in-use applications written in web2py
are
what?  not advertised?  non-existent? """

I just announced my first app, which has been used commercially now
for a few weeks and has made hundreds of paid-for reservations for the
club "SPiN New York". Talk about high profile, SPiN has been mentioned
in Conde Nast, People Magazine, Jimmy Fallon Late at Night, Good
Morning America, etc. Go look at their website. Susan Sarandon is one
of the backers. Not that she's very web saavy, but you can bet she's
conscious of keeping her image clean. Which means, she doesn't want
her website to crash.

My web2py app was a ground-up implementation of a calendar-based
reservations system which is every bit as sophisticated as Google
calendar, with a GUI interface and a comprehensive api. It supports
all the "gnarly" functionality that Google claims as a reason why you
should use Google Cal and not build one yourself. (As a matter of
fact, it was a little gnarly, especially with the repeat events, but
web2py made it a lot easier to build IMO).

Listen. I'm not asking for Google to tell everyone to use web2py. I'm
just asking for Google to acknowledge web2py in the same breath as
Django on their "what is GAE" page. They don't have to endorse it.
Just say it works with GAE. For that matter, they should also mention
other frameworks that work with GAE. As I said before, I think if the
concensus here is that web2py works with GAE as well as Django does,
then pull the trigger and let's start a petition to get some
visibility and mention on the GAE page. I, for one, am 100% behind
building commercial-grade, heavy-lifting, production websites in
web2py. I may not be the world's most sophisticated web developer, but
it sure does the trick for me. As such, I want to see it thrive so
that my approach will survive.

And to do such a petition takes almost no effort at all in the
internet era.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25802] Re: auth and multiple controllers

2009-07-06 Thread Jose



On 6 jul, 18:16, mdipierro  wrote:
> Not sure I understand. You need only one
>
> > def user ():
> >     return dict(form=auth())
>
> If you need to decorate lots of functions with @auth.requires_login(),
> you can do
>
> if not request.function in ['index','other_allowed_function'] and not
> auth.is_logged_in():
>     redirect(URL(r=request,f='user/login'))
>
I refer to that if I define:


def user ():
return dict(form=auth())


in default.py, I can decorate only the functions of default.py. If I
need to decorate a function in another_controller.py, I cannot do it.
I must define again:

def user ():
return dict(form=auth())

in another_controller.py

Jose
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25801] Re: xml (important)

2009-07-06 Thread mdipierro

P.S. This is a very well established feature. It is just a matter of
getting the regex right.
I can help you but you may want to read about it in the book. It is
well documented.

Massimo

On Jul 6, 1:09 pm, pk  wrote:
> it still doesn`t work
>
> On 6 Jul., 19:59, mdipierro  wrote:
>
> > one more try
> > #begin
> > routes_in=(('/myapp/default/table_as_xml/$user\.html','/myapp/default/
> > table_as_xml\.xml/$user'),)
> > routes_out=(('/myapp/default/table_as_xml\.html/$user','/myapp/default/
> > table_as_xml/$user\.html'),)
> > #end
>
> > On Jul 6, 11:57 am, pk  wrote:
>
> > >http://127.0.0.1:8000/2busy/default/table_as_xml/projectmember
> > > if i try this, this works fine
> > > but 
> > > still:http://127.0.0.1:8000/2busy/default/table_as_xml/projectmember.xml
> > > throw a ticket
>
> > > On 6 Jul., 18:54, pk  wrote:
>
> > > > i also get this ticket
> > > > Traceback (most recent call last):
> > > >   File "gluon/restricted.py", line 107, in restricted
> > > >   File "/Applications/web2py/web2py1.64.4/web2py.app/Contents/
> > > > Resources/applications/2busy/controllers/default.py", line 55, in
> > > > 
> > > >   File "gluon/globals.py", line 100, in 
> > > >   File "/Applications/web2py/web2py1.64.4/web2py.app/Contents/
> > > > Resources/applications/2busy/controllers/default.py", line 53, in
> > > > table_as_xml
> > > >   File "gluon/sql.py", line 519, in __getitem__
> > > > KeyError: 'projectmember.xml'
>
> > > > On 6 Jul., 18:49, mdipierro  wrote:
>
> > > > > my mistake. try this
>
> > > > > #begin
> > > > > routes_in=(('/myapp/default/table_as_xml/$user.html','/myapp/default/
> > > > > table_as_xml.xml/$user'),)
> > > > > routes_out=(('/myapp/default/table_as_xml.html/$user','/myapp/default/
> > > > > table_as_xml/$user.html'),)
> > > > > #end
>
> > > > > On Jul 6, 11:40 am, pk  wrote:
>
> > > > > > ok but now i get this errormessage
> > > > > > Traceback (most recent call last):
> > > > > >   File "gluon/restricted.py", line 107, in restricted
> > > > > >   File "/Applications/web2py/web2py1.64.4/web2py.app/Contents/
> > > > > > Resources/applications/2busy/controllers/default.py", line 55, in
> > > > > > 
> > > > > >   File "gluon/globals.py", line 100, in 
> > > > > >   File "/Applications/web2py/web2py1.64.4/web2py.app/Contents/
> > > > > > Resources/applications/2busy/controllers/default.py", line 53, in
> > > > > > table_as_xml
> > > > > >   File "gluon/sql.py", line 519, in __getitem__
> > > > > > KeyError: 'projectmember.xml'
>
> > > > > > i have create route.py in the right directory.
> > > > > > and copied the code in it, i only changed user into projectmember
>
> > > > > > On 6 Jul., 18:19, mdipierro  wrote:
>
> > > > > > > From a OSX terminal (which you can open from 
> > > > > > > Application/Utilities) go
> > > > > > > into
>
> > > > > > > web2py.app/Contents/Resources/
> > > > > > > and create and edit route.py. Place this text in it:
>
> > > > > > > #begin
> > > > > > > routes_in=(('/myapp/default/table_as_xml/user.html','/myapp/default/
> > > > > > > table_as_xml.xml/user'),)
> > > > > > > routes_out=(('/myapp/default/table_as_xml.html/user','/myapp/default/
> > > > > > > table_as_xml/user.html'),)
> > > > > > > #end
>
> > > > > > > that's all.
>
> > > > > > > On Jul 6, 11:14 am, pk  wrote:
>
> > > > > > > > can you explain in more detailed. what i have to do to change 
> > > > > > > > the
> > > > > > > > routes.py
>
> > > > > > > > On 6 Jul., 18:11, pk  wrote:
>
> > > > > > > > > ok thanks but i dont`t find the routes.example.py
> > > > > > > > > i use a mac
>
> > > > > > > > > On 6 Jul., 17:55, Jonathan Lundell  wrote:
>
> > > > > > > > > > On Jul 6, 2009, at 8:50 AM, Fran wrote:
>
> > > > > > > > > > > On Jul 6, 4:47 pm, pk  
> > > > > > > > > > > wrote:
> > > > > > > > > > >> where can i find routes.py?
>
> > > > > > > > > > > cp web2py\routes.example.py web2py\routes.py
>
> > > > > > > > > > And section 4.15 of the manual.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25800] Re: xml (important)

2009-07-06 Thread mdipierro

Did you restart web2py? If yes, and still does not work, please post
you routes.py, and a full path that does work

On Jul 6, 1:09 pm, pk  wrote:
> it still doesn`t work
>
> On 6 Jul., 19:59, mdipierro  wrote:
>
> > one more try
> > #begin
> > routes_in=(('/myapp/default/table_as_xml/$user\.html','/myapp/default/
> > table_as_xml\.xml/$user'),)
> > routes_out=(('/myapp/default/table_as_xml\.html/$user','/myapp/default/
> > table_as_xml/$user\.html'),)
> > #end
>
> > On Jul 6, 11:57 am, pk  wrote:
>
> > >http://127.0.0.1:8000/2busy/default/table_as_xml/projectmember
> > > if i try this, this works fine
> > > but 
> > > still:http://127.0.0.1:8000/2busy/default/table_as_xml/projectmember.xml
> > > throw a ticket
>
> > > On 6 Jul., 18:54, pk  wrote:
>
> > > > i also get this ticket
> > > > Traceback (most recent call last):
> > > >   File "gluon/restricted.py", line 107, in restricted
> > > >   File "/Applications/web2py/web2py1.64.4/web2py.app/Contents/
> > > > Resources/applications/2busy/controllers/default.py", line 55, in
> > > > 
> > > >   File "gluon/globals.py", line 100, in 
> > > >   File "/Applications/web2py/web2py1.64.4/web2py.app/Contents/
> > > > Resources/applications/2busy/controllers/default.py", line 53, in
> > > > table_as_xml
> > > >   File "gluon/sql.py", line 519, in __getitem__
> > > > KeyError: 'projectmember.xml'
>
> > > > On 6 Jul., 18:49, mdipierro  wrote:
>
> > > > > my mistake. try this
>
> > > > > #begin
> > > > > routes_in=(('/myapp/default/table_as_xml/$user.html','/myapp/default/
> > > > > table_as_xml.xml/$user'),)
> > > > > routes_out=(('/myapp/default/table_as_xml.html/$user','/myapp/default/
> > > > > table_as_xml/$user.html'),)
> > > > > #end
>
> > > > > On Jul 6, 11:40 am, pk  wrote:
>
> > > > > > ok but now i get this errormessage
> > > > > > Traceback (most recent call last):
> > > > > >   File "gluon/restricted.py", line 107, in restricted
> > > > > >   File "/Applications/web2py/web2py1.64.4/web2py.app/Contents/
> > > > > > Resources/applications/2busy/controllers/default.py", line 55, in
> > > > > > 
> > > > > >   File "gluon/globals.py", line 100, in 
> > > > > >   File "/Applications/web2py/web2py1.64.4/web2py.app/Contents/
> > > > > > Resources/applications/2busy/controllers/default.py", line 53, in
> > > > > > table_as_xml
> > > > > >   File "gluon/sql.py", line 519, in __getitem__
> > > > > > KeyError: 'projectmember.xml'
>
> > > > > > i have create route.py in the right directory.
> > > > > > and copied the code in it, i only changed user into projectmember
>
> > > > > > On 6 Jul., 18:19, mdipierro  wrote:
>
> > > > > > > From a OSX terminal (which you can open from 
> > > > > > > Application/Utilities) go
> > > > > > > into
>
> > > > > > > web2py.app/Contents/Resources/
> > > > > > > and create and edit route.py. Place this text in it:
>
> > > > > > > #begin
> > > > > > > routes_in=(('/myapp/default/table_as_xml/user.html','/myapp/default/
> > > > > > > table_as_xml.xml/user'),)
> > > > > > > routes_out=(('/myapp/default/table_as_xml.html/user','/myapp/default/
> > > > > > > table_as_xml/user.html'),)
> > > > > > > #end
>
> > > > > > > that's all.
>
> > > > > > > On Jul 6, 11:14 am, pk  wrote:
>
> > > > > > > > can you explain in more detailed. what i have to do to change 
> > > > > > > > the
> > > > > > > > routes.py
>
> > > > > > > > On 6 Jul., 18:11, pk  wrote:
>
> > > > > > > > > ok thanks but i dont`t find the routes.example.py
> > > > > > > > > i use a mac
>
> > > > > > > > > On 6 Jul., 17:55, Jonathan Lundell  wrote:
>
> > > > > > > > > > On Jul 6, 2009, at 8:50 AM, Fran wrote:
>
> > > > > > > > > > > On Jul 6, 4:47 pm, pk  
> > > > > > > > > > > wrote:
> > > > > > > > > > >> where can i find routes.py?
>
> > > > > > > > > > > cp web2py\routes.example.py web2py\routes.py
>
> > > > > > > > > > And section 4.15 of the manual.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25799] Re: auth and multiple controllers

2009-07-06 Thread mdipierro

Not sure I understand. You need only one

> def user ():
> return dict(form=auth())

If you need to decorate lots of functions with @auth.requires_login(),
you can do

if not request.function in ['index','other_allowed_function'] and not
auth.is_logged_in():
redirect(URL(r=request,f='user/login'))


On Jul 6, 12:59 pm, Jose  wrote:
> How I use the decorators of auth in multiple controllers without
> having to declare in every controller:
>
> def user ():
>     return dict(form=auth())
>
> Though to do it is troublesome, also I must duplicate the view "user".
>
> I imagine that there must be a simpler way.
>
> Regards
> Jose
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:/] Re: xml (important)

2009-07-06 Thread pk

it still doesn`t work

On 6 Jul., 19:59, mdipierro  wrote:
> one more try
> #begin
> routes_in=(('/myapp/default/table_as_xml/$user\.html','/myapp/default/
> table_as_xml\.xml/$user'),)
> routes_out=(('/myapp/default/table_as_xml\.html/$user','/myapp/default/
> table_as_xml/$user\.html'),)
> #end
>
> On Jul 6, 11:57 am, pk  wrote:
>
> >http://127.0.0.1:8000/2busy/default/table_as_xml/projectmember
> > if i try this, this works fine
> > but still:http://127.0.0.1:8000/2busy/default/table_as_xml/projectmember.xml
> > throw a ticket
>
> > On 6 Jul., 18:54, pk  wrote:
>
> > > i also get this ticket
> > > Traceback (most recent call last):
> > >   File "gluon/restricted.py", line 107, in restricted
> > >   File "/Applications/web2py/web2py1.64.4/web2py.app/Contents/
> > > Resources/applications/2busy/controllers/default.py", line 55, in
> > > 
> > >   File "gluon/globals.py", line 100, in 
> > >   File "/Applications/web2py/web2py1.64.4/web2py.app/Contents/
> > > Resources/applications/2busy/controllers/default.py", line 53, in
> > > table_as_xml
> > >   File "gluon/sql.py", line 519, in __getitem__
> > > KeyError: 'projectmember.xml'
>
> > > On 6 Jul., 18:49, mdipierro  wrote:
>
> > > > my mistake. try this
>
> > > > #begin
> > > > routes_in=(('/myapp/default/table_as_xml/$user.html','/myapp/default/
> > > > table_as_xml.xml/$user'),)
> > > > routes_out=(('/myapp/default/table_as_xml.html/$user','/myapp/default/
> > > > table_as_xml/$user.html'),)
> > > > #end
>
> > > > On Jul 6, 11:40 am, pk  wrote:
>
> > > > > ok but now i get this errormessage
> > > > > Traceback (most recent call last):
> > > > >   File "gluon/restricted.py", line 107, in restricted
> > > > >   File "/Applications/web2py/web2py1.64.4/web2py.app/Contents/
> > > > > Resources/applications/2busy/controllers/default.py", line 55, in
> > > > > 
> > > > >   File "gluon/globals.py", line 100, in 
> > > > >   File "/Applications/web2py/web2py1.64.4/web2py.app/Contents/
> > > > > Resources/applications/2busy/controllers/default.py", line 53, in
> > > > > table_as_xml
> > > > >   File "gluon/sql.py", line 519, in __getitem__
> > > > > KeyError: 'projectmember.xml'
>
> > > > > i have create route.py in the right directory.
> > > > > and copied the code in it, i only changed user into projectmember
>
> > > > > On 6 Jul., 18:19, mdipierro  wrote:
>
> > > > > > From a OSX terminal (which you can open from Application/Utilities) 
> > > > > > go
> > > > > > into
>
> > > > > > web2py.app/Contents/Resources/
> > > > > > and create and edit route.py. Place this text in it:
>
> > > > > > #begin
> > > > > > routes_in=(('/myapp/default/table_as_xml/user.html','/myapp/default/
> > > > > > table_as_xml.xml/user'),)
> > > > > > routes_out=(('/myapp/default/table_as_xml.html/user','/myapp/default/
> > > > > > table_as_xml/user.html'),)
> > > > > > #end
>
> > > > > > that's all.
>
> > > > > > On Jul 6, 11:14 am, pk  wrote:
>
> > > > > > > can you explain in more detailed. what i have to do to change the
> > > > > > > routes.py
>
> > > > > > > On 6 Jul., 18:11, pk  wrote:
>
> > > > > > > > ok thanks but i dont`t find the routes.example.py
> > > > > > > > i use a mac
>
> > > > > > > > On 6 Jul., 17:55, Jonathan Lundell  wrote:
>
> > > > > > > > > On Jul 6, 2009, at 8:50 AM, Fran wrote:
>
> > > > > > > > > > On Jul 6, 4:47 pm, pk  
> > > > > > > > > > wrote:
> > > > > > > > > >> where can i find routes.py?
>
> > > > > > > > > > cp web2py\routes.example.py web2py\routes.py
>
> > > > > > > > > And section 4.15 of the manual.
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25797] auth and multiple controllers

2009-07-06 Thread Jose

How I use the decorators of auth in multiple controllers without
having to declare in every controller:



def user ():
return dict(form=auth())

Though to do it is troublesome, also I must duplicate the view "user".



I imagine that there must be a simpler way.



Regards
Jose
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25796] Re: xml (important)

2009-07-06 Thread mdipierro

one more try
#begin
routes_in=(('/myapp/default/table_as_xml/$user\.html','/myapp/default/
table_as_xml\.xml/$user'),)
routes_out=(('/myapp/default/table_as_xml\.html/$user','/myapp/default/
table_as_xml/$user\.html'),)
#end

On Jul 6, 11:57 am, pk  wrote:
> http://127.0.0.1:8000/2busy/default/table_as_xml/projectmember
> if i try this, this works fine
> but still:http://127.0.0.1:8000/2busy/default/table_as_xml/projectmember.xml
> throw a ticket
>
> On 6 Jul., 18:54, pk  wrote:
>
> > i also get this ticket
> > Traceback (most recent call last):
> >   File "gluon/restricted.py", line 107, in restricted
> >   File "/Applications/web2py/web2py1.64.4/web2py.app/Contents/
> > Resources/applications/2busy/controllers/default.py", line 55, in
> > 
> >   File "gluon/globals.py", line 100, in 
> >   File "/Applications/web2py/web2py1.64.4/web2py.app/Contents/
> > Resources/applications/2busy/controllers/default.py", line 53, in
> > table_as_xml
> >   File "gluon/sql.py", line 519, in __getitem__
> > KeyError: 'projectmember.xml'
>
> > On 6 Jul., 18:49, mdipierro  wrote:
>
> > > my mistake. try this
>
> > > #begin
> > > routes_in=(('/myapp/default/table_as_xml/$user.html','/myapp/default/
> > > table_as_xml.xml/$user'),)
> > > routes_out=(('/myapp/default/table_as_xml.html/$user','/myapp/default/
> > > table_as_xml/$user.html'),)
> > > #end
>
> > > On Jul 6, 11:40 am, pk  wrote:
>
> > > > ok but now i get this errormessage
> > > > Traceback (most recent call last):
> > > >   File "gluon/restricted.py", line 107, in restricted
> > > >   File "/Applications/web2py/web2py1.64.4/web2py.app/Contents/
> > > > Resources/applications/2busy/controllers/default.py", line 55, in
> > > > 
> > > >   File "gluon/globals.py", line 100, in 
> > > >   File "/Applications/web2py/web2py1.64.4/web2py.app/Contents/
> > > > Resources/applications/2busy/controllers/default.py", line 53, in
> > > > table_as_xml
> > > >   File "gluon/sql.py", line 519, in __getitem__
> > > > KeyError: 'projectmember.xml'
>
> > > > i have create route.py in the right directory.
> > > > and copied the code in it, i only changed user into projectmember
>
> > > > On 6 Jul., 18:19, mdipierro  wrote:
>
> > > > > From a OSX terminal (which you can open from Application/Utilities) go
> > > > > into
>
> > > > > web2py.app/Contents/Resources/
> > > > > and create and edit route.py. Place this text in it:
>
> > > > > #begin
> > > > > routes_in=(('/myapp/default/table_as_xml/user.html','/myapp/default/
> > > > > table_as_xml.xml/user'),)
> > > > > routes_out=(('/myapp/default/table_as_xml.html/user','/myapp/default/
> > > > > table_as_xml/user.html'),)
> > > > > #end
>
> > > > > that's all.
>
> > > > > On Jul 6, 11:14 am, pk  wrote:
>
> > > > > > can you explain in more detailed. what i have to do to change the
> > > > > > routes.py
>
> > > > > > On 6 Jul., 18:11, pk  wrote:
>
> > > > > > > ok thanks but i dont`t find the routes.example.py
> > > > > > > i use a mac
>
> > > > > > > On 6 Jul., 17:55, Jonathan Lundell  wrote:
>
> > > > > > > > On Jul 6, 2009, at 8:50 AM, Fran wrote:
>
> > > > > > > > > On Jul 6, 4:47 pm, pk  
> > > > > > > > > wrote:
> > > > > > > > >> where can i find routes.py?
>
> > > > > > > > > cp web2py\routes.example.py web2py\routes.py
>
> > > > > > > > And section 4.15 of the manual.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25795] Re: xml (important)

2009-07-06 Thread pk

http://127.0.0.1:8000/2busy/default/table_as_xml/projectmember
if i try this, this works fine
but still:
http://127.0.0.1:8000/2busy/default/table_as_xml/projectmember.xml
throw a ticket





On 6 Jul., 18:54, pk  wrote:
> i also get this ticket
> Traceback (most recent call last):
>   File "gluon/restricted.py", line 107, in restricted
>   File "/Applications/web2py/web2py1.64.4/web2py.app/Contents/
> Resources/applications/2busy/controllers/default.py", line 55, in
> 
>   File "gluon/globals.py", line 100, in 
>   File "/Applications/web2py/web2py1.64.4/web2py.app/Contents/
> Resources/applications/2busy/controllers/default.py", line 53, in
> table_as_xml
>   File "gluon/sql.py", line 519, in __getitem__
> KeyError: 'projectmember.xml'
>
> On 6 Jul., 18:49, mdipierro  wrote:
>
> > my mistake. try this
>
> > #begin
> > routes_in=(('/myapp/default/table_as_xml/$user.html','/myapp/default/
> > table_as_xml.xml/$user'),)
> > routes_out=(('/myapp/default/table_as_xml.html/$user','/myapp/default/
> > table_as_xml/$user.html'),)
> > #end
>
> > On Jul 6, 11:40 am, pk  wrote:
>
> > > ok but now i get this errormessage
> > > Traceback (most recent call last):
> > >   File "gluon/restricted.py", line 107, in restricted
> > >   File "/Applications/web2py/web2py1.64.4/web2py.app/Contents/
> > > Resources/applications/2busy/controllers/default.py", line 55, in
> > > 
> > >   File "gluon/globals.py", line 100, in 
> > >   File "/Applications/web2py/web2py1.64.4/web2py.app/Contents/
> > > Resources/applications/2busy/controllers/default.py", line 53, in
> > > table_as_xml
> > >   File "gluon/sql.py", line 519, in __getitem__
> > > KeyError: 'projectmember.xml'
>
> > > i have create route.py in the right directory.
> > > and copied the code in it, i only changed user into projectmember
>
> > > On 6 Jul., 18:19, mdipierro  wrote:
>
> > > > From a OSX terminal (which you can open from Application/Utilities) go
> > > > into
>
> > > > web2py.app/Contents/Resources/
> > > > and create and edit route.py. Place this text in it:
>
> > > > #begin
> > > > routes_in=(('/myapp/default/table_as_xml/user.html','/myapp/default/
> > > > table_as_xml.xml/user'),)
> > > > routes_out=(('/myapp/default/table_as_xml.html/user','/myapp/default/
> > > > table_as_xml/user.html'),)
> > > > #end
>
> > > > that's all.
>
> > > > On Jul 6, 11:14 am, pk  wrote:
>
> > > > > can you explain in more detailed. what i have to do to change the
> > > > > routes.py
>
> > > > > On 6 Jul., 18:11, pk  wrote:
>
> > > > > > ok thanks but i dont`t find the routes.example.py
> > > > > > i use a mac
>
> > > > > > On 6 Jul., 17:55, Jonathan Lundell  wrote:
>
> > > > > > > On Jul 6, 2009, at 8:50 AM, Fran wrote:
>
> > > > > > > > On Jul 6, 4:47 pm, pk  wrote:
> > > > > > > >> where can i find routes.py?
>
> > > > > > > > cp web2py\routes.example.py web2py\routes.py
>
> > > > > > > And section 4.15 of the manual.
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25794] Re: xml (important)

2009-07-06 Thread pk

i also get this ticket
Traceback (most recent call last):
  File "gluon/restricted.py", line 107, in restricted
  File "/Applications/web2py/web2py1.64.4/web2py.app/Contents/
Resources/applications/2busy/controllers/default.py", line 55, in

  File "gluon/globals.py", line 100, in 
  File "/Applications/web2py/web2py1.64.4/web2py.app/Contents/
Resources/applications/2busy/controllers/default.py", line 53, in
table_as_xml
  File "gluon/sql.py", line 519, in __getitem__
KeyError: 'projectmember.xml'



On 6 Jul., 18:49, mdipierro  wrote:
> my mistake. try this
>
> #begin
> routes_in=(('/myapp/default/table_as_xml/$user.html','/myapp/default/
> table_as_xml.xml/$user'),)
> routes_out=(('/myapp/default/table_as_xml.html/$user','/myapp/default/
> table_as_xml/$user.html'),)
> #end
>
> On Jul 6, 11:40 am, pk  wrote:
>
> > ok but now i get this errormessage
> > Traceback (most recent call last):
> >   File "gluon/restricted.py", line 107, in restricted
> >   File "/Applications/web2py/web2py1.64.4/web2py.app/Contents/
> > Resources/applications/2busy/controllers/default.py", line 55, in
> > 
> >   File "gluon/globals.py", line 100, in 
> >   File "/Applications/web2py/web2py1.64.4/web2py.app/Contents/
> > Resources/applications/2busy/controllers/default.py", line 53, in
> > table_as_xml
> >   File "gluon/sql.py", line 519, in __getitem__
> > KeyError: 'projectmember.xml'
>
> > i have create route.py in the right directory.
> > and copied the code in it, i only changed user into projectmember
>
> > On 6 Jul., 18:19, mdipierro  wrote:
>
> > > From a OSX terminal (which you can open from Application/Utilities) go
> > > into
>
> > > web2py.app/Contents/Resources/
> > > and create and edit route.py. Place this text in it:
>
> > > #begin
> > > routes_in=(('/myapp/default/table_as_xml/user.html','/myapp/default/
> > > table_as_xml.xml/user'),)
> > > routes_out=(('/myapp/default/table_as_xml.html/user','/myapp/default/
> > > table_as_xml/user.html'),)
> > > #end
>
> > > that's all.
>
> > > On Jul 6, 11:14 am, pk  wrote:
>
> > > > can you explain in more detailed. what i have to do to change the
> > > > routes.py
>
> > > > On 6 Jul., 18:11, pk  wrote:
>
> > > > > ok thanks but i dont`t find the routes.example.py
> > > > > i use a mac
>
> > > > > On 6 Jul., 17:55, Jonathan Lundell  wrote:
>
> > > > > > On Jul 6, 2009, at 8:50 AM, Fran wrote:
>
> > > > > > > On Jul 6, 4:47 pm, pk  wrote:
> > > > > > >> where can i find routes.py?
>
> > > > > > > cp web2py\routes.example.py web2py\routes.py
>
> > > > > > And section 4.15 of the manual.
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25793] Re: xml (important)

2009-07-06 Thread mdipierro

my mistake. try this

#begin
routes_in=(('/myapp/default/table_as_xml/$user.html','/myapp/default/
table_as_xml.xml/$user'),)
routes_out=(('/myapp/default/table_as_xml.html/$user','/myapp/default/
table_as_xml/$user.html'),)
#end

On Jul 6, 11:40 am, pk  wrote:
> ok but now i get this errormessage
> Traceback (most recent call last):
>   File "gluon/restricted.py", line 107, in restricted
>   File "/Applications/web2py/web2py1.64.4/web2py.app/Contents/
> Resources/applications/2busy/controllers/default.py", line 55, in
> 
>   File "gluon/globals.py", line 100, in 
>   File "/Applications/web2py/web2py1.64.4/web2py.app/Contents/
> Resources/applications/2busy/controllers/default.py", line 53, in
> table_as_xml
>   File "gluon/sql.py", line 519, in __getitem__
> KeyError: 'projectmember.xml'
>
> i have create route.py in the right directory.
> and copied the code in it, i only changed user into projectmember
>
> On 6 Jul., 18:19, mdipierro  wrote:
>
> > From a OSX terminal (which you can open from Application/Utilities) go
> > into
>
> > web2py.app/Contents/Resources/
> > and create and edit route.py. Place this text in it:
>
> > #begin
> > routes_in=(('/myapp/default/table_as_xml/user.html','/myapp/default/
> > table_as_xml.xml/user'),)
> > routes_out=(('/myapp/default/table_as_xml.html/user','/myapp/default/
> > table_as_xml/user.html'),)
> > #end
>
> > that's all.
>
> > On Jul 6, 11:14 am, pk  wrote:
>
> > > can you explain in more detailed. what i have to do to change the
> > > routes.py
>
> > > On 6 Jul., 18:11, pk  wrote:
>
> > > > ok thanks but i dont`t find the routes.example.py
> > > > i use a mac
>
> > > > On 6 Jul., 17:55, Jonathan Lundell  wrote:
>
> > > > > On Jul 6, 2009, at 8:50 AM, Fran wrote:
>
> > > > > > On Jul 6, 4:47 pm, pk  wrote:
> > > > > >> where can i find routes.py?
>
> > > > > > cp web2py\routes.example.py web2py\routes.py
>
> > > > > And section 4.15 of the manual.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25792] Re: Email verification not working the way I expected it...

2009-07-06 Thread mdipierro

add

auth.settings.registration_requires_verification = True


On Jul 6, 11:19 am, Jason Brower  wrote:
> I have setup the email verification according to the instructions
> online, but everyone is still able to login with no issues.
> I know the email is setup properly as I have used the same settings for
> emailing to others with my website.
> I am using Gmail's smtp to do the emailing.
> Any ideas?
> This is in my model.
> db.define_table('users',
>         SQLField('nickname', 'string', length=20),
>         SQLField('first_name', 'string', length=15),
>         SQLField('last_name', 'string', length=15),
>         SQLField('phone_number', 'string', length=15),
>         SQLField('email', 'string'),
>         SQLField('password', 'password'),
>         SQLField('university_affiliation', 'string', length=25),
>         SQLField('created', 'datetime', default=now, readable=False,
> writable=False),
>         SQLField('registration_key', length=128, writable=False,
> readable=False, default=''),
>         SQLField('avatar', 'upload'),
>         SQLField('short_description','text'))
>
> ###
> # Authentication System
> ###
> from gluon.tools import Mail, Auth
>
> mail = Mail()
> mail.settings.server='smtp.gmail.com:587'
> mail.settings.sender= 'interes...@gmail.com'
> mail.settings.login='interes...@gmail.com:---'
>
> class MyAuth(Auth):
>     def __init__(self, environment, T, db = None):
>         "Initialise parent class & make any necessary modifications"
>         Auth.__init__(self,environment,db)
>         self.messages.logged_in = T("Logged in")
>         self.messages.email_sent = T("Email sent")
>         self.messages.email_verified = T("Email verified")
>         self.messages.logged_out = T("Logged out")
>         self.messages.registration_successful = T("Registration
> successful")
>         self.messages.invalid_email = T("Invalid email")
>         self.messages.invalid_login = T("Invalid login")
>         self.messages.verify_email_subject = T("Password verify")
>         self.messages.username_sent = T("Your username was emailed to
> you.")
>         self.messages.new_password_sent = T("A new password was emailed
> to you.")
>         self.messages.password_changed = T("Password changed")
>         self.messages.retrieve_username=str(T("Your username is:"))+":
> %(username)s"
>         self.messages.retrieve_username_subject="Username retrieve"
>         self.messages.retrieve_password=str(T("Your password is:"))+":
> %(password)s"
>         self.messages.retrieve_password_subject = T("Password retrieve")
>         self.messages.profile_updated = T("Profile updated")
>         self.settings.table_user = db.users
>
> auth = MyAuth(globals(), T, db)
> auth.settings.mailer = mail
> auth.define_tables()
>
> Should it not wait for an email confirmation?
> Regards,
> Jason
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25791] Re: xml (important)

2009-07-06 Thread pk

ok but now i get this errormessage
Traceback (most recent call last):
  File "gluon/restricted.py", line 107, in restricted
  File "/Applications/web2py/web2py1.64.4/web2py.app/Contents/
Resources/applications/2busy/controllers/default.py", line 55, in

  File "gluon/globals.py", line 100, in 
  File "/Applications/web2py/web2py1.64.4/web2py.app/Contents/
Resources/applications/2busy/controllers/default.py", line 53, in
table_as_xml
  File "gluon/sql.py", line 519, in __getitem__
KeyError: 'projectmember.xml'

i have create route.py in the right directory.
and copied the code in it, i only changed user into projectmember


On 6 Jul., 18:19, mdipierro  wrote:
> From a OSX terminal (which you can open from Application/Utilities) go
> into
>
> web2py.app/Contents/Resources/
> and create and edit route.py. Place this text in it:
>
> #begin
> routes_in=(('/myapp/default/table_as_xml/user.html','/myapp/default/
> table_as_xml.xml/user'),)
> routes_out=(('/myapp/default/table_as_xml.html/user','/myapp/default/
> table_as_xml/user.html'),)
> #end
>
> that's all.
>
> On Jul 6, 11:14 am, pk  wrote:
>
> > can you explain in more detailed. what i have to do to change the
> > routes.py
>
> > On 6 Jul., 18:11, pk  wrote:
>
> > > ok thanks but i dont`t find the routes.example.py
> > > i use a mac
>
> > > On 6 Jul., 17:55, Jonathan Lundell  wrote:
>
> > > > On Jul 6, 2009, at 8:50 AM, Fran wrote:
>
> > > > > On Jul 6, 4:47 pm, pk  wrote:
> > > > >> where can i find routes.py?
>
> > > > > cp web2py\routes.example.py web2py\routes.py
>
> > > > And section 4.15 of the manual.
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25790] Re: List of web hosting for Web2py

2009-07-06 Thread Speedbird

Replied. Thanks!

On Jul 6, 9:08 am, Yannick  wrote:
> Can I know the name of the company you are using please ?
>
> On Jul 6, 11:25 am, Speedbird  wrote:
>
> > In addition to that, are we talking about companies that support
> > web2py in the sense that they provide some sort of "control panel" for
> > it? - I mean I've been using my (same) hosting company for ages now,
> > though I have a "dedicated" VPS with them I do not have a control
> > panel of any sort, and I've been using web2py (and several other
> > python technologies (cgi and zope)) for quite a while without any
> > glitches other than the standard ones.
>
> > Julio
>
> > On Jul 6, 8:03 am, Jonathan Lundell  wrote:
>
> > > On Jul 6, 2009, at 7:54 AM, Yannick wrote:
>
> > > > Maybe it will be good to have in the web2py's website a section where
> > > > we can see a list of all the good and serious hosting company that
> > > > support web2py it will be helpful... Me the web hosting I found
> > > > doesn't seems to be very professional and maybe you guys know a better
> > > > and really serious web hosting company.
>
> > > What would an ideal web2py host look like? (Not so much  
> > > professionalism issues, which would apply to anything, but web2py-
> > > specific issues.)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25788] Re: xml (important)

2009-07-06 Thread mdipierro

>From a OSX terminal (which you can open from Application/Utilities) go
into

web2py.app/Contents/Resources/
and create and edit route.py. Place this text in it:

#begin
routes_in=(('/myapp/default/table_as_xml/user.html','/myapp/default/
table_as_xml.xml/user'),)
routes_out=(('/myapp/default/table_as_xml.html/user','/myapp/default/
table_as_xml/user.html'),)
#end

that's all.



On Jul 6, 11:14 am, pk  wrote:
> can you explain in more detailed. what i have to do to change the
> routes.py
>
> On 6 Jul., 18:11, pk  wrote:
>
> > ok thanks but i dont`t find the routes.example.py
> > i use a mac
>
> > On 6 Jul., 17:55, Jonathan Lundell  wrote:
>
> > > On Jul 6, 2009, at 8:50 AM, Fran wrote:
>
> > > > On Jul 6, 4:47 pm, pk  wrote:
> > > >> where can i find routes.py?
>
> > > > cp web2py\routes.example.py web2py\routes.py
>
> > > And section 4.15 of the manual.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25789] Email verification not working the way I expected it...

2009-07-06 Thread Jason Brower

I have setup the email verification according to the instructions
online, but everyone is still able to login with no issues.
I know the email is setup properly as I have used the same settings for
emailing to others with my website.
I am using Gmail's smtp to do the emailing.
Any ideas?
This is in my model.
db.define_table('users',
SQLField('nickname', 'string', length=20),
SQLField('first_name', 'string', length=15),
SQLField('last_name', 'string', length=15),
SQLField('phone_number', 'string', length=15),
SQLField('email', 'string'),
SQLField('password', 'password'),
SQLField('university_affiliation', 'string', length=25),
SQLField('created', 'datetime', default=now, readable=False,
writable=False),
SQLField('registration_key', length=128, writable=False,
readable=False, default=''),
SQLField('avatar', 'upload'),
SQLField('short_description','text'))

###
# Authentication System
###
from gluon.tools import Mail, Auth

mail = Mail()
mail.settings.server='smtp.gmail.com:587'
mail.settings.sender= 'interes...@gmail.com'
mail.settings.login='interes...@gmail.com:---'

class MyAuth(Auth):
def __init__(self, environment, T, db = None):
"Initialise parent class & make any necessary modifications"
Auth.__init__(self,environment,db)
self.messages.logged_in = T("Logged in")
self.messages.email_sent = T("Email sent")
self.messages.email_verified = T("Email verified")
self.messages.logged_out = T("Logged out")
self.messages.registration_successful = T("Registration
successful")
self.messages.invalid_email = T("Invalid email")
self.messages.invalid_login = T("Invalid login")
self.messages.verify_email_subject = T("Password verify")
self.messages.username_sent = T("Your username was emailed to
you.")
self.messages.new_password_sent = T("A new password was emailed
to you.")
self.messages.password_changed = T("Password changed")
self.messages.retrieve_username=str(T("Your username is:"))+":
%(username)s"
self.messages.retrieve_username_subject="Username retrieve"
self.messages.retrieve_password=str(T("Your password is:"))+":
%(password)s"
self.messages.retrieve_password_subject = T("Password retrieve")
self.messages.profile_updated = T("Profile updated")
self.settings.table_user = db.users

auth = MyAuth(globals(), T, db)
auth.settings.mailer = mail
auth.define_tables()

Should it not wait for an email confirmation?
Regards,
Jason


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25787] Re: xml (important)

2009-07-06 Thread pk

can you explain in more detailed. what i have to do to change the
routes.py

On 6 Jul., 18:11, pk  wrote:
> ok thanks but i dont`t find the routes.example.py
> i use a mac
>
> On 6 Jul., 17:55, Jonathan Lundell  wrote:
>
> > On Jul 6, 2009, at 8:50 AM, Fran wrote:
>
> > > On Jul 6, 4:47 pm, pk  wrote:
> > >> where can i find routes.py?
>
> > > cp web2py\routes.example.py web2py\routes.py
>
> > And section 4.15 of the manual.
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25786] Re: xml (important)

2009-07-06 Thread pk

ok thanks but i dont`t find the routes.example.py
i use a mac


On 6 Jul., 17:55, Jonathan Lundell  wrote:
> On Jul 6, 2009, at 8:50 AM, Fran wrote:
>
> > On Jul 6, 4:47 pm, pk  wrote:
> >> where can i find routes.py?
>
> > cp web2py\routes.example.py web2py\routes.py
>
> And section 4.15 of the manual.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25785] Re: List of web hosting for Web2py

2009-07-06 Thread Yannick

Can I know the name of the company you are using please ?

On Jul 6, 11:25 am, Speedbird  wrote:
> In addition to that, are we talking about companies that support
> web2py in the sense that they provide some sort of "control panel" for
> it? - I mean I've been using my (same) hosting company for ages now,
> though I have a "dedicated" VPS with them I do not have a control
> panel of any sort, and I've been using web2py (and several other
> python technologies (cgi and zope)) for quite a while without any
> glitches other than the standard ones.
>
> Julio
>
> On Jul 6, 8:03 am, Jonathan Lundell  wrote:
>
> > On Jul 6, 2009, at 7:54 AM, Yannick wrote:
>
> > > Maybe it will be good to have in the web2py's website a section where
> > > we can see a list of all the good and serious hosting company that
> > > support web2py it will be helpful... Me the web hosting I found
> > > doesn't seems to be very professional and maybe you guys know a better
> > > and really serious web hosting company.
>
> > What would an ideal web2py host look like? (Not so much  
> > professionalism issues, which would apply to anything, but web2py-
> > specific issues.)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25784] Re: xml (important)

2009-07-06 Thread Jonathan Lundell

On Jul 6, 2009, at 8:50 AM, Fran wrote:

> On Jul 6, 4:47 pm, pk  wrote:
>> where can i find routes.py?
>
> cp web2py\routes.example.py web2py\routes.py

And section 4.15 of the manual.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25783] Re: xml (important)

2009-07-06 Thread Fran

On Jul 6, 4:47 pm, pk  wrote:
> where can i find routes.py?

cp web2py\routes.example.py web2py\routes.py

F
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25782] Re: xml (important)

2009-07-06 Thread pk

where can i find routes.py?

On 6 Jul., 17:43, mdipierro  wrote:
> In routes.py you can do
>
> routes_in=(('/myapp/default/table_as_xml/user.html','/myapp/default/
> table_as_xml.xml/user'),)
> routes_out=(('/myapp/default/table_as_xml.html/user','/myapp/default/
> table_as_xml/user.html'),)
>
> On Jul 6, 10:30 am, pk  wrote:
>
> > i need this url, when i use httpservice in flex
>
> > On 6 Jul., 15:55, mdipierro  wrote:
>
> > > You can call but it ugly.
>
> > >http://www.test.com/myapp/default/table_as_xml.xml/user
>
> > > I suggest
>
> > > def table_as_xml():
> > >       from gluon.serializers import xml
> > >       response.headers['Content-Type']='text/xml'
> > >       return '''
> > >              '''+"%s" % xml(db(db
> > > [request.vars.id].id>0).select().as_list())
>
> > > and
>
> > >  http://www.test.com/myapp/default/table_as_xml.xml?id=1
>
> > > On Jul 6, 5:10 am, pk  wrote:
>
> > > > hi together,
>
> > > > i have a function:
> > > > def table_as_xml():
> > > >      from gluon.serializers import xml
> > > >      response.headers['Content-Type']='text/xml'
> > > >      return '''
> > > >             '''+"%s" % xml(db(db[request.args
> > > > (0)].id>0).select().as_list())
>
> > > > ok this works fine. but how can i create the weblink with .xml
>
> > > > now i can only read the xml 
> > > > likehttp://www.test.com/myapp/default/table_as_xml/user
>
> > > > and now i want the same but with the end .xml
>
> > > > thanks for your help
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25781] Re: xml (important)

2009-07-06 Thread mdipierro

In routes.py you can do

routes_in=(('/myapp/default/table_as_xml/user.html','/myapp/default/
table_as_xml.xml/user'),)
routes_out=(('/myapp/default/table_as_xml.html/user','/myapp/default/
table_as_xml/user.html'),)


On Jul 6, 10:30 am, pk  wrote:
> i need this url, when i use httpservice in flex
>
> On 6 Jul., 15:55, mdipierro  wrote:
>
> > You can call but it ugly.
>
> >http://www.test.com/myapp/default/table_as_xml.xml/user
>
> > I suggest
>
> > def table_as_xml():
> >       from gluon.serializers import xml
> >       response.headers['Content-Type']='text/xml'
> >       return '''
> >              '''+"%s" % xml(db(db
> > [request.vars.id].id>0).select().as_list())
>
> > and
>
> >  http://www.test.com/myapp/default/table_as_xml.xml?id=1
>
> > On Jul 6, 5:10 am, pk  wrote:
>
> > > hi together,
>
> > > i have a function:
> > > def table_as_xml():
> > >      from gluon.serializers import xml
> > >      response.headers['Content-Type']='text/xml'
> > >      return '''
> > >             '''+"%s" % xml(db(db[request.args
> > > (0)].id>0).select().as_list())
>
> > > ok this works fine. but how can i create the weblink with .xml
>
> > > now i can only read the xml 
> > > likehttp://www.test.com/myapp/default/table_as_xml/user
>
> > > and now i want the same but with the end .xml
>
> > > thanks for your help
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25780] Re: Locking vertical scrollbar ?

2009-07-06 Thread Piotr Banaszkiewicz

Hi,

Are you talking about some IDE?

In many IDEs you have something like Outline (Eclipse + PyDev) or 
Navigator (NetBeans + Python plugin) which displays classes, 
functions, often with variables in them. By doubleclicking on some 
name (let's say, class Client) you can quickly go to its definition in file.
It's pretty useful when file is long.

Another way of copeing with the problem you mentioned is bookmarks 
mechanism I saw in some IDE (or just editor, now I can't remember). 
It's just like putting breakpoint on some line, but instead of 
breakpoint you put bookmark which you can quickly go to.

Regards,
Piotr.

PS If I misunderstood you, please, expound.

Dnia poniedziałek 06 lipca 2009 o 16:32:03 Fauché JM napisał(a):
> Hello,
> when you have hundreds lines of code and you are working on one
> function ,when testing (index) and comming back to code, you have 
to
> scroll to ...the last place you were working on ! (so loosing few
> precious time).
> I know you can find a line or word in text editor but you have to
> enter a word or a name ..(precious time...)
> So whe can imagine in editor a locking/unlocking button witch 
permit
> to comme back where you are in text after testing , or directly in "
> standart " it come back to the last position.
>
> Jean-Marc

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25779] Re: xml (important)

2009-07-06 Thread pk

i need this url, when i use httpservice in flex

On 6 Jul., 15:55, mdipierro  wrote:
> You can call but it ugly.
>
> http://www.test.com/myapp/default/table_as_xml.xml/user
>
> I suggest
>
> def table_as_xml():
>       from gluon.serializers import xml
>       response.headers['Content-Type']='text/xml'
>       return '''
>              '''+"%s" % xml(db(db
> [request.vars.id].id>0).select().as_list())
>
> and
>
>  http://www.test.com/myapp/default/table_as_xml.xml?id=1
>
> On Jul 6, 5:10 am, pk  wrote:
>
> > hi together,
>
> > i have a function:
> > def table_as_xml():
> >      from gluon.serializers import xml
> >      response.headers['Content-Type']='text/xml'
> >      return '''
> >             '''+"%s" % xml(db(db[request.args
> > (0)].id>0).select().as_list())
>
> > ok this works fine. but how can i create the weblink with .xml
>
> > now i can only read the xml 
> > likehttp://www.test.com/myapp/default/table_as_xml/user
>
> > and now i want the same but with the end .xml
>
> > thanks for your help
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25778] Re: xml (important)

2009-07-06 Thread pk

is there no possibiltiy to get follow url:
http://www.test.com/myapp/default/table_as_xml/user.xml

??
thanks

On 6 Jul., 15:55, mdipierro  wrote:
> You can call but it ugly.
>
> http://www.test.com/myapp/default/table_as_xml.xml/user
>
> I suggest
>
> def table_as_xml():
>       from gluon.serializers import xml
>       response.headers['Content-Type']='text/xml'
>       return '''
>              '''+"%s" % xml(db(db
> [request.vars.id].id>0).select().as_list())
>
> and
>
>  http://www.test.com/myapp/default/table_as_xml.xml?id=1
>
> On Jul 6, 5:10 am, pk  wrote:
>
> > hi together,
>
> > i have a function:
> > def table_as_xml():
> >      from gluon.serializers import xml
> >      response.headers['Content-Type']='text/xml'
> >      return '''
> >             '''+"%s" % xml(db(db[request.args
> > (0)].id>0).select().as_list())
>
> > ok this works fine. but how can i create the weblink with .xml
>
> > now i can only read the xml 
> > likehttp://www.test.com/myapp/default/table_as_xml/user
>
> > and now i want the same but with the end .xml
>
> > thanks for your help
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25777] Re: List of web hosting for Web2py

2009-07-06 Thread Speedbird

In addition to that, are we talking about companies that support
web2py in the sense that they provide some sort of "control panel" for
it? - I mean I've been using my (same) hosting company for ages now,
though I have a "dedicated" VPS with them I do not have a control
panel of any sort, and I've been using web2py (and several other
python technologies (cgi and zope)) for quite a while without any
glitches other than the standard ones.

Julio

On Jul 6, 8:03 am, Jonathan Lundell  wrote:
> On Jul 6, 2009, at 7:54 AM, Yannick wrote:
>
> > Maybe it will be good to have in the web2py's website a section where
> > we can see a list of all the good and serious hosting company that
> > support web2py it will be helpful... Me the web hosting I found
> > doesn't seems to be very professional and maybe you guys know a better
> > and really serious web hosting company.
>
> What would an ideal web2py host look like? (Not so much  
> professionalism issues, which would apply to anything, but web2py-
> specific issues.)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25776] web2py via shell account

2009-07-06 Thread Jonathan Lundell
Is it practical to run web2py from a non-admin remote-login account,  
without access to httpd.conf or rc files? I'm wondering, for example,  
how to get it to start after a reboot without manual intervention.  
Running without web2py admin access would be fine.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25775] Re: List of web hosting for Web2py

2009-07-06 Thread Jonathan Lundell

On Jul 6, 2009, at 7:54 AM, Yannick wrote:

> Maybe it will be good to have in the web2py's website a section where
> we can see a list of all the good and serious hosting company that
> support web2py it will be helpful... Me the web hosting I found
> doesn't seems to be very professional and maybe you guys know a better
> and really serious web hosting company.

What would an ideal web2py host look like? (Not so much  
professionalism issues, which would apply to anything, but web2py- 
specific issues.)


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25774] List of web hosting for Web2py

2009-07-06 Thread Yannick

Hello folks,

Maybe it will be good to have in the web2py's website a section where
we can see a list of all the good and serious hosting company that
support web2py it will be helpful... Me the web hosting I found
doesn't seems to be very professional and maybe you guys know a better
and really serious web hosting company.

What do you think ?

Cheers,
Yannick P.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25773] Locking vertical scrollbar ?

2009-07-06 Thread Fauché JM

Hello,
when you have hundreds lines of code and you are working on one
function ,when testing (index) and comming back to code, you have to
scroll to ...the last place you were working on ! (so loosing few
precious time).
I know you can find a line or word in text editor but you have to
enter a word or a name ..(precious time...)
So whe can imagine in editor a locking/unlocking button witch permit
to comme back where you are in text after testing , or directly in "
standart " it come back to the last position.

Jean-Marc


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25772] Re: xml (important)

2009-07-06 Thread mdipierro

You can call but it ugly.

http://www.test.com/myapp/default/table_as_xml.xml/user

I suggest

def table_as_xml():
  from gluon.serializers import xml
  response.headers['Content-Type']='text/xml'
  return '''
 '''+"%s" % xml(db(db
[request.vars.id].id>0).select().as_list())

and

 http://www.test.com/myapp/default/table_as_xml.xml?id=1

On Jul 6, 5:10 am, pk  wrote:
> hi together,
>
> i have a function:
> def table_as_xml():
>      from gluon.serializers import xml
>      response.headers['Content-Type']='text/xml'
>      return '''
>             '''+"%s" % xml(db(db[request.args
> (0)].id>0).select().as_list())
>
> ok this works fine. but how can i create the weblink with .xml
>
> now i can only read the xml 
> likehttp://www.test.com/myapp/default/table_as_xml/user
>
> and now i want the same but with the end .xml
>
> thanks for your help
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25771] Re: How do we petition Google to mention web2py?

2009-07-06 Thread mdipierro

Yarko. Many more people than you know are using web2py.

I know of companies who do and I know of government organizations who
do, although I am not saying their names without their permission.

For various reason these users tend to use web2py do develop
applications for internal use and not public web sites. Our users are
naturally reserved about what they do. We pitch web2py as an
Enterprise framework in fact.

We should not confuse apples and oranges. Some frameworks are popular
because they have been used to develop public blogs, wikies and things
like that. While web2py, for example, has been used to develop a
complex system for a major bank. If you read posts on this list you
find people are using web2py to build systems for medical records and
accounting systems.

One of the most iPhone apps is called iFart. By that analogy
popularity is not a measure of quality nor a measure of success.

It is good that web2py runs on the Google App Engine and I would like
to see more applications but I am happier with one major bank a web2py
app than 100 GAE apps to post pictures of cats.

I would be like Google to acknowledge web2py more on their site. For
this to happen the community has to speak up. One way to do it is,
when asking questions on their list, make clear that we are using
web2py.

Massimo

On Jul 6, 2:42 am, Yarko Tymciurak  wrote:
> I think you are starting to mix two different things here - django has been
> in commercial use for some years.  Runs info for a news organization.
>
> Your TG story is another thing, but the _fact_ remains (and I've had this
> private conversation quite recently with you) that solid, well designed,
> non-trivial, and commercially in-use applications written in web2py are
> what?  not advertised?  non-existent?
>
> Even the _church_ I want to build a free site for asks for "what other sites
> are heavy users of this?"   THAT is a chicken & egg problem.
>
> I think focusing on being "loud" will maybe anger, maybe make some Python
> community people make room.
> But more importantly, it will waste time and resources, and not really budge
> Google/Guido.
>
> It will do _nothing at all_ for my church situation, much less many, many
> other such situations for consulting and getting some smaller sites up and
> running.  Effort is much better spent making something substantial, and
> showing results rather than tutorials to the rest of the world.
>
> Sure, some communication is important.  But that's not primarily what is
> needed now.
> I welcome, of course,  other views and experiences - but this (my)
> experience and observation is not opinion, it is what I _have experienced_.
> The only thing that is opinion is how widespread and significant this is.
>
> What is needed are good designs, and showing  useful things, and getting
> them _used_, collecting statistics.
>
> Forget about email campaigns for "airtime" to teach web2py - at least for
> now.  That needs to come by demand (and is).
>
> What needs to happen is results, and statistics.
>
> Not email.
>
> How many people are using pyforums, for example?  In what applications?
> What are limitations found?  What is the total user base?  Where does
> someone find that information.   And how about the survey tool?  Who is
> using that (the code was lost, so that is a rhetorical question - to make a
> point - it only exists in executable form as a demo on GAE, so it is ... a
> demo;  how is that organization using it that the original was donated
> to?)   Or reddish?   Or
>
> You see - we show ideas.   We need to transition into making things _others
> (non-developers)_  find useful, and make use of them.  This is what is
> missing.
>
> You want certification?   Shelve the notion of developer certification (it
> is of little immediate use, without _commercial demand for developers_
> existing first).   Instead, lets talk about certification of _applications_
> and _modules_ for web2py.
>
> A quick grading of the sites listed as running / supporting web2py 
> onwww.web2py.com, and I am left without anything I can even proudly show a
> non-technical church manager for _free_ work.  This borders on shameful.
>
> "I use web2py; call me for web2py consulting"  sites, with one or two pages
> that are not showing anything but simple content --- doesn't show off
> anything, is less than sophmorish.
>
> Please get these OFF of the listings on the back pages of web2py.com!
>
> Better to show some significant student projects.
>
> Setup tests so that the appliance that run are current, or are shown (at
> least) which version they are valid and tested up to.
>
> These are the things that need focus on.
>
> web2py did registration for pycon2009.  It was asked to do that again for
> pycon2010.
> It wasn't "great" (UI's, etc. were rushed; the app was written in a month,
> people hadn't considered all the requirements ... e.g. formal reciepts,
> etc.) - but it was reliable, and worked well enough (with a little support
> for 

[web2py:25770] Re: Trouble with Recaptcha

2009-07-06 Thread Kuba Kucharski

You have to obtain your own RECAPTCHA_PUBLIC_KEY and
RECAPTCHA_PRIVATE_KEY. That's the idea of keys.
http://recaptcha.net/


-- 
Kuba



On Sun, Jul 5, 2009 at 10:58 PM, weheh wrote:
>
> On my clean install of 1.65.1 I'm trying out a brand new test app. All
> I'm trying to do is test out all the auth stuff as documented in
> AlterEgo. I'm getting an error on the line:
>
> auth.settings.captcha=Recaptcha
> (request,public_key='RECAPTCHA_PUBLIC_KEY',private_key='RECAPTCHA_PRIVATE_KEY')
>
>
> The error is:
>
> NameError: name 'Recaptcha' is not defined
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25769] xml (important)

2009-07-06 Thread pk

hi together,

i have a function:
def table_as_xml():
 from gluon.serializers import xml
 response.headers['Content-Type']='text/xml'
 return '''
'''+"%s" % xml(db(db[request.args
(0)].id>0).select().as_list())


ok this works fine. but how can i create the weblink with .xml

now i can only read the xml like 
http://www.test.com/myapp/default/table_as_xml/user

and now i want the same but with the end .xml

thanks for your help
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25768] Re: need an ajax spreadsheet

2009-07-06 Thread Yarko Tymciurak
Well, it's not a distribution... the various executables and tarballs are
distribution.

A clean clone today is out of whack to be called a distribution.  Here's
tonight's clean checkout: size (I skip all the relatively uninteresting
stuff):

[yak...@thynken web2py]$ du -h clean*

396Kclean-clone/doc/source
632Kclean-clone/doc

1.3Mclean-clone/gluon/contrib
2.6Mclean-clone/gluon

1.9Mclean-clone/applications/admin

780Kclean-clone/applications/examples
...
380Kclean-clone/applications/spreadsheet
...
300Kclean-clone/applications/welcome
3.3Mclean-clone/applications
48Kclean-clone/scripts
4.0Kclean-clone/.bzr/checkout/lock
152Kclean-clone/.bzr/checkout
4.0Kclean-clone/.bzr/repository/lock
4.0Kclean-clone/.bzr/repository/obsolete_packs
4.0Kclean-clone/.bzr/repository/upload
4.6Mclean-clone/.bzr/repository/indices
481Mclean-clone/.bzr/repository/packs
486Mclean-clone/.bzr/repository
4.0Kclean-clone/.bzr/branch/lock
20Kclean-clone/.bzr/branch
4.0Kclean-clone/.bzr/branch-lock
486Mclean-clone/.bzr
495Mclean-clone
16Kclean-clone.examples.patch
[yak...@thynken web2py]$

How is it that "welcome" has become 380K?  Static (144K) and views (44k).

But that 481MB (.bzr/repository/packs) is in ONE FILE.

One good result of Hans' general suggestion is that the release will have
far fewer revisions in it's "packs", and thus be a better candidate for
otehrs to checkout and get started contributing from.  (We should think thru
how we would use the repositories, see how other porjects have them setup).



On Mon, Jul 6, 2009 at 2:20 AM, Hans Donner  wrote:

>
> the is now also acting as a kind of distribution. We might need to
> split that and have
> - source develop
> - source stable
> - distribution dev
> - distribution stable
>
> On Mon, Jul 6, 2009 at 8:59 AM, Yarko Tymciurak wrote:
> > oh - I just checked, and I was running web2py 1.65.0 on Firefox 3.5 on
> > Fedora-11 / 64;
> >
> > I grabbed a clean clone of web2py 1.65.1, and repeated - also worked fine
> >
> > (NOTE:  we need to think about the repository:  it took forever to get a
> > branch - the .bzr directory is now at 486MB, mostrly from the one pack (I
> > presume holding revisions)   Are we keeping the tar files in there
> too?
> > That would make this H U G E...
> >
> > We should think about cleaning it up.   In essence, the *.w2p files are
> > derived files, and as such (like the *.pyc files) should not be under
> > version control.
> >
> >
> > On Mon, Jul 6, 2009 at 1:31 AM, Yarko Tymciurak 
> wrote:
> >>
> >> I just copy / pasted the link below into the URL of the admin page and
> it
> >> installed as "testme" just fine with latest web2py.
> >>
> >> Can you give more information?
> >>
> >> Are you downloading the app first, then installing it from local disk?
> >> Are you installing from the url?
> >> What O/S?  What browser / version?
> >> Which web2py version (source or compiled)?
> >>
> >> On Mon, Jul 6, 2009 at 12:51 AM, Francois (Jersey)
> >>  wrote:
> >>>
> >>> Try to install from the following link
> >>>
> >>>
> http://www.web2py.com/appliances/default/download/app.source.abebe92ece83f899.73686565742e773270.w2p
> ,
> >>> and I still have an error message, Unable to install application
> >>> "spreadsheet".
> >>>
> >>> Am I the only one in this case?
> >>>
> >>> Francois
> >>>
> >>
> >
> >
> > >
> >
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25767] Re: How do we petition Google to mention web2py?

2009-07-06 Thread Yarko Tymciurak
I agree - a mainline release process would be of benefit.

I think we need to look at the maturity of that google code mercurial
option, as that would give us some important tools - like "code-review" per
submission, so it would at least be a process...

and could lead us into what Hans mentions...

On Mon, Jul 6, 2009 at 2:17 AM, Hans Donner  wrote:

>
> Hi Massimo,
>
> this is perhaps also fuelled by the fact that all source/distributions
> are coming from your trunk. Don't get me wrong, I think ity's very
> good that yo oversee the project and keep it from straying off track.
> And yes, everybody can send you patches and you says thanks in your
> commits when you apply them.
>
> We need more visibility on this, eg like Django on
> http://code.djangoproject.com/#Gettinginvolved, but also the
> ticket/feature requests discussed earlier. This will create better
> visibility that more people are(already)  contributing.
>
> H
>
> On Mon, Jul 6, 2009 at 8:59 AM, mdipierro wrote:
> > One is that the python community still perceives web2py as a one man
> > project. You people need to brag more about it and about your
> > contribution.
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25766] Re: How do we petition Google to mention web2py?

2009-07-06 Thread Yarko Tymciurak
I think you are starting to mix two different things here - django has been
in commercial use for some years.  Runs info for a news organization.

Your TG story is another thing, but the _fact_ remains (and I've had this
private conversation quite recently with you) that solid, well designed,
non-trivial, and commercially in-use applications written in web2py are
what?  not advertised?  non-existent?

Even the _church_ I want to build a free site for asks for "what other sites
are heavy users of this?"   THAT is a chicken & egg problem.

I think focusing on being "loud" will maybe anger, maybe make some Python
community people make room.
But more importantly, it will waste time and resources, and not really budge
Google/Guido.

It will do _nothing at all_ for my church situation, much less many, many
other such situations for consulting and getting some smaller sites up and
running.  Effort is much better spent making something substantial, and
showing results rather than tutorials to the rest of the world.

Sure, some communication is important.  But that's not primarily what is
needed now.
I welcome, of course,  other views and experiences - but this (my)
experience and observation is not opinion, it is what I _have experienced_.
The only thing that is opinion is how widespread and significant this is.

What is needed are good designs, and showing  useful things, and getting
them _used_, collecting statistics.

Forget about email campaigns for "airtime" to teach web2py - at least for
now.  That needs to come by demand (and is).

What needs to happen is results, and statistics.

Not email.

How many people are using pyforums, for example?  In what applications?
What are limitations found?  What is the total user base?  Where does
someone find that information.   And how about the survey tool?  Who is
using that (the code was lost, so that is a rhetorical question - to make a
point - it only exists in executable form as a demo on GAE, so it is ... a
demo;  how is that organization using it that the original was donated
to?)   Or reddish?   Or

You see - we show ideas.   We need to transition into making things _others
(non-developers)_  find useful, and make use of them.  This is what is
missing.


You want certification?   Shelve the notion of developer certification (it
is of little immediate use, without _commercial demand for developers_
existing first).   Instead, lets talk about certification of _applications_
and _modules_ for web2py.

A quick grading of the sites listed as running / supporting web2py on
www.web2py.com, and I am left without anything I can even proudly show a
non-technical church manager for _free_ work.  This borders on shameful.

"I use web2py; call me for web2py consulting"  sites, with one or two pages
that are not showing anything but simple content --- doesn't show off
anything, is less than sophmorish.

Please get these OFF of the listings on the back pages of web2py.com!

Better to show some significant student projects.

Setup tests so that the appliance that run are current, or are shown (at
least) which version they are valid and tested up to.

These are the things that need focus on.

web2py did registration for pycon2009.  It was asked to do that again for
pycon2010.
It wasn't "great" (UI's, etc. were rushed; the app was written in a month,
people hadn't considered all the requirements ... e.g. formal reciepts,
etc.) - but it was reliable, and worked well enough (with a little support
for users - as is normal for new software that sees the light of "real
users" - and THAT is the whole point: how easy it was to adapt in the
presence of sudden, large scale, first time use - it was a _great_
experience for us, who supported and extended tables on the live system...).

Things that work.
Things that people want to use.
Things that people are _willing_ to use, _do_ use, and find _useful_.

Lack of those is what results in what has been referred to as this "looking
like a one-man show..." --- NOT lack of people speaking out (to think
speaking out is what is missing would miss a critical point).

Mind,  having people talk about their experiences w/ web2py (e.g. Brazil
conference) is valid speaking out, but it is based on ... you can guess what
I'll say . EXPERIENCE WITH MAKING SOMETHING INTERESTING WORK USING
WEB2PY

Focus on that.

Identify _real_ things that would make your life easier in accomplishing
that with web2py (that will drive continuous improvement of web2py).

Then take your results, and present about them, email about them, push for
_them_ to get into conferences.

To your church.
To your local python group.
To you community.
Then get broader.

We here are all _interested_ in web2py, but why?  Because it's easy to build
things.

That's right - we can make things with it.

Make more and more significant things.

Emails to google or pycon Pshah!  waste of talent and energy in my
opinion.

Who has built that wiki for documentation?  Not signif

[web2py:25765] Re: need an ajax spreadsheet

2009-07-06 Thread Hans Donner

the is now also acting as a kind of distribution. We might need to
split that and have
- source develop
- source stable
- distribution dev
- distribution stable

On Mon, Jul 6, 2009 at 8:59 AM, Yarko Tymciurak wrote:
> oh - I just checked, and I was running web2py 1.65.0 on Firefox 3.5 on
> Fedora-11 / 64;
>
> I grabbed a clean clone of web2py 1.65.1, and repeated - also worked fine
>
> (NOTE:  we need to think about the repository:  it took forever to get a
> branch - the .bzr directory is now at 486MB, mostrly from the one pack (I
> presume holding revisions)   Are we keeping the tar files in there too?
> That would make this H U G E...
>
> We should think about cleaning it up.   In essence, the *.w2p files are
> derived files, and as such (like the *.pyc files) should not be under
> version control.
>
>
> On Mon, Jul 6, 2009 at 1:31 AM, Yarko Tymciurak  wrote:
>>
>> I just copy / pasted the link below into the URL of the admin page and it
>> installed as "testme" just fine with latest web2py.
>>
>> Can you give more information?
>>
>> Are you downloading the app first, then installing it from local disk?
>> Are you installing from the url?
>> What O/S?  What browser / version?
>> Which web2py version (source or compiled)?
>>
>> On Mon, Jul 6, 2009 at 12:51 AM, Francois (Jersey)
>>  wrote:
>>>
>>> Try to install from the following link
>>>
>>> http://www.web2py.com/appliances/default/download/app.source.abebe92ece83f899.73686565742e773270.w2p,
>>> and I still have an error message, Unable to install application
>>> "spreadsheet".
>>>
>>> Am I the only one in this case?
>>>
>>> Francois
>>>
>>
>
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25764] Re: need an ajax spreadsheet

2009-07-06 Thread Fran

On Jul 6, 7:59 am, Yarko Tymciurak  wrote:
> (NOTE:  we need to think about the repository:  it took forever to get a
> branch - the .bzr directory is now at 486MB, mostrly from the one pack (I
> presume holding revisions)   Are we keeping the tar files in there too?
> That would make this H U G E...
>
> We should think about cleaning it up.   In essence, the *.w2p files are
> derived files, and as such (like the *.pyc files) should not be under
> version control.

Big +1!

F
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25763] Re: How do we petition Google to mention web2py?

2009-07-06 Thread Hans Donner

Hi Massimo,

this is perhaps also fuelled by the fact that all source/distributions
are coming from your trunk. Don't get me wrong, I think ity's very
good that yo oversee the project and keep it from straying off track.
And yes, everybody can send you patches and you says thanks in your
commits when you apply them.

We need more visibility on this, eg like Django on
http://code.djangoproject.com/#Gettinginvolved, but also the
ticket/feature requests discussed earlier. This will create better
visibility that more people are(already)  contributing.

H

On Mon, Jul 6, 2009 at 8:59 AM, mdipierro wrote:
> One is that the python community still perceives web2py as a one man
> project. You people need to brag more about it and about your
> contribution.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25762] Re: want to help web2py?

2009-07-06 Thread mdipierro

On Jul 6, 1:08 am, "Francois (Jersey)"
 wrote:
> I am currently building an accounting system for companies. This could
> be used as a foundation to develop more financial applications. Likely
> delivery end of the year.
> Your release of spreadsheet is proving very useful, eventhough I am
> encountering similar difficulties to some people on the mailing list,
> re being able to select the result from a cell in a list.

sheet['r0c0'].computed_value gives you the value of cell r0c0 in the
list.

>
> Fabulous application. I struggled with turbogears (which is superbe
> framework for experienced programmers), and was able to take-off with
> Web2py.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---