[web2py:36496] Cron and Windows service

2009-12-04 Thread SergeyPo
Hello,

I am having problem with cron. My crontable:

*/5   *   *   *   *  root *default/getcaptypes

Controller method 'default/getcaptypes' works fine when you call it
directly. It works fine when called by cron when web2py is running as
console. But it is not working when I start web2py as windows
service.

Options file contains:

extcron = None
nocron = None

Where else should I look?

Sergey

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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:36497] Re: getting stable version equivalent from SVN

2009-12-04 Thread Fred
On Dec 3, 3:42 pm, Jonathan Lundell  wrote:
> Massimo is pretty good about announcing release versions in svn comments.

I see now that there are quite a few SVN log entries with release
version numbers.  1.71.3 wasn't there though and so I went with the
process that I outlined above.

But my process is a kluge.  I would much prefer tagging releases as a
distinct copies in SVN.

And mercurial is even better IMO.  I'm surprised that the "empty
folders" issue is a show-stopper.  I thought something was done long
ago in web2py to create the necessary empty folders at runtime if
needed.

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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:36498] Re: getting stable version equivalent from SVN

2009-12-04 Thread mdipierro
It is not a show stopper and yes web2py creates the missing folders
but it needs to be tested more. I will do so. This is in fact a better
solution than storing dummy files in empty folders.

What do you mean by "I would much prefer tagging releases as a
distinct copies in SVN. "?

Massimo

On Dec 4, 8:08 am, Fred  wrote:
> On Dec 3, 3:42 pm, Jonathan Lundell  wrote:
>
> > Massimo is pretty good about announcing release versions in svn comments.
>
> I see now that there are quite a few SVN log entries with release
> version numbers.  1.71.3 wasn't there though and so I went with the
> process that I outlined above.
>
> But my process is a kluge.  I would much prefer tagging releases as a
> distinct copies in SVN.
>
> And mercurial is even better IMO.  I'm surprised that the "empty
> folders" issue is a show-stopper.  I thought something was done long
> ago in web2py to create the necessary empty folders at runtime if
> needed.

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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:36499] Re: Sphinx

2009-12-04 Thread Dmitri Zagidulin
Just to clarify - is the conversation here about moving the main
manual (http://www.web2py.com/examples/default/docs ) to Sphinx?
Or a different set of docs, auto-generated from the code comments or
something like?

In any case, I'd be willing to help work on it.

On Nov 23, 10:28 am, mdipierro  wrote:
> We have had some discussion about moving the documentation to Sphinx.
> Months have passed and there has been no progress. I personally do not
> mind epydoc but some of you really liked Sphinx.
>
> If you know Sphinx and want web2py to use it, please help us.
>
> Massimo

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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:36500] Re: Python 2.6 Errata

2009-12-04 Thread Timbo
@Alexandre: I understand that you're trying to help.  It's much better
to actually fix the broken code than to "fix" the applications.

@Massimo:  This is very doable.  I'll prepare a patch and email it to
you.

On Dec 3, 5:58 pm, mdipierro  wrote:
> I am aware of this problem.
>
> This is a different behavior in the cgi.FieldStorage object in Python.
>
> Please look in web2py.gluon.main how post_vars is filled.
>
> I have thought about this a lot and I do not see any way to make this
> work in web2py in the same way in 2.5 and 2.6.
>
> Massimo
>
> On Dec 3, 1:30 pm, Timbo  wrote:
>
> > Thinking about it, this is a bug in web2py.
>
> > Let me be a little more concrete in my description.  I have a custom
> > form that submits to /app/default/entry?id=12.  In the form, there is
> > a hidden input tag named "id" with a value of "12".  Upon submission,
> > Python 2.5 looks like this:
> > request.vars.id = "12"
> > request.get_vars.id = "12"
> > request.post_vars.id = "12"
>
> > Python 2.6 looks like this:
> > request.vars.id = ["12", "12"]
> > request.get_vars.id = "12"
> > request.post_vars.id = ["12", "12"]
>
> > And what _should_ happen is this:
> > request.vars.id = ["12", "12"]
> > request.get_vars.id = "12"
> > request.post_vars.id = "12"
>
> > Am I making sense?  Massimo, is that expected behavior that we want
> > for web2py?
>
> > -tim
>
> > On Dec 3, 1:17 pm, Timbo  wrote:
>
> > > I've been trying to migrate my web2py applications to Python 2.6 and I
> > > ran across a nasty bug in Python 2.5 that is fixed in Py2.6, but it
> > > amounts to a backward-incompatibility.
>
> > > The bug fixed is:http://bugs.python.org/issue3801
>
> > > Basically this happens in a POST request where a variable is both in
> > > the URL and in the POST body.  It causes that variable to be a list of
> > > two (identical) values on Python 2.6.  In Py2.5 however, it will be a
> > > single value (the POST body value).
>
> > > This is not an issue with web2py at all but perhaps it should be noted
> > > somewhere in some documentation about Python 2.6.
>
> > > Just so you guys don't spend all the time I did trying to find this.

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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:36501] Re: Sphinx

2009-12-04 Thread mdipierro
Hi Dimitri,

A few months back, Hans, Tim, Jonathan helped port most (if not all)
the docstrings to Sphinx. Tim also wrote a script to generate Sphinx
documentation from the docstrings (which in web2py/doc/

Than this effort stopped. The goal should be that of improving the
docstrings and add references so that generated documentation does not
contain errors, is easy to navigate, and contains a decent into page.
This could become a replacement for epydoc.

The book is not a community effort (although the community is involved
with proof-reading and translations) and it will stay in latex for
now. Nevertheless you can take parts of the book, convert them to
sphinx and use them to improve the docstrings.

Massimo

On Dec 4, 8:50 am, Dmitri Zagidulin  wrote:
> Just to clarify - is the conversation here about moving the main
> manual (http://www.web2py.com/examples/default/docs) to Sphinx?
> Or a different set of docs, auto-generated from the code comments or
> something like?
>
> In any case, I'd be willing to help work on it.
>
> On Nov 23, 10:28 am, mdipierro  wrote:
>
> > We have had some discussion about moving the documentation to Sphinx.
> > Months have passed and there has been no progress. I personally do not
> > mind epydoc but some of you really liked Sphinx.
>
> > If you know Sphinx and want web2py to use it, please help us.
>
> > Massimo
>
>

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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:36502] Re: Python 2.6 Errata

2009-12-04 Thread mdipierro
Thank you!

On Dec 4, 9:13 am, Timbo  wrote:
> @Alexandre: I understand that you're trying to help.  It's much better
> to actually fix the broken code than to "fix" the applications.
>
> @Massimo:  This is very doable.  I'll prepare a patch and email it to
> you.
>
> On Dec 3, 5:58 pm, mdipierro  wrote:
>
> > I am aware of this problem.
>
> > This is a different behavior in the cgi.FieldStorage object in Python.
>
> > Please look in web2py.gluon.main how post_vars is filled.
>
> > I have thought about this a lot and I do not see any way to make this
> > work in web2py in the same way in 2.5 and 2.6.
>
> > Massimo
>
> > On Dec 3, 1:30 pm, Timbo  wrote:
>
> > > Thinking about it, this is a bug in web2py.
>
> > > Let me be a little more concrete in my description.  I have a custom
> > > form that submits to /app/default/entry?id=12.  In the form, there is
> > > a hidden input tag named "id" with a value of "12".  Upon submission,
> > > Python 2.5 looks like this:
> > > request.vars.id = "12"
> > > request.get_vars.id = "12"
> > > request.post_vars.id = "12"
>
> > > Python 2.6 looks like this:
> > > request.vars.id = ["12", "12"]
> > > request.get_vars.id = "12"
> > > request.post_vars.id = ["12", "12"]
>
> > > And what _should_ happen is this:
> > > request.vars.id = ["12", "12"]
> > > request.get_vars.id = "12"
> > > request.post_vars.id = "12"
>
> > > Am I making sense?  Massimo, is that expected behavior that we want
> > > for web2py?
>
> > > -tim
>
> > > On Dec 3, 1:17 pm, Timbo  wrote:
>
> > > > I've been trying to migrate my web2py applications to Python 2.6 and I
> > > > ran across a nasty bug in Python 2.5 that is fixed in Py2.6, but it
> > > > amounts to a backward-incompatibility.
>
> > > > The bug fixed is:http://bugs.python.org/issue3801
>
> > > > Basically this happens in a POST request where a variable is both in
> > > > the URL and in the POST body.  It causes that variable to be a list of
> > > > two (identical) values on Python 2.6.  In Py2.5 however, it will be a
> > > > single value (the POST body value).
>
> > > > This is not an issue with web2py at all but perhaps it should be noted
> > > > somewhere in some documentation about Python 2.6.
>
> > > > Just so you guys don't spend all the time I did trying to find this.
>
>

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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:36503] Re: Cron and Windows service

2009-12-04 Thread mdipierro
There is a logical problem. the web server and cron are two processes
and therefore they should be threated as two different services or
there should be a mechanism to start and stop them both. Right now the
windows service only handles the web service.

The cron code needs some cleanup because right now it is spread over
multiple modules. I'd rather do the cleanup before adding cron to win
service.

Massimo

On Dec 4, 4:32 am, SergeyPo  wrote:
> Hello,
>
> I am having problem with cron. My crontable:
>
> */5   *   *   *   *  root *default/getcaptypes
>
> Controller method 'default/getcaptypes' works fine when you call it
> directly. It works fine when called by cron when web2py is running as
> console. But it is not working when I start web2py as windows
> service.
>
> Options file contains:
>
> extcron = None
> nocron = None
>
> Where else should I look?
>
> Sergey

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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.




Re: [web2py:36504] Re: Someone have examples using mongodb

2009-12-04 Thread Alex Fanjul
+1 Im also pretty interested in have a key-value document oriented 
database implemented in web2py to do "real-time" services like twitter, 
bitly, etc.
I've heard about couchdb but not this one (mongDB), any major differences?

Alex F

El 04/12/2009 4:10, mdipierro escribió:
> It should be easy to port the DAL on mongoDB. Look into gluon/contrib/
> gql.py
> I can help, I ma very much interested in this.
>
> massimo
>
> On Dec 3, 6:37 pm, Alexandre Andrade  wrote:
>
>> I found some messages at the list talk about mongodb and maybe a
>> DAL-like interface.
>>
>> Someone have examples of using web2py with mongobd?
>>
>> I'm planning work in a workflow/bpm app using it.
>>
>> Any help welcome.
>>
>> --
>> Atenciosamente
>>
>> --
>> =
>> Alexandre Andrade
>> Hipercenter.com
>>  
> --
>
> You received this message because you are subscribed to the Google Groups 
> "web2py-users" group.
> To post to this group, send email to web...@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.
>
>
>
>

-- 
Alejandro Fanjul Fdez.
alex.fan...@gmail.com
www.mhproject.org

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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.




Re: [web2py:36505] Re: Someone have examples using mongodb

2009-12-04 Thread Massimo Di Pierro
They are very similar but  MongoDB has commercial support, is faster  
and the only one actually used in serious production environments.
CouchDB is more popular because ships with ubuntu.

Massimo

On Dec 4, 2009, at 10:00 AM, Alex Fanjul wrote:

> +1 Im also pretty interested in have a key-value document oriented
> database implemented in web2py to do "real-time" services like  
> twitter,
> bitly, etc.
> I've heard about couchdb but not this one (mongDB), any major  
> differences?
>
> Alex F
>
> El 04/12/2009 4:10, mdipierro escribió:
>> It should be easy to port the DAL on mongoDB. Look into gluon/ 
>> contrib/
>> gql.py
>> I can help, I ma very much interested in this.
>>
>> massimo
>>
>> On Dec 3, 6:37 pm, Alexandre Andrade   
>> wrote:
>>
>>> I found some messages at the list talk about mongodb and maybe a
>>> DAL-like interface.
>>>
>>> Someone have examples of using web2py with mongobd?
>>>
>>> I'm planning work in a workflow/bpm app using it.
>>>
>>> Any help welcome.
>>>
>>> --
>>> Atenciosamente
>>>
>>> --
>>> =
>>> Alexandre Andrade
>>> Hipercenter.com
>>>
>> --
>>
>> You received this message because you are subscribed to the Google  
>> Groups "web2py-users" group.
>> To post to this group, send email to web...@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 
>> .
>>
>>
>>
>>
>
> -- 
> Alejandro Fanjul Fdez.
> alex.fan...@gmail.com
> www.mhproject.org

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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:36506] Finding the Sum for a Specific Field in a Query

2009-12-04 Thread johntynan
I have a question about finding the sum of a specific field across the
results of an entire query

While this statement will return the total number (len) of records
returned in a query:
pledgedrive_total_pledges = len(db
(db.pledge.pledgedrive==pledgedrive_id).select())

I would like to get the total dollars (sum) of the "amount" field that
each of these records contains.

Thank you for your help.

JT

P.S. As an extra bonus, I am most pleased to discover the jquery ajax/
load script.  I may be saying goodbye to framesets for good:

http://code.google.com/p/pledgedrivetracker/source/browse/pledgedrives/views/default/report_mini_pledgedrive_goal.html?r=7a806e6a8ea0151f9c0977eb7599365f9ca9d48a

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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:36507] Re: upgrade app

2009-12-04 Thread Yarko Tymciurak
On Dec 3, 11:39 pm, mdipierro  wrote:
> > > There are two problems. Consider the errors folder. README.txt would
> > > show up in the admin error page.
>
> > Then find a way to do it - change so that errors does not show either
> > README or anything that has the pattern '__.*__';
>
> I do not like the idea that I have to modify the code to use
> mercurial.
> It tells me there is a major design flaw in mercurial. An empty folder
> should be treated as a file.

In UNIX historyically a directory is just a file (everything in UNIX
is a file - one of unix's breakthroughs) - but you cannot assume that
in general for different operating systems.

It is a stronger argument to state there is a design improvement  in
web2py ("flaw" is a loaded term, wanting hard objective evidence).

Web2py could be more robust, perform gracefully when needed empty
directories are missing:  consider problems people have had when they
have DELETED errors or database directories in an attempt to restart
their applications after bugs - web2py could help here.  This
(benefits beyond SCM handling) is evidence that this is both
desirable, and a responsibility that belongs with web2py. Consider (in
general) a module that depends on an empty directory, what does it do
when it doesn't have what it expects?  What should it do?  Throw up
it's hands and give up?  Make the needed empty directory?  Call a
utility to handle this?

I suggest that web2py will improve by updating it to create missing
empty application directories.

NOTE: Historically, none of the early versioning systems versioned
directories.  Perhaps the first was HP when they bought  Apollo
workstations, and adapted their build systems - which resulted in
"ClearCase" (I recall around 1995).  SVN later (2000) added directory
handling - this is a relatively new thing, and arguable about benefit
vs. additional complexity it adds.  In fact, file renames, file and
directory moves do not correlate well with "directories being first
class versioned objects" --  see 
http://better-scm.berlios.de/comparison/comparison.html#move
(and http://en.wikipedia.org/wiki/Comparison_of_revision_control_software).

I think it is important to present an objective analysis - suggesting
this is a mercurial defect must then lump this as a purported defect
of all but about 3 or 4 (?) out of dozens of SCM systems, and of those
I think only one is open source.  Clearly, this opinion does is not
supported by objective data (evidence, arguments).

A general approach towards robustness is what is interesting here  We
are discussing code-level responsibility for ensuring empty directory
existence which would [1] eliminate any dependency on SCM versioning,
AND [2] ease user operation and development time - "clean recovery".
It would be incredibly simple to make web2py more robust and
friendly.  This topic (empty directories) in and of itself is a small,
relatively unimportant point;  the general design approach of reducing
dependence systematically (decoupling) and focusing on robustness is
interesting.

>
> > It will not break backward compatibility - there are always ways to do
> > this, if you want to.
>
> > > Consider the uploads page. How do I
> > > hgingore everything BUT README.txt?
>
> >http://www.selenic.com/mercurial/hgignore.5.html:
>
> > I'm not sure how to negate a whole pattern (except for the ugly
> > sequence of character class things); if you can't find something
> > better, this should do it:
>
> > ^[^R][^E][^A][^D][^M][^E]$
>
> No. this would not exclude every other file by README.

You are correct - I guessed; here is what DOES work:

   syntax: regexp
   ^(?!README$)

This will match "beginning of line" only if it is not followed by
"README"+END-OF-LINE; this will match any file (e.g. hg will ignore)
except README.

>
> Anyway, I am trying mercurial right now and posted a project on google
> hg:
>
>    http://code.google.com/p/pythonisosurfaces/
>
> So far Cons:
> 1) the empty folders (they are not version controller)

Not a CON: a gift pointing out how to make web2py more generally
robust / friendly.

> 2) the security model (it assigns me a password instead of letting me
> register a public key as in launchpad).

Not sure what you are talking about here (hg does not assign you a
password; is this something google code is doing? what happens if you
use an SSL connection, e.g. https://.  ?)

> Pros:
> 1) It is faster than lauchpad

incredibly faster several orders of magnitude...

- Yarko

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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:36508] Re: Finding the Sum for a Specific Field in a Query

2009-12-04 Thread mdipierro
I think this should do it:

r = db(db.pledge.pledgedrive==pledgedrive_id).select
(db.pledge.amount.sum())
total=r[0]._extra[db.pledge.amount.sum()]

It will not work on GAE.

On Dec 4, 10:58 am, johntynan  wrote:
> I have a question about finding the sum of a specific field across the
> results of an entire query
>
> While this statement will return the total number (len) of records
> returned in a query:
> pledgedrive_total_pledges = len(db
> (db.pledge.pledgedrive==pledgedrive_id).select())
>
> I would like to get the total dollars (sum) of the "amount" field that
> each of these records contains.
>
> Thank you for your help.
>
> JT
>
> P.S. As an extra bonus, I am most pleased to discover the jquery ajax/
> load script.  I may be saying goodbye to framesets for good:
>
> http://code.google.com/p/pledgedrivetracker/source/browse/pledgedrive...

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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:36509] Re: upgrade app

2009-12-04 Thread mdipierro
> I suggest that web2py will improve by updating it to create missing
> empty application directories.

It does that already. It just needs testing (check in everything with
hg, delete everything, checkout everything. Does it work?)

> You are correct - I guessed; here is what DOES work:
>
>    syntax: regexp
>    ^(?!README$)

Thanks Yarko. Hopefully we do not need it if we take the approach that
web2py creates the missing folder.

> > 2) the security model (it assigns me a password instead of letting me
> > register a public key as in launchpad).
>
> Not sure what you are talking about here (hg does not assign you a
> password; is this something google code is doing? what happens if you
> use an SSL connection, e.g. https://.  ?)

It is something that google code does.

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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:36510] Re: Finding the Sum for a Specific Field in a Query

2009-12-04 Thread Yarko Tymciurak
On Dec 4, 10:58 am, johntynan  wrote:
> I have a question about finding the sum of a specific field across the
> results of an entire query
>
> While this statement will return the total number (len) of records
> returned in a query:
> pledgedrive_total_pledges = len(db
> (db.pledge.pledgedrive==pledgedrive_id).select())

Check out the sum (P.176) and count (p. 169) functions in the
manual;

>
> I would like to get the total dollars (sum) of the "amount" field that
> each of these records contains.
>
> Thank you for your help.
>
> JT
>
> P.S. As an extra bonus, I am most pleased to discover the jquery ajax/
> load script.  I may be saying goodbye to framesets for good:
>
> http://code.google.com/p/pledgedrivetracker/source/browse/pledgedrive...

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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:36511] Re: web2py users growth

2009-12-04 Thread Joe Barnhart
Always the contrarian, I have a completely different view on
comments...

Comments are the things programmers write intending to make the code
clearer, but they wind up being WRONG most of the time.  Why?  Because
the code changes and the comments don't.

Many studies support this.  Comments that are misleading and wrong are
the norm, not the exception, in a typical software project.  The more
effort put into comments, the more likely they won't be changed as the
code underneath evolves.  "After all," the programmer thinks to
himself, "it's just a small change and the comments are so pretty and
well structured -- nobody will be confused by such a small change in
the code."

It's far better to write the code in as clear a way as possible and
let the code itself, along with carefully chosen variable names, BE
the documentation.  In my day job we have 500,000 lines of Smalltalk
and not one single comment.  Our "project" is small -- only about five
people have ever written code on this system, but we still manage to
handle our own code as well as suggest changes to other folk's by just
reading the code itself.

On Dec 3, 5:28 pm, waTR  wrote:

> Comments in the code I see as the Achilles' heel of this project at
> the moment.

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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:36512] webfaction domain redirection with wsgi applications

2009-12-04 Thread blackthorne
I have a apachewsgi webfaction application which is holding a web2py
that keeps multiple web applications.
If I map the domain www.y.org to it, I am able to access its web
applications using www.y.org/application1 , www.y.org/application2 ,
www.y.org/application3. Well, you know that...

Now, I got a new domain which is already managed by webfaction and I
want to map it to one of the web applications powered by that
apachewsgi application.

www.my_awesome_domain.com --> (Application apachewsgi)/
my_awesome_web2py_app

This seems simple (and it is) but I'm having a very bad time making
threw it so I kindly ask for your help because I know there many
web2py users using webfaction hosting service that probably came to
this problem before me.

I would gently ask to go into the juicy parts (accurate configuration
lines) because I've already tried mod_rewrite and mod_proxy but I am
not sure if I did it right.

Thank you,
Best Regards

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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:36513] Re: webfaction domain redirection with wsgi applications

2009-12-04 Thread mdipierro
Ideally you would apache to do the rewriting but I am not if
webfaction allows that.

You can use routes to map domainnames into apps.

See if you can figure out the syntax form the book or I will try come
up with an example.

Massimo

On Dec 4, 11:27 am, blackthorne  wrote:
> I have a apachewsgi webfaction application which is holding a web2py
> that keeps multiple web applications.
> If I map the domainwww.y.orgto it, I am able to access its web
> applications 
> usingwww.y.org/application1,www.y.org/application2,www.y.org/application3. 
> Well, you know that...
>
> Now, I got a new domain which is already managed by webfaction and I
> want to map it to one of the web applications powered by that
> apachewsgi application.
>
> www.my_awesome_domain.com--> (Application apachewsgi)/
> my_awesome_web2py_app
>
> This seems simple (and it is) but I'm having a very bad time making
> threw it so I kindly ask for your help because I know there many
> web2py users using webfaction hosting service that probably came to
> this problem before me.
>
> I would gently ask to go into the juicy parts (accurate configuration
> lines) because I've already tried mod_rewrite and mod_proxy but I am
> not sure if I did it right.
>
> Thank you,
> Best Regards

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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.




Re: [web2py:36514] Re: getting stable version equivalent from SVN

2009-12-04 Thread Jonathan Lundell
On Dec 4, 2009, at 6:08 AM, Fred wrote:

> On Dec 3, 3:42 pm, Jonathan Lundell  wrote:
>> Massimo is pretty good about announcing release versions in svn comments.
> 
> I see now that there are quite a few SVN log entries with release
> version numbers.  1.71.3 wasn't there though and so I went with the
> process that I outlined above.

1.71.3 never got released, but it does show up in the svn log at r1462 & r1463, 
both 11/26.

> 
> But my process is a kluge.  I would much prefer tagging releases as a
> distinct copies in SVN.

Massimo: when you create a tag in svn, svn creates a snapshot of the tree at 
the point of the tag.

http://svnbook.red-bean.com/en/1.1/ch04s06.html

The nice thing about it is that you can create a tag for an official release, 
and then users can access the release by its name, rather than having to figure 
out the corresponding svn revision number.

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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.




Re: [web2py:36515] Re: upgrade app

2009-12-04 Thread Thadeus Burgess
As long as this community is growing, we really need to move to a
DVCS. Instead of contributors having to mail you diffs, you could just
choose to "pull" from our cloned repositories, and pick out what you
want... At any time.

-Thadeus





On Fri, Dec 4, 2009 at 11:16 AM, mdipierro  wrote:
>> I suggest that web2py will improve by updating it to create missing
>> empty application directories.
>
> It does that already. It just needs testing (check in everything with
> hg, delete everything, checkout everything. Does it work?)
>
>> You are correct - I guessed; here is what DOES work:
>>
>>    syntax: regexp
>>    ^(?!README$)
>
> Thanks Yarko. Hopefully we do not need it if we take the approach that
> web2py creates the missing folder.
>
>> > 2) the security model (it assigns me a password instead of letting me
>> > register a public key as in launchpad).
>>
>> Not sure what you are talking about here (hg does not assign you a
>> password; is this something google code is doing? what happens if you
>> use an SSL connection, e.g. https://.  ?)
>
> It is something that google code does.
>
> --
>
> You received this message because you are subscribed to the Google Groups 
> "web2py-users" group.
> To post to this group, send email to web...@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.
>
>
>

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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.




Re: [web2py:36516] Re: web2py users growth

2009-12-04 Thread Thadeus Burgess
There are many parts of gluon that I look at and go... wtf.

And read it again, and go... wtf.

Only to find out the wtf comes from another module that has another
wtf in it that comes from another module..

If the chain of cohesion was commented, gluon would be much much
easier to learn.

-Thadeus





On Fri, Dec 4, 2009 at 11:24 AM, Joe  Barnhart  wrote:
> Always the contrarian, I have a completely different view on
> comments...
>
> Comments are the things programmers write intending to make the code
> clearer, but they wind up being WRONG most of the time.  Why?  Because
> the code changes and the comments don't.
>
> Many studies support this.  Comments that are misleading and wrong are
> the norm, not the exception, in a typical software project.  The more
> effort put into comments, the more likely they won't be changed as the
> code underneath evolves.  "After all," the programmer thinks to
> himself, "it's just a small change and the comments are so pretty and
> well structured -- nobody will be confused by such a small change in
> the code."
>
> It's far better to write the code in as clear a way as possible and
> let the code itself, along with carefully chosen variable names, BE
> the documentation.  In my day job we have 500,000 lines of Smalltalk
> and not one single comment.  Our "project" is small -- only about five
> people have ever written code on this system, but we still manage to
> handle our own code as well as suggest changes to other folk's by just
> reading the code itself.
>
> On Dec 3, 5:28 pm, waTR  wrote:
>
>> Comments in the code I see as the Achilles' heel of this project at
>> the moment.
>
> --
>
> You received this message because you are subscribed to the Google Groups 
> "web2py-users" group.
> To post to this group, send email to web...@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.
>
>
>

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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:36517] Data for GAE

2009-12-04 Thread Gary
I've been trying to deploy an application to GAE and I'm confused by
the fact that it created the 'administration' files like auth_user,
but didn't create the files for the application.  I've even taken the
prime number paging program from the web2py manual and, although it
works on localhost, it fails in local dev GAE.

Here's the log from local GAE:

== Start Log ===

2009-12-04 12:36:52 PM Running command: "['/usr/bin/python2.5', '/home/
gkm/google_appengine/dev_appserver.py', '--admin_console_server=', '--
port=8080', '/home/gkm/google_appengine/web2py']"
INFO 2009-12-04 17:36:53,877 dev_appserver_main.py:478] Running
application verizonpal on port 8080: http://localhost:8080
WARNING  2009-12-04 17:37:03,879 portalocker.py:91] no file locking
WARNING  2009-12-04 17:37:04,391 cache.py:36] unable to import dbhash
WARNING  2009-12-04 17:37:04,532 main.py:57] unable to import
wsgiserver
INFO 2009-12-04 17:37:04,543 gaehandler.py:56]  Request:
0.84ms/0.00ms (real time/cpu time)
INFO 2009-12-04 17:37:04,551 dev_appserver.py:3178] "GET /prime
HTTP/1.1" 400 -
INFO 2009-12-04 17:37:04,558 dev_appserver_index.py:205] Updating /
home/gkm/google_appengine/web2py/index.yaml
ERROR2009-12-04 17:37:32,786 restricted.py:58] In FILE: /home/gkm/
google_appengine/web2py/applications/primes/models/db.py

Traceback (most recent call last):
  File "/home/gkm/google_appengine/web2py/gluon/restricted.py", line
184, in restricted
exec ccode in environment
  File "/home/gkm/google_appengine/web2py/applications/primes/models/
db.py", line 71, in 
if len(db().select(db.prime.id))==0:
  File "/home/gkm/google_appengine/web2py/gluon/contrib/gql.py", line
666, in select
(items, tablename, fields) = self._select(*fields, **attributes)
  File "/home/gkm/google_appengine/web2py/gluon/contrib/gql.py", line
611, in _select
table = self._get_table_or_raise()
  File "/home/gkm/google_appengine/web2py/gluon/contrib/gql.py", line
590, in _get_table_or_raise
raise SyntaxError, 'Set: no tables selected'
SyntaxError: Set: no tables selected

INFO 2009-12-04 17:37:32,787 gaehandler.py:56]  Request:
194.54ms/150.00ms (real time/cpu time)
INFO 2009-12-04 17:37:32,794 dev_appserver.py:3178] "GET /primes
HTTP/1.1" 500 -

INFO 2009-12-04 17:14:58,695 gaehandler.py:56]  Request:
63.15ms/60.00ms (real time/cpu time)
INFO 2009-12-04 17:14:58,702 dev_appserver.py:3178] "GET /primes
HTTP/1.1" 500 -
INFO 2009-12-04 17:14:58,706 dev_appserver_index.py:205] Updating /
home/gkm/google_appengine/web2py/index.yaml

== End Log =

I tried to read the code, but it's over my head.  I'd guess that it
has something to do with GAE unsupported functions, but this:

 Custom part of db.py ===

db.define_table('prime',Field('value','integer'))

def isprime(p):
for i in range(2,p):
if p%i==0: return False
return True

if len(db().select(db.prime.id))==0:
p=2
for i in range(1000):
while not isprime(p): p+=1
db.prime.insert(value=p)
p+=1

 End 

is the only custom code in db.py - directly from the manual.

Should web2py create the data files?  If not, how do they get created?

Thanks,
Gary

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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.




Re: [web2py:36518] Re: Finding the Sum for a Specific Field in a Query

2009-12-04 Thread Thadeus Burgess
virtualfields?

http://groups.google.com/group/web2py/browse_thread/thread/c684346f13773f93/5f10ac526197557a?lnk=gst&q=virtual+field#5f10ac526197557a

-Thadeus





On Fri, Dec 4, 2009 at 11:17 AM, Yarko Tymciurak
 wrote:
> On Dec 4, 10:58 am, johntynan  wrote:
>> I have a question about finding the sum of a specific field across the
>> results of an entire query
>>
>> While this statement will return the total number (len) of records
>> returned in a query:
>> pledgedrive_total_pledges = len(db
>> (db.pledge.pledgedrive==pledgedrive_id).select())
>
> Check out the sum (P.176) and count (p. 169) functions in the
> manual;
>
>>
>> I would like to get the total dollars (sum) of the "amount" field that
>> each of these records contains.
>>
>> Thank you for your help.
>>
>> JT
>>
>> P.S. As an extra bonus, I am most pleased to discover the jquery ajax/
>> load script.  I may be saying goodbye to framesets for good:
>>
>> http://code.google.com/p/pledgedrivetracker/source/browse/pledgedrive...
>
> --
>
> You received this message because you are subscribed to the Google Groups 
> "web2py-users" group.
> To post to this group, send email to web...@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.
>
>
>

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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:36519] Re: Someone have examples using mongodb

2009-12-04 Thread Yarko Tymciurak

On Dec 4, 10:08 am, Massimo Di Pierro  wrote:
> They are very similar but  MongoDB has commercial support, is faster  
> and the only one actually used in serious production environments.
> CouchDB is more popular because ships with ubuntu.

Mongo uses a binary JSON;
See
http://www.mongodb.org/display/DOCS/MongoDB,+CouchDB,+MySQL+Compare+Grid
and
http://www.mongodb.org/display/DOCS/Comparing+Mongo+DB+and+Couch+DB

There seem to be useful observations there.

There are some rich links if you google "compare mongodb couchdb"

- Yarko

>
> Massimo
>
> On Dec 4, 2009, at 10:00 AM, Alex Fanjul wrote:
>
>
>
> > +1 Im also pretty interested in have a key-value document oriented
> > database implemented in web2py to do "real-time" services like  
> > twitter,
> > bitly, etc.
> > I've heard about couchdb but not this one (mongDB), any major  
> > differences?
>
> > Alex F
>
> > El 04/12/2009 4:10, mdipierro escribió:
> >> It should be easy to port the DAL on mongoDB. Look into gluon/
> >> contrib/
> >> gql.py
> >> I can help, I ma very much interested in this.
>
> >> massimo
>
> >> On Dec 3, 6:37 pm, Alexandre Andrade  
> >> wrote:
>
> >>> I found some messages at the list talk about mongodb and maybe a
> >>> DAL-like interface.
>
> >>> Someone have examples of using web2py with mongobd?
>
> >>> I'm planning work in a workflow/bpm app using it.
>
> >>> Any help welcome.
>
> >>> --
> >>> Atenciosamente
>
> >>> --
> >>> =
> >>> Alexandre Andrade
> >>> Hipercenter.com
>
> >> --
>
> >> You received this message because you are subscribed to the Google  
> >> Groups "web2py-users" group.
> >> To post to this group, send email to web...@googlegroups.com.
> >> To unsubscribe from this group, send email to 
> >> web2py+unsubscr...@googlegroups.com
> >> .
> >> For more options, visit this group 
> >> athttp://groups.google.com/group/web2py?hl=en
> >> .
>
> > --
> > Alejandro Fanjul Fdez.
> > alex.fan...@gmail.com
> >www.mhproject.org

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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.




Re: [web2py:36520] Re: web2py users growth

2009-12-04 Thread Jonathan Lundell
On Dec 4, 2009, at 9:45 AM, Thadeus Burgess wrote:

> There are many parts of gluon that I look at and go... wtf.
> 
> And read it again, and go... wtf.
> 
> Only to find out the wtf comes from another module that has another
> wtf in it that comes from another module..
> 
> If the chain of cohesion was commented, gluon would be much much
> easier to learn.

Amen, Brother Thadeus. 

Sometimes a live debug session helps, but that's generally overkill, and not 
always possible. Readable code, especially with comments as to *intent*, is 
hard to beat.

> 


--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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:36521] Re: upgrade app

2009-12-04 Thread mdipierro
While I not against the move.
Actually I like the current mechanism for people emailing me patches.
Using a web based system will actually turn out to be more work.

Massimo

On Dec 4, 11:42 am, Thadeus Burgess  wrote:
> As long as this community is growing, we really need to move to a
> DVCS. Instead of contributors having to mail you diffs, you could just
> choose to "pull" from our cloned repositories, and pick out what you
> want... At any time.
>
> -Thadeus
>
> On Fri, Dec 4, 2009 at 11:16 AM, mdipierro  wrote:
> >> I suggest that web2py will improve by updating it to create missing
> >> empty application directories.
>
> > It does that already. It just needs testing (check in everything with
> > hg, delete everything, checkout everything. Does it work?)
>
> >> You are correct - I guessed; here is what DOES work:
>
> >>    syntax: regexp
> >>    ^(?!README$)
>
> > Thanks Yarko. Hopefully we do not need it if we take the approach that
> > web2py creates the missing folder.
>
> >> > 2) the security model (it assigns me a password instead of letting me
> >> > register a public key as in launchpad).
>
> >> Not sure what you are talking about here (hg does not assign you a
> >> password; is this something google code is doing? what happens if you
> >> use an SSL connection, e.g. https://.  ?)
>
> > It is something that google code does.
>
> > --
>
> > You received this message because you are subscribed to the Google Groups 
> > "web2py-users" group.
> > To post to this group, send email to web...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > web2py+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/web2py?hl=en.
>
>

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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:36522] Re: Data for GAE

2009-12-04 Thread mdipierro
Please change

   db().select(db.prime.id)

with

   db(db.prime.id>0).select()



On Dec 4, 11:48 am, Gary  wrote:
> I've been trying to deploy an application to GAE and I'm confused by
> the fact that it created the 'administration' files like auth_user,
> but didn't create the files for the application.  I've even taken the
> prime number paging program from the web2py manual and, although it
> works on localhost, it fails in local dev GAE.
>
> Here's the log from local GAE:
>
> == Start Log ===
>
> 2009-12-04 12:36:52 PM Running command: "['/usr/bin/python2.5', '/home/
> gkm/google_appengine/dev_appserver.py', '--admin_console_server=', '--
> port=8080', '/home/gkm/google_appengine/web2py']"
> INFO     2009-12-04 17:36:53,877 dev_appserver_main.py:478] Running
> application verizonpal on port 8080:http://localhost:8080
> WARNING  2009-12-04 17:37:03,879 portalocker.py:91] no file locking
> WARNING  2009-12-04 17:37:04,391 cache.py:36] unable to import dbhash
> WARNING  2009-12-04 17:37:04,532 main.py:57] unable to import
> wsgiserver
> INFO     2009-12-04 17:37:04,543 gaehandler.py:56]  Request:
> 0.84ms/0.00ms (real time/cpu time)
> INFO     2009-12-04 17:37:04,551 dev_appserver.py:3178] "GET /prime
> HTTP/1.1" 400 -
> INFO     2009-12-04 17:37:04,558 dev_appserver_index.py:205] Updating /
> home/gkm/google_appengine/web2py/index.yaml
> ERROR    2009-12-04 17:37:32,786 restricted.py:58] In FILE: /home/gkm/
> google_appengine/web2py/applications/primes/models/db.py
>
> Traceback (most recent call last):
>   File "/home/gkm/google_appengine/web2py/gluon/restricted.py", line
> 184, in restricted
>     exec ccode in environment
>   File "/home/gkm/google_appengine/web2py/applications/primes/models/
> db.py", line 71, in 
>     if len(db().select(db.prime.id))==0:
>   File "/home/gkm/google_appengine/web2py/gluon/contrib/gql.py", line
> 666, in select
>     (items, tablename, fields) = self._select(*fields, **attributes)
>   File "/home/gkm/google_appengine/web2py/gluon/contrib/gql.py", line
> 611, in _select
>     table = self._get_table_or_raise()
>   File "/home/gkm/google_appengine/web2py/gluon/contrib/gql.py", line
> 590, in _get_table_or_raise
>     raise SyntaxError, 'Set: no tables selected'
> SyntaxError: Set: no tables selected
>
> INFO     2009-12-04 17:37:32,787 gaehandler.py:56]  Request:
> 194.54ms/150.00ms (real time/cpu time)
> INFO     2009-12-04 17:37:32,794 dev_appserver.py:3178] "GET /primes
> HTTP/1.1" 500 -
>
> INFO     2009-12-04 17:14:58,695 gaehandler.py:56]  Request:
> 63.15ms/60.00ms (real time/cpu time)
> INFO     2009-12-04 17:14:58,702 dev_appserver.py:3178] "GET /primes
> HTTP/1.1" 500 -
> INFO     2009-12-04 17:14:58,706 dev_appserver_index.py:205] Updating /
> home/gkm/google_appengine/web2py/index.yaml
>
> == End Log =
>
> I tried to read the code, but it's over my head.  I'd guess that it
> has something to do with GAE unsupported functions, but this:
>
>  Custom part of db.py ===
>
> db.define_table('prime',Field('value','integer'))
>
> def isprime(p):
>     for i in range(2,p):
>         if p%i==0: return False
>     return True
>
> if len(db().select(db.prime.id))==0:
>     p=2
>     for i in range(1000):
>         while not isprime(p): p+=1
>         db.prime.insert(value=p)
>         p+=1
>
>  End 
>
> is the only custom code in db.py - directly from the manual.
>
> Should web2py create the data files?  If not, how do they get created?
>
> Thanks,
> Gary

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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:36523] Re: webfaction domain redirection with wsgi applications

2009-12-04 Thread blackthorne
Problem with routes is that I can't differenciate the traffic by its
source (I think).
Then, all other applications powered by web2py wouldn't become
acessible

e.g.:
Client (browser) -> HTTPD (nginx)  --> Apache (wsgi) -> web2py
(wsgihandler) -> my_web2py_application1 (routes)
 ^
 all traffic goes to
"127.0.0.1:port"

Please, correct me if I am wrong.
Thank you, best regards


On Dec 4, 5:32 pm, mdipierro  wrote:
> Ideally you would apache to do the rewriting but I am not if
> webfaction allows that.
>
> You can use routes to map domainnames into apps.
>
> See if you can figure out the syntax form the book or I will try come
> up with an example.
>
> Massimo
>
> On Dec 4, 11:27 am, blackthorne  wrote:
>
>
>
> > I have a apachewsgi webfaction application which is holding a web2py
> > that keeps multiple web applications.
> > If I map the domainwww.y.orgtoit, I am able to access its web
> > applications 
> > usingwww.y.org/application1,www.y.org/application2,www.y.org/application3. 
> > Well, you know that...
>
> > Now, I got a new domain which is already managed by webfaction and I
> > want to map it to one of the web applications powered by that
> > apachewsgi application.
>
> >www.my_awesome_domain.com--> (Application apachewsgi)/
> > my_awesome_web2py_app
>
> > This seems simple (and it is) but I'm having a very bad time making
> > threw it so I kindly ask for your help because I know there many
> > web2py users using webfaction hosting service that probably came to
> > this problem before me.
>
> > I would gently ask to go into the juicy parts (accurate configuration
> > lines) because I've already tried mod_rewrite and mod_proxy but I am
> > not sure if I did it right.
>
> > Thank you,
> > Best Regards

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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:36524] Re: web2py users growth

2009-12-04 Thread mdipierro
LOL

next time bring it up on the developers list.

I do not mind explaining how things work inside and perhaps we will
find out there is a better way to implement it. ;-)

Massimo



On Dec 4, 11:45 am, Thadeus Burgess  wrote:
> There are many parts of gluon that I look at and go... wtf.
>
> And read it again, and go... wtf.
>
> Only to find out the wtf comes from another module that has another
> wtf in it that comes from another module..
>
> If the chain of cohesion was commented, gluon would be much much
> easier to learn.
>
> -Thadeus
>
> On Fri, Dec 4, 2009 at 11:24 AM, Joe  Barnhart  wrote:
>
> > Always the contrarian, I have a completely different view on
> > comments...
>
> > Comments are the things programmers write intending to make the code
> > clearer, but they wind up being WRONG most of the time.  Why?  Because
> > the code changes and the comments don't.
>
> > Many studies support this.  Comments that are misleading and wrong are
> > the norm, not the exception, in a typical software project.  The more
> > effort put into comments, the more likely they won't be changed as the
> > code underneath evolves.  "After all," the programmer thinks to
> > himself, "it's just a small change and the comments are so pretty and
> > well structured -- nobody will be confused by such a small change in
> > the code."
>
> > It's far better to write the code in as clear a way as possible and
> > let the code itself, along with carefully chosen variable names, BE
> > the documentation.  In my day job we have 500,000 lines of Smalltalk
> > and not one single comment.  Our "project" is small -- only about five
> > people have ever written code on this system, but we still manage to
> > handle our own code as well as suggest changes to other folk's by just
> > reading the code itself.
>
> > On Dec 3, 5:28 pm, waTR  wrote:
>
> >> Comments in the code I see as the Achilles' heel of this project at
> >> the moment.
>
> > --
>
> > You received this message because you are subscribed to the Google Groups 
> > "web2py-users" group.
> > To post to this group, send email to web...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > web2py+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/web2py?hl=en.
>
>

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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:36525] Re: webfaction domain redirection with wsgi applications

2009-12-04 Thread blackthorne
Problem with routes is that I can't differenciate the traffic by its
source (I think).
Then, all other applications powered by web2py wouldn't become
acessible

e.g.:
Client (browser) -> HTTPD (nginx)  --> Apache (wsgi) -> web2py
(wsgihandler) -> my_web2py_application1 (routes)

all traffic gets redirected to "127.0.0.1:port" when it gets to the
Apache (wsgi), so how can routes tell the difference to map into
domain names?

Please, correct me if I am wrong.
Thank you, best regards

On Dec 4, 5:32 pm, mdipierro  wrote:
> Ideally you would apache to do the rewriting but I am not if
> webfaction allows that.
>
> You can use routes to map domainnames into apps.
>
> See if you can figure out the syntax form the book or I will try come
> up with an example.
>
> Massimo
>
> On Dec 4, 11:27 am, blackthorne  wrote:
>
>
>
> > I have a apachewsgi webfaction application which is holding a web2py
> > that keeps multiple web applications.
> > If I map the domainwww.y.orgtoit, I am able to access its web
> > applications 
> > usingwww.y.org/application1,www.y.org/application2,www.y.org/application3. 
> > Well, you know that...
>
> > Now, I got a new domain which is already managed by webfaction and I
> > want to map it to one of the web applications powered by that
> > apachewsgi application.
>
> >www.my_awesome_domain.com--> (Application apachewsgi)/
> > my_awesome_web2py_app
>
> > This seems simple (and it is) but I'm having a very bad time making
> > threw it so I kindly ask for your help because I know there many
> > web2py users using webfaction hosting service that probably came to
> > this problem before me.
>
> > I would gently ask to go into the juicy parts (accurate configuration
> > lines) because I've already tried mod_rewrite and mod_proxy but I am
> > not sure if I did it right.
>
> > Thank you,
> > Best Regards

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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:36526] Re: webfaction domain redirection with wsgi applications

2009-12-04 Thread mdipierro
The proxing should  not change the HTTP_HOST in the header.

On Dec 4, 12:09 pm, blackthorne  wrote:
> Problem with routes is that I can't differenciate the traffic by its
> source (I think).
> Then, all other applications powered by web2py wouldn't become
> acessible
>
> e.g.:
> Client (browser) -> HTTPD (nginx)  --> Apache (wsgi) -> web2py
> (wsgihandler) -> my_web2py_application1 (routes)
>
> all traffic gets redirected to "127.0.0.1:port" when it gets to the
> Apache (wsgi), so how can routes tell the difference to map into
> domain names?
>
> Please, correct me if I am wrong.
> Thank you, best regards
>
> On Dec 4, 5:32 pm, mdipierro  wrote:
>
> > Ideally you would apache to do the rewriting but I am not if
> > webfaction allows that.
>
> > You can use routes to map domainnames into apps.
>
> > See if you can figure out the syntax form the book or I will try come
> > up with an example.
>
> > Massimo
>
> > On Dec 4, 11:27 am, blackthorne  wrote:
>
> > > I have a apachewsgi webfaction application which is holding a web2py
> > > that keeps multiple web applications.
> > > If I map the domainwww.y.orgtoit, I am able to access its web
> > > applications 
> > > usingwww.y.org/application1,www.y.org/application2,www.y.org/application3.
> > >  Well, you know that...
>
> > > Now, I got a new domain which is already managed by webfaction and I
> > > want to map it to one of the web applications powered by that
> > > apachewsgi application.
>
> > >www.my_awesome_domain.com--> (Application apachewsgi)/
> > > my_awesome_web2py_app
>
> > > This seems simple (and it is) but I'm having a very bad time making
> > > threw it so I kindly ask for your help because I know there many
> > > web2py users using webfaction hosting service that probably came to
> > > this problem before me.
>
> > > I would gently ask to go into the juicy parts (accurate configuration
> > > lines) because I've already tried mod_rewrite and mod_proxy but I am
> > > not sure if I did it right.
>
> > > Thank you,
> > > Best Regards
>
>

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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:36527] Re: Someone have examples using mongodb

2009-12-04 Thread Yarko Tymciurak
On Dec 4, 10:08 am, Massimo Di Pierro  wrote:
> They are very similar but  MongoDB has commercial support, is faster  
> and the only one actually used in serious production environments.
> CouchDB is more popular because ships with ubuntu.

Looking at my 2 Ubuntu installs, CouchDB is not distributed with
Ubuntu 9.04;
it is included as part of the evolution email client in 9.10, and for
desktop syncing:

In Ubuntu 9.10, see:
file:///usr/share/doc/python-couchdb/index.html
and
https://wiki/ubuntu.com/MeetingLogs/devweek0909/CouchDB  which has
examples of using couchdb desktop

>
> Massimo
>
> On Dec 4, 2009, at 10:00 AM, Alex Fanjul wrote:
>
>
>
> > +1 Im also pretty interested in have a key-value document oriented
> > database implemented in web2py to do "real-time" services like  
> > twitter,
> > bitly, etc.
> > I've heard about couchdb but not this one (mongDB), any major  
> > differences?
>
> > Alex F
>
> > El 04/12/2009 4:10, mdipierro escribió:
> >> It should be easy to port the DAL on mongoDB. Look into gluon/
> >> contrib/
> >> gql.py
> >> I can help, I ma very much interested in this.
>
> >> massimo
>
> >> On Dec 3, 6:37 pm, Alexandre Andrade  
> >> wrote:
>
> >>> I found some messages at the list talk about mongodb and maybe a
> >>> DAL-like interface.
>
> >>> Someone have examples of using web2py with mongobd?
>
> >>> I'm planning work in a workflow/bpm app using it.
>
> >>> Any help welcome.
>
> >>> --
> >>> Atenciosamente
>
> >>> --
> >>> =
> >>> Alexandre Andrade
> >>> Hipercenter.com
>
> >> --
>
> >> You received this message because you are subscribed to the Google  
> >> Groups "web2py-users" group.
> >> To post to this group, send email to web...@googlegroups.com.
> >> To unsubscribe from this group, send email to 
> >> web2py+unsubscr...@googlegroups.com
> >> .
> >> For more options, visit this group 
> >> athttp://groups.google.com/group/web2py?hl=en
> >> .
>
> > --
> > Alejandro Fanjul Fdez.
> > alex.fan...@gmail.com
> >www.mhproject.org

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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:36528] Re: upgrade app

2009-12-04 Thread Yarko Tymciurak
On Dec 4, 11:56 am, mdipierro  wrote:
> While I not against the move.
> Actually I like the current mechanism for people emailing me patches.
> Using a web based system will actually turn out to be more work.

That doesn't need to be true; for example, Chromium (open source
Chrome) project uses this, and requires
code reviews first.

Right now, only you do "code reviews" - what is missing is community
eyes, and more discussion;  openness (the point of open source!) will
over time improve the codebase.

The way the Android open source project works (although that's manged
by git), no person is given a checkin: rather, a "component" is
assigned to codereview, which is the only thing allowed to commit (a
service) - and it does so by following a review and approval by one or
more of the component "admins" (owners), and then goes to commit and
runs thru tests. After tests pass, then someone does integtration.

The appropriate role for you would be to divest yourself of parts, and
oversee integration (approve or dissaprove there).

This could be no more work (different) than current, but would allow a
different kind of progress.

Change is hard; change is good! ;-)


>
> Massimo
>
> On Dec 4, 11:42 am, Thadeus Burgess  wrote:
>
>
>
> > As long as this community is growing, we really need to move to a
> > DVCS. Instead of contributors having to mail you diffs, you could just
> > choose to "pull" from our cloned repositories, and pick out what you
> > want... At any time.
>
> > -Thadeus
>
> > On Fri, Dec 4, 2009 at 11:16 AM, mdipierro  wrote:
> > >> I suggest that web2py will improve by updating it to create missing
> > >> empty application directories.
>
> > > It does that already. It just needs testing (check in everything with
> > > hg, delete everything, checkout everything. Does it work?)
>
> > >> You are correct - I guessed; here is what DOES work:
>
> > >>    syntax: regexp
> > >>    ^(?!README$)
>
> > > Thanks Yarko. Hopefully we do not need it if we take the approach that
> > > web2py creates the missing folder.
>
> > >> > 2) the security model (it assigns me a password instead of letting me
> > >> > register a public key as in launchpad).
>
> > >> Not sure what you are talking about here (hg does not assign you a
> > >> password; is this something google code is doing? what happens if you
> > >> use an SSL connection, e.g. https://.  ?)
>
> > > It is something that google code does.
>
> > > --
>
> > > You received this message because you are subscribed to the Google Groups 
> > > "web2py-users" group.
> > > To post to this group, send email to web...@googlegroups.com.
> > > To unsubscribe from this group, send email to 
> > > web2py+unsubscr...@googlegroups.com.
> > > For more options, visit this group 
> > > athttp://groups.google.com/group/web2py?hl=en.

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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:36529] Re: web2py users growth

2009-12-04 Thread Yarko Tymciurak
On Dec 4, 11:45 am, Thadeus Burgess  wrote:
> There are many parts of gluon that I look at and go... wtf.
>
> And read it again, and go... wtf.
>
> Only to find out the wtf comes from another module that has another
> wtf in it that comes from another module..
>
> If the chain of cohesion was commented, gluon would be much much
> easier to learn.

...coupling, while sometimes necessary, should _always_ be intentional
and transparent;

Implicit chaining has bit many smart PhD developers I've know thru the
years - they would _insist_ the system they built didn't do xyz, until
I reverse engineered, and showed them the model - "Ooops!  How did
that happen?"

This has happened to me enough times over 35+ years, that I am
CONVINCED that explicit is better all around...

"wtf" is manual reverse engineering (hard, hard work!);  the only
things that there are reasonable reverse eng. tools for are / seem to
be Java (good, but) --- all other things should have explicit,
transparent, easily accesible structure.

"wtf" is not a method;  it shows _something_ is missing (some amount
of this is inevitable for initial orientation, but then)

- Yarko

>
> -Thadeus
>
> On Fri, Dec 4, 2009 at 11:24 AM, Joe  Barnhart  wrote:
>
>
>
> > Always the contrarian, I have a completely different view on
> > comments...
>
> > Comments are the things programmers write intending to make the code
> > clearer, but they wind up being WRONG most of the time.  Why?  Because
> > the code changes and the comments don't.
>
> > Many studies support this.  Comments that are misleading and wrong are
> > the norm, not the exception, in a typical software project.  The more
> > effort put into comments, the more likely they won't be changed as the
> > code underneath evolves.  "After all," the programmer thinks to
> > himself, "it's just a small change and the comments are so pretty and
> > well structured -- nobody will be confused by such a small change in
> > the code."
>
> > It's far better to write the code in as clear a way as possible and
> > let the code itself, along with carefully chosen variable names, BE
> > the documentation.  In my day job we have 500,000 lines of Smalltalk
> > and not one single comment.  Our "project" is small -- only about five
> > people have ever written code on this system, but we still manage to
> > handle our own code as well as suggest changes to other folk's by just
> > reading the code itself.
>
> > On Dec 3, 5:28 pm, waTR  wrote:
>
> >> Comments in the code I see as the Achilles' heel of this project at
> >> the moment.
>
> > --
>
> > You received this message because you are subscribed to the Google Groups 
> > "web2py-users" group.
> > To post to this group, send email to web...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > web2py+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/web2py?hl=en.

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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:36530] Re: Data for GAE

2009-12-04 Thread Gary
Tracked it down.  It seems obvious now, but GAE doesn't seem to create
the table until it has to.  I added this line:

db.define_table('prime1',Field('value','integer'))

and re-ran the application on both web2py and GAE.  In web2py, it
created the file while in GAE it required the following db insert to
create the table:

if len(db(db.prime1.id>0).select())==0:
db.prime1.insert(value=2)

Your comments forced me to delete the db to test.  That sparked the
thought that the file needed to be forced to create.  Thanks for the
help.
Gary




On Dec 4, 12:58 pm, mdipierro  wrote:
> Please change
>
>    db().select(db.prime.id)
>
> with
>
>    db(db.prime.id>0).select()
>
> On Dec 4, 11:48 am, Gary  wrote:
>
> > I've been trying to deploy an application to GAE and I'm confused by
> > the fact that it created the 'administration' files like auth_user,
> > but didn't create the files for the application.  I've even taken the
> > prime number paging program from the web2py manual and, although it
> > works on localhost, it fails in local dev GAE.
>
> > Here's the log from local GAE:
>
> > == Start Log ===
>
> > 2009-12-04 12:36:52 PM Running command: "['/usr/bin/python2.5', '/home/
> > gkm/google_appengine/dev_appserver.py', '--admin_console_server=', '--
> > port=8080', '/home/gkm/google_appengine/web2py']"
> > INFO     2009-12-04 17:36:53,877 dev_appserver_main.py:478] Running
> > application verizonpal on port 8080:http://localhost:8080
> > WARNING  2009-12-04 17:37:03,879 portalocker.py:91] no file locking
> > WARNING  2009-12-04 17:37:04,391 cache.py:36] unable to import dbhash
> > WARNING  2009-12-04 17:37:04,532 main.py:57] unable to import
> > wsgiserver
> > INFO     2009-12-04 17:37:04,543 gaehandler.py:56]  Request:
> > 0.84ms/0.00ms (real time/cpu time)
> > INFO     2009-12-04 17:37:04,551 dev_appserver.py:3178] "GET /prime
> > HTTP/1.1" 400 -
> > INFO     2009-12-04 17:37:04,558 dev_appserver_index.py:205] Updating /
> > home/gkm/google_appengine/web2py/index.yaml
> > ERROR    2009-12-04 17:37:32,786 restricted.py:58] In FILE: /home/gkm/
> > google_appengine/web2py/applications/primes/models/db.py
>
> > Traceback (most recent call last):
> >   File "/home/gkm/google_appengine/web2py/gluon/restricted.py", line
> > 184, in restricted
> >     exec ccode in environment
> >   File "/home/gkm/google_appengine/web2py/applications/primes/models/
> > db.py", line 71, in 
> >     if len(db().select(db.prime.id))==0:
> >   File "/home/gkm/google_appengine/web2py/gluon/contrib/gql.py", line
> > 666, in select
> >     (items, tablename, fields) = self._select(*fields, **attributes)
> >   File "/home/gkm/google_appengine/web2py/gluon/contrib/gql.py", line
> > 611, in _select
> >     table = self._get_table_or_raise()
> >   File "/home/gkm/google_appengine/web2py/gluon/contrib/gql.py", line
> > 590, in _get_table_or_raise
> >     raise SyntaxError, 'Set: no tables selected'
> > SyntaxError: Set: no tables selected
>
> > INFO     2009-12-04 17:37:32,787 gaehandler.py:56]  Request:
> > 194.54ms/150.00ms (real time/cpu time)
> > INFO     2009-12-04 17:37:32,794 dev_appserver.py:3178] "GET /primes
> > HTTP/1.1" 500 -
>
> > INFO     2009-12-04 17:14:58,695 gaehandler.py:56]  Request:
> > 63.15ms/60.00ms (real time/cpu time)
> > INFO     2009-12-04 17:14:58,702 dev_appserver.py:3178] "GET /primes
> > HTTP/1.1" 500 -
> > INFO     2009-12-04 17:14:58,706 dev_appserver_index.py:205] Updating /
> > home/gkm/google_appengine/web2py/index.yaml
>
> > == End Log =
>
> > I tried to read the code, but it's over my head.  I'd guess that it
> > has something to do with GAE unsupported functions, but this:
>
> >  Custom part of db.py ===
>
> > db.define_table('prime',Field('value','integer'))
>
> > def isprime(p):
> >     for i in range(2,p):
> >         if p%i==0: return False
> >     return True
>
> > if len(db().select(db.prime.id))==0:
> >     p=2
> >     for i in range(1000):
> >         while not isprime(p): p+=1
> >         db.prime.insert(value=p)
> >         p+=1
>
> >  End 
>
> > is the only custom code in db.py - directly from the manual.
>
> > Should web2py create the data files?  If not, how do they get created?
>
> > Thanks,
> > Gary

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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:36531] Re: web2py users growth

2009-12-04 Thread Yarko Tymciurak
On Dec 4, 11:52 am, Jonathan Lundell  wrote:
> On Dec 4, 2009, at 9:45 AM, Thadeus Burgess wrote:
>
> > There are many parts of gluon that I look at and go... wtf.
>
> > And read it again, and go... wtf.
>
> > Only to find out the wtf comes from another module that has another
> > wtf in it that comes from another module..
>
> > If the chain of cohesion was commented, gluon would be much much
> > easier to learn.
>
> Amen, Brother Thadeus.
>
> Sometimes a live debug session helps, but that's generally overkill, and not 
> always possible. Readable code, especially with comments as to *intent*, is 
> hard to beat.
>
>

Good comments are golden, and provide a level of abstraction higher
than the code - that is, they provide a more compact representation of
what's intended, and thus is easier to digest and see (even for the
original author)

comments like:

   # save the total:
   total = my.getsometotal()

are totally useless noise - the goal is to write comments / outline
FIRST, then fill them in with details, e.g. code.

In some ways, writing good comments is harder than writing good code.
And the point is, if you can't put the comments together, then a
HIGHER abstraction is needed, e.g. some model of what you are trying
to do at a higher level...

And that, my friends, is what software engineering is: up and down
that abstraction ladder, keeping it coherent.

No comments, lots, lots of fixes, often is  not a good sign.
There is only so much complexity we can "hold in our head" before we
need some more compact representation in order to correctly "keep it
together".

*sigh* - I am more than a little amazed (and quite frustrated) that
this seems to have such resistance...

- Yarko
>
>

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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:36532] Re: webfaction domain redirection with wsgi applications

2009-12-04 Thread blackthorne
Got into a clean version but still can't made it work:
routes_in = (('.*:/favicon.ico', '/examples/static/favicon.ico'),
 ('.*:/robots.txt', '/examples/static/robots.txt'),
-> ('.*:http://casasdocastro.com:POST /(?P.*)','/
casasdocastro/\g'),
 )

maybe I should be heading to url writes on the web server...

On Dec 4, 6:13 pm, mdipierro  wrote:
> The proxing should  not change the HTTP_HOST in the header.
>
> On Dec 4, 12:09 pm, blackthorne  wrote:
>
>
>
> > Problem with routes is that I can't differenciate the traffic by its
> > source (I think).
> > Then, all other applications powered by web2py wouldn't become
> > acessible
>
> > e.g.:
> > Client (browser) -> HTTPD (nginx)  --> Apache (wsgi) -> web2py
> > (wsgihandler) -> my_web2py_application1 (routes)
>
> > all traffic gets redirected to "127.0.0.1:port" when it gets to the
> > Apache (wsgi), so how can routes tell the difference to map into
> > domain names?
>
> > Please, correct me if I am wrong.
> > Thank you, best regards
>
> > On Dec 4, 5:32 pm, mdipierro  wrote:
>
> > > Ideally you would apache to do the rewriting but I am not if
> > > webfaction allows that.
>
> > > You can use routes to map domainnames into apps.
>
> > > See if you can figure out the syntax form the book or I will try come
> > > up with an example.
>
> > > Massimo
>
> > > On Dec 4, 11:27 am, blackthorne  wrote:
>
> > > > I have a apachewsgi webfaction application which is holding a web2py
> > > > that keeps multiple web applications.
> > > > If I map the domainwww.y.orgtoit, I am able to access its web
> > > > applications 
> > > > usingwww.y.org/application1,www.y.org/application2,www.y.org/application3.
> > > >  Well, you know that...
>
> > > > Now, I got a new domain which is already managed by webfaction and I
> > > > want to map it to one of the web applications powered by that
> > > > apachewsgi application.
>
> > > >www.my_awesome_domain.com--> (Application apachewsgi)/
> > > > my_awesome_web2py_app
>
> > > > This seems simple (and it is) but I'm having a very bad time making
> > > > threw it so I kindly ask for your help because I know there many
> > > > web2py users using webfaction hosting service that probably came to
> > > > this problem before me.
>
> > > > I would gently ask to go into the juicy parts (accurate configuration
> > > > lines) because I've already tried mod_rewrite and mod_proxy but I am
> > > > not sure if I did it right.
>
> > > > Thank you,
> > > > Best Regards

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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:36533] Re: getting stable version equivalent from SVN

2009-12-04 Thread Fred
On Dec 4, 11:36 am, Jonathan Lundell  wrote:
> 1.71.3 never got released, but it does show up in the svn log at r1462 & 
> r1463, both 11/26.

I meant to say 1.72.3.

> Massimo: when you create a tag in svn, svn creates a snapshot of the tree at 
> the point of the tag.
>
> http://svnbook.red-bean.com/en/1.1/ch04s06.html
>
> The nice thing about it is that you can create a tag for an official release, 
> and then users can access the release by its name, rather than having to 
> figure out the corresponding svn revision number.

Yes, exactly.

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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:36534] Re: web2py users growth

2009-12-04 Thread Yarko Tymciurak
On Dec 4, 12:07 pm, mdipierro  wrote:
> LOL
>
> next time bring it up on the developers list.
>
> I do not mind explaining how things work inside and perhaps we will
> find out there is a better way to implement it. ;-)

This is not a joke; not funny - comments will serve _you_ as well as
others.

In the case of languages.py, clear abstraction would have made it
clear what the representation should be in the code - but more to the
point, good comments would have made it easier for the community to
review this and SPOT it before a user reported the bug.

Comments are important, and but ONE (the lowest) rung in the needed
ladder of appropriate abstraction w.r.t. design.

If you can "describe" it, then you can comment it.

If you want to explain something on the developers list (which seems
inactive), discuss HOW you came to a particular abstraction, and if it
fits well (e.g. "give a man a fish - feed him for a day; teach a man
to fish - feed him for a lifetime").

Comments are so basic, and so low level - but necessary to even talk
about anything higher level, more useful.  It's a missing link.

- Yarko

>
> Massimo
>
> On Dec 4, 11:45 am, Thadeus Burgess  wrote:
>
>
>
> > There are many parts of gluon that I look at and go... wtf.
>
> > And read it again, and go... wtf.
>
> > Only to find out the wtf comes from another module that has another
> > wtf in it that comes from another module..
>
> > If the chain of cohesion was commented, gluon would be much much
> > easier to learn.
>
> > -Thadeus

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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:36535] about web2py and this mailing list

2009-12-04 Thread mdipierro
I have thought for a while on whether we needed rules of conduct about
this mailing list. So far I thought we did not and it has worked out
pretty well. Nevertheless, I should clarify what I think this list has
done for us, and what to do to continue work.

1) This is the place where some people ask questions
2) This is the place where some people provide the answers
3) This is the place where some people suggest and discuss new
features
4) This is the place where potential bugs are preliminary reported in
order to be confirmed.

Everything else is noise. It will not be banned but should be
minimized.

We have been lucky that almost all bugs reported were in trunk version
and related to new features. In fact we add more new features per week
than we have  bug reports.

So please:

- Do not assume you know more than others.

- Try keep your messages short and to the point

- Do not repeat your point or complain because you do not like the
answer

- Do not respond to your own posts unless you found yourself the
answer to your problem

- Do not tell others what they should be do or not do.

- If you have personal complaints send them directly to the person in
question (including me). Do not make personal complains in public.

- You want something done? Ask on the list. If it is recognized to be
important somebody will eventually do it (perhaps me, perhaps somebody
else).

- If you think you are a contributor, ask yourself. What are the areas
I am responsible for? What have delivered so far? What am I going to
do to deliver in those areas?Did I remember to email Massimo a signed
copy of the contributor agreement?

- Be aware that there are a lot of new users here and your comments
may be interpreted in different ways by people with different degrees
of web2py experience. Try be responsible and think how your comments
may be interpreted by new users.

- No question is a stupid question. No answer is detailed enough.

I spent quite some time writing this email while I could have spent
the time applying one of the few remaining patches.

IF YOU FEEL YOU NEED TO COMMENT ABOUT THIS THREAD YOU ARE *NOT*
GETTING THE POINT.

And no. This this is not about anyone in particular. Just general
random thoughts.

Massimo

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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:36536] new on web2pyslices.com: WebGrid

2009-12-04 Thread mr.freeze
This is a module I wrote to generate a grid that supports paging,
sorting, crud links, totals and a few other things.  It's still a work
in progress but seems to be functioning nicely:

http://www.web2pyslices.com/main/slices/take_slice/39

Enjoy!

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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:36537] Re: Cron and Windows service

2009-12-04 Thread SergeyPo
What is the best way to run controller code periodicaly (GET request)?
I need to run it daily, so windows scheduler would be fine, but what
to schedule? Some BAT file or what?

On Dec 4, 6:52 pm, mdipierro  wrote:
> There is a logical problem. the web server and cron are two processes
> and therefore they should be threated as two different services or
> there should be a mechanism to start and stop them both. Right now the
> windows service only handles the web service.
>
> The cron code needs some cleanup because right now it is spread over
> multiple modules. I'd rather do the cleanup before adding cron to win
> service.
>
> Massimo
>
> On Dec 4, 4:32 am, SergeyPo  wrote:
>
>
>
> > Hello,
>
> > I am having problem with cron. My crontable:
>
> > */5   *   *   *   *  root *default/getcaptypes
>
> > Controller method 'default/getcaptypes' works fine when you call it
> > directly. It works fine when called by cron when web2py is running as
> > console. But it is not working when I start web2py as windows
> > service.
>
> > Options file contains:
>
> > extcron = None
> > nocron = None
>
> > Where else should I look?
>
> > Sergey

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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:36538] Re: Cron and Windows service

2009-12-04 Thread mdipierro
Yes. You can make a bat that runs

python.exe web2py.py -S appname -M -R somescript.py

On Dec 4, 2:52 pm, SergeyPo  wrote:
> What is the best way to run controller code periodicaly (GET request)?
> I need to run it daily, so windows scheduler would be fine, but what
> to schedule? Some BAT file or what?
>
> On Dec 4, 6:52 pm, mdipierro  wrote:
>
> > There is a logical problem. the web server and cron are two processes
> > and therefore they should be threated as two different services or
> > there should be a mechanism to start and stop them both. Right now the
> > windows service only handles the web service.
>
> > The cron code needs some cleanup because right now it is spread over
> > multiple modules. I'd rather do the cleanup before adding cron to win
> > service.
>
> > Massimo
>
> > On Dec 4, 4:32 am, SergeyPo  wrote:
>
> > > Hello,
>
> > > I am having problem with cron. My crontable:
>
> > > */5   *   *   *   *  root *default/getcaptypes
>
> > > Controller method 'default/getcaptypes' works fine when you call it
> > > directly. It works fine when called by cron when web2py is running as
> > > console. But it is not working when I start web2py as windows
> > > service.
>
> > > Options file contains:
>
> > > extcron = None
> > > nocron = None
>
> > > Where else should I look?
>
> > > Sergey
>
>

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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:36539] /views/default\index.html

2009-12-04 Thread haftish21
I'm using latest version of apache ... Everything is going fine except
I can't tell what is creating this error 404?

Not Found

The requested URL /admin/default/edit/myApp/views/default\index.html
was not found on this server

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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:36540] Re: /views/default\index.html

2009-12-04 Thread mdipierro
Should be
 /admin/default/edit/myApp/views/default/index.html
not
 /admin/default/edit/myApp/views/default\index.html

You may had and old admin version. I thought this problem was fixed
long ago Did you --upgrade=yes?

On Dec 4, 3:32 pm, haftish21  wrote:
> I'm using latest version of apache ... Everything is going fine except
> I can't tell what is creating this error 404?
>
> Not Found
>
> The requested URL /admin/default/edit/myApp/views/default\index.html
> was not found on this server

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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:36541] Error retrieving data from legacy table, mysql. Python2.6 x64 MySQL

2009-12-04 Thread Benigno
Hello,
After quite a lot of pain, I finally managed to install python-
mysqldb on my mac snow-leopard. At any rate it imports ok, and seems
to be working fine otherwise.

Yet, something funny is going on, when I try to get a specific
record it seems to work fine: (as you can see legacy table has field
id)

>>> a = db(db.eib_tele.id == 201326).select()
>>> a[0]
 at 0x102a5aed8>, 'pid': 432L, 'ga1': 2318L,
'last_time': datetime.datetime(2009, 10, 28, 17, 21, 22), 'ep_time':
1256750473L, 'system_id': 0L, 'rt_counter': 6, 'tid': 196L,
'src_type': 3, 'data': '', 'id': 201326L}>

But If I try to get the table I get this error:

>>> b = db(db.eib_tele.id > 0).select()
Traceback (most recent call last):
  File "", line 1, in 
  File "/Users/benigno/PyProjects/eibport/gluon/sql.py", line 2913, in
select
return self.parse(db,rows,self.colnames)
  File "/Users/benigno/PyProjects/eibport/gluon/sql.py", line 2948, in
parse
colset[fieldname] = base64.b64decode(str(value))
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/base64.py", line 76, in b64decode
raise TypeError(msg)
TypeError: Incorrect padding

Anyone would know what may be going on or what I may be doing wrong?

Thank in advance,
Benigno.

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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:36542] Re: upgrade app

2009-12-04 Thread mdipierro
I did the following test:

check in web2py in mercurial
clone
run web2py

it works out of the box. No need to modify source.
The missing folders are re-created without need to put junk in them.
This is very promising.

Now I need to understand how to have google code to work with both hg
and svn.

Massimo

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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:36543] Re: Error retrieving data from legacy table, mysql. Python2.6 x64 MySQL

2009-12-04 Thread mdipierro
haha. web2py stores blobs base64 encoded. Your legacy database table
has a blob (called 'data') and the data in there is not encoded. It
happens that when you only extract record id=201326 this is not a
problem because the blob field is empty.

This is another example of very new feature (support for legacy
databases) that is being tested and you found a problem that needs to
be addressed.

There is not trivial solution since different databases handle blobs
in different ways (which is why web2py normally base64 encodes them)
and there are issues with escaping and encoding. If you do not need
that column, I suggest use a sql view to eliminate it. If you do need
it, you may try create a SQLCustomField.

I will think a more general solution.

Massimo

On Dec 4, 3:52 pm, Benigno  wrote:
> Hello,
>     After quite a lot of pain, I finally managed to install python-
> mysqldb on my mac snow-leopard. At any rate it imports ok, and seems
> to be working fine otherwise.
>
>     Yet, something funny is going on, when I try to get a specific
> record it seems to work fine: (as you can see legacy table has field
> id)
>
> >>> a = db(db.eib_tele.id == 201326).select()
> >>> a[0]
>
>   at 0x102a5aed8>, 'pid': 432L, 'ga1': 2318L,
> 'last_time': datetime.datetime(2009, 10, 28, 17, 21, 22), 'ep_time':
> 1256750473L, 'system_id': 0L, 'rt_counter': 6, 'tid': 196L,
> 'src_type': 3, 'data': '', 'id': 201326L}>
>
>     But If I try to get the table I get this error:
>
> >>> b = db(db.eib_tele.id > 0).select()
>
> Traceback (most recent call last):
>   File "", line 1, in 
>   File "/Users/benigno/PyProjects/eibport/gluon/sql.py", line 2913, in
> select
>     return self.parse(db,rows,self.colnames)
>   File "/Users/benigno/PyProjects/eibport/gluon/sql.py", line 2948, in
> parse
>     colset[fieldname] = base64.b64decode(str(value))
>   File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/
> python2.6/base64.py", line 76, in b64decode
>     raise TypeError(msg)
> TypeError: Incorrect padding
>
> Anyone would know what may be going on or what I may be doing wrong?
>
> Thank in advance,
> Benigno.

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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:36544] Re: Error retrieving data from legacy table, mysql. Python2.6 x64 MySQL

2009-12-04 Thread Benigno
Thank you Massimo,

You are absolutelly right, it is the blob.

I  can live with making some DB triggers to copy the data I need
from the blob to other fields in a different table. What I mean is,
you can put that way down on your list, there is no urgency from
my side, and this is probably too specific. Its nice it came up
though.

Thanks again,
Benigno.

On Dec 4, 11:17 pm, mdipierro  wrote:
> haha. web2py stores blobs base64 encoded. Your legacy database table
> has a blob (called 'data') and the data in there is not encoded. It
> happens that when you only extract record id=201326 this is not a
> problem because the blob field is empty.
>
> This is another example of very new feature (support for legacy
> databases) that is being tested and you found a problem that needs to
> be addressed.
>
> There is not trivial solution since different databases handle blobs
> in different ways (which is why web2py normally base64 encodes them)
> and there are issues with escaping and encoding. If you do not need
> that column, I suggest use a sql view to eliminate it. If you do need
> it, you may try create a SQLCustomField.
>
> I will think a more general solution.
>
> Massimo
>
> On Dec 4, 3:52 pm, Benigno  wrote:
>
>
>
>
>
> > Hello,
> >     After quite a lot of pain, I finally managed to install python-
> > mysqldb on my mac snow-leopard. At any rate it imports ok, and seems
> > to be working fine otherwise.
>
> >     Yet, something funny is going on, when I try to get a specific
> > record it seems to work fine: (as you can see legacy table has field
> > id)
>
> > >>> a = db(db.eib_tele.id == 201326).select()
> > >>> a[0]
>
> >  >  at 0x102a5aed8>, 'pid': 432L, 'ga1': 2318L,
> > 'last_time': datetime.datetime(2009, 10, 28, 17, 21, 22), 'ep_time':
> > 1256750473L, 'system_id': 0L, 'rt_counter': 6, 'tid': 196L,
> > 'src_type': 3, 'data': '', 'id': 201326L}>
>
> >     But If I try to get the table I get this error:
>
> > >>> b = db(db.eib_tele.id > 0).select()
>
> > Traceback (most recent call last):
> >   File "", line 1, in 
> >   File "/Users/benigno/PyProjects/eibport/gluon/sql.py", line 2913, in
> > select
> >     return self.parse(db,rows,self.colnames)
> >   File "/Users/benigno/PyProjects/eibport/gluon/sql.py", line 2948, in
> > parse
> >     colset[fieldname] = base64.b64decode(str(value))
> >   File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/
> > python2.6/base64.py", line 76, in b64decode
> >     raise TypeError(msg)
> > TypeError: Incorrect padding
>
> > Anyone would know what may be going on or what I may be doing wrong?
>
> > Thank in advance,
> > Benigno.

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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:36545] google code svn > mercurial (done!?)

2009-12-04 Thread mdipierro
I have migrated the google code repository from svn to mercurial.

http://code.google.com/p/web2py/source/browse/#hg

Thanks to Yarko for being pushy in this direction.

It works for me but please check if it works for you too. If you do
check it, please post a message.

I need with one thing: everytime I push it asks for a google code
password that is hard to remember. Is it possible to configure hg so
that it does ask every time, or pass it as command line argument?

Massimo

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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:36546] Re: google code svn > mercurial (done!?)

2009-12-04 Thread mdipierro
Is it possible to configure hg so that it does *NOT* ask every time,
or pass it as command line argument?

On Dec 4, 4:43 pm, mdipierro  wrote:
> I have migrated the google code repository from svn to mercurial.
>
>    http://code.google.com/p/web2py/source/browse/#hg
>
> Thanks to Yarko for being pushy in this direction.
>
> It works for me but please check if it works for you too. If you do
> check it, please post a message.
>
> I need with one thing: everytime I push it asks for a google code
> password that is hard to remember. Is it possible to configure hg so
> that it does ask every time, or pass it as command line argument?
>
> Massimo

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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.




Re: [web2py:36547] Re: upgrade app

2009-12-04 Thread Thadeus Burgess
I know there are some hg tools to synchronize your hg repository with
an svn repository (history and tags etc).

I have done this when I first converted my SVN repo's to mercurial,
however it was a tedious and manual process, and it was only one-way
at the time

I'm sure you have seen this link

http://mercurial.selenic.com/wiki/RepositoryConversion

It has some good information on the matter

-Thadeus





On Fri, Dec 4, 2009 at 4:10 PM, mdipierro  wrote:
> I did the following test:
>
> check in web2py in mercurial
> clone
> run web2py
>
> it works out of the box. No need to modify source.
> The missing folders are re-created without need to put junk in them.
> This is very promising.
>
> Now I need to understand how to have google code to work with both hg
> and svn.
>
> Massimo
>
> --
>
> You received this message because you are subscribed to the Google Groups 
> "web2py-users" group.
> To post to this group, send email to web...@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.
>
>
>

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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.




Re: [web2py:36548] Re: google code svn > mercurial (done!?)

2009-12-04 Thread Thadeus Burgess
Here you go,

http://mercurial.selenic.com/wiki/FAQ#FAQ.2BAC8-CommonProblems.How_can_I_store_my_HTTP_login_once_and_for_all_.3F


-Thadeus





On Fri, Dec 4, 2009 at 4:57 PM, mdipierro  wrote:
> Is it possible to configure hg so that it does *NOT* ask every time,
> or pass it as command line argument?
>
> On Dec 4, 4:43 pm, mdipierro  wrote:
>> I have migrated the google code repository from svn to mercurial.
>>
>>    http://code.google.com/p/web2py/source/browse/#hg
>>
>> Thanks to Yarko for being pushy in this direction.
>>
>> It works for me but please check if it works for you too. If you do
>> check it, please post a message.
>>
>> I need with one thing: everytime I push it asks for a google code
>> password that is hard to remember. Is it possible to configure hg so
>> that it does ask every time, or pass it as command line argument?
>>
>> Massimo
>
> --
>
> You received this message because you are subscribed to the Google Groups 
> "web2py-users" group.
> To post to this group, send email to web...@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.
>
>
>

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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:36549] Re: upgrade app

2009-12-04 Thread mdipierro
The fact is google code continues to hold the old svn. A number have
complained about the web2py history being big and making the pull too
long. I thought it was good to start from scratch. Was I wrong?

Massimo

On Dec 4, 6:22 pm, Thadeus Burgess  wrote:
> I know there are some hg tools to synchronize your hg repository with
> an svn repository (history and tags etc).
>
> I have done this when I first converted my SVN repo's to mercurial,
> however it was a tedious and manual process, and it was only one-way
> at the time
>
> I'm sure you have seen this link
>
> http://mercurial.selenic.com/wiki/RepositoryConversion
>
> It has some good information on the matter
>
> -Thadeus
>
> On Fri, Dec 4, 2009 at 4:10 PM, mdipierro  wrote:
> > I did the following test:
>
> > check in web2py in mercurial
> > clone
> > run web2py
>
> > it works out of the box. No need to modify source.
> > The missing folders are re-created without need to put junk in them.
> > This is very promising.
>
> > Now I need to understand how to have google code to work with both hg
> > and svn.
>
> > Massimo
>
> > --
>
> > You received this message because you are subscribed to the Google Groups 
> > "web2py-users" group.
> > To post to this group, send email to web...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > web2py+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/web2py?hl=en.
>
>

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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:36550] Re: google code svn > mercurial (done!?)

2009-12-04 Thread mdipierro
Thank you. This is exactly what I needed.
Let's kwwp both mercur...@googlecode and baz...@launchpad for a little
while, then we kill the latter.

Massimo

On Dec 4, 6:29 pm, Thadeus Burgess  wrote:
> Here you go,
>
> http://mercurial.selenic.com/wiki/FAQ#FAQ.2BAC8-CommonProblems.How_ca...
>
> -Thadeus
>
> On Fri, Dec 4, 2009 at 4:57 PM, mdipierro  wrote:
> > Is it possible to configure hg so that it does *NOT* ask every time,
> > or pass it as command line argument?
>
> > On Dec 4, 4:43 pm, mdipierro  wrote:
> >> I have migrated the google code repository from svn to mercurial.
>
> >>    http://code.google.com/p/web2py/source/browse/#hg
>
> >> Thanks to Yarko for being pushy in this direction.
>
> >> It works for me but please check if it works for you too. If you do
> >> check it, please post a message.
>
> >> I need with one thing: everytime I push it asks for a google code
> >> password that is hard to remember. Is it possible to configure hg so
> >> that it does ask every time, or pass it as command line argument?
>
> >> Massimo
>
> > --
>
> > You received this message because you are subscribed to the Google Groups 
> > "web2py-users" group.
> > To post to this group, send email to web...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > web2py+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/web2py?hl=en.
>
>

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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.




Re: [web2py:36551] Re: upgrade app

2009-12-04 Thread Thadeus Burgess
In that case, perfect. I think at this point, a fresh start would be nice.

-Thadeus





On Fri, Dec 4, 2009 at 6:41 PM, mdipierro  wrote:
> The fact is google code continues to hold the old svn. A number have
> complained about the web2py history being big and making the pull too
> long. I thought it was good to start from scratch. Was I wrong?
>
> Massimo
>
> On Dec 4, 6:22 pm, Thadeus Burgess  wrote:
>> I know there are some hg tools to synchronize your hg repository with
>> an svn repository (history and tags etc).
>>
>> I have done this when I first converted my SVN repo's to mercurial,
>> however it was a tedious and manual process, and it was only one-way
>> at the time
>>
>> I'm sure you have seen this link
>>
>> http://mercurial.selenic.com/wiki/RepositoryConversion
>>
>> It has some good information on the matter
>>
>> -Thadeus
>>
>> On Fri, Dec 4, 2009 at 4:10 PM, mdipierro  wrote:
>> > I did the following test:
>>
>> > check in web2py in mercurial
>> > clone
>> > run web2py
>>
>> > it works out of the box. No need to modify source.
>> > The missing folders are re-created without need to put junk in them.
>> > This is very promising.
>>
>> > Now I need to understand how to have google code to work with both hg
>> > and svn.
>>
>> > Massimo
>>
>> > --
>>
>> > You received this message because you are subscribed to the Google Groups 
>> > "web2py-users" group.
>> > To post to this group, send email to web...@googlegroups.com.
>> > To unsubscribe from this group, send email to 
>> > web2py+unsubscr...@googlegroups.com.
>> > For more options, visit this group 
>> > athttp://groups.google.com/group/web2py?hl=en.
>>
>>
>
> --
>
> You received this message because you are subscribed to the Google Groups 
> "web2py-users" group.
> To post to this group, send email to web...@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.
>
>
>

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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.





Re: [web2py:36552] Re: google code svn > mercurial (done!?)

2009-12-04 Thread Thadeus Burgess
Cool thing with google code, is I can now make my own clone of web2py
done... :)

-Thadeus





On Fri, Dec 4, 2009 at 6:45 PM, mdipierro  wrote:
> Thank you. This is exactly what I needed.
> Let's kwwp both mercur...@googlecode and baz...@launchpad for a little
> while, then we kill the latter.
>
> Massimo
>
> On Dec 4, 6:29 pm, Thadeus Burgess  wrote:
>> Here you go,
>>
>> http://mercurial.selenic.com/wiki/FAQ#FAQ.2BAC8-CommonProblems.How_ca...
>>
>> -Thadeus
>>
>> On Fri, Dec 4, 2009 at 4:57 PM, mdipierro  wrote:
>> > Is it possible to configure hg so that it does *NOT* ask every time,
>> > or pass it as command line argument?
>>
>> > On Dec 4, 4:43 pm, mdipierro  wrote:
>> >> I have migrated the google code repository from svn to mercurial.
>>
>> >>    http://code.google.com/p/web2py/source/browse/#hg
>>
>> >> Thanks to Yarko for being pushy in this direction.
>>
>> >> It works for me but please check if it works for you too. If you do
>> >> check it, please post a message.
>>
>> >> I need with one thing: everytime I push it asks for a google code
>> >> password that is hard to remember. Is it possible to configure hg so
>> >> that it does ask every time, or pass it as command line argument?
>>
>> >> Massimo
>>
>> > --
>>
>> > You received this message because you are subscribed to the Google Groups 
>> > "web2py-users" group.
>> > To post to this group, send email to web...@googlegroups.com.
>> > To unsubscribe from this group, send email to 
>> > web2py+unsubscr...@googlegroups.com.
>> > For more options, visit this group 
>> > athttp://groups.google.com/group/web2py?hl=en.
>>
>>
>
> --
>
> You received this message because you are subscribed to the Google Groups 
> "web2py-users" group.
> To post to this group, send email to web...@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.
>
>
>

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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.




Re: [web2py:36553] Re: google code svn > mercurial (done!?)

2009-12-04 Thread Jonathan Lundell
On Dec 4, 2009, at 4:45 PM, mdipierro wrote:

> Let's kwwp both mercur...@googlecode and baz...@launchpad for a little
> while, then we kill the latter.

And svn?

(I like Mercurial, but BBEdit has svn integration, not hg, and that's very 
handy.)

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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:36554] Windows Icon missing from source build.

2009-12-04 Thread Delaney
I don't see the ico file use in the taskbar icon in the Source zip
file.  Where is it located?

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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:36555] Re: google code svn > mercurial (done!?)

2009-12-04 Thread mdipierro
Actually this is something I am trying to understand. Google code
seems to require a choice hg or svn. I thought that google code would
store the data so that one could retrieve it in both svn and hg but it
seems now only the old data is available in svn and the new data only
in hg.

Massimo

On Dec 4, 6:59 pm, Jonathan Lundell  wrote:
> On Dec 4, 2009, at 4:45 PM, mdipierro wrote:
>
> > Let's kwwp both mercur...@googlecode and baz...@launchpad for a little
> > while, then we kill the latter.
>
> And svn?
>
> (I like Mercurial, but BBEdit has svn integration, not hg, and that's very 
> handy.)

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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:36556] Re: Windows Icon missing from source build.

2009-12-04 Thread mdipierro
There is no .ico file and no path to such file is passed to class
TaskBarIcon in gluon/contrib/taskbar_widget.py.

Is somebody were to make such file I will include it.

Massimo

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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.




Re: [web2py:36557] Re: google code svn > mercurial (done!?)

2009-12-04 Thread Thadeus Burgess
Here is my hgignore I use for web2py, and my other mercurial projects...



syntax: regexp
^databases/
^errors/
^sessions/
^cache/
^routes.py$

syntax: glob
*.pyc
*~
parameters_*.py



-Thadeus





On Fri, Dec 4, 2009 at 7:03 PM, mdipierro  wrote:
> Actually this is something I am trying to understand. Google code
> seems to require a choice hg or svn. I thought that google code would
> store the data so that one could retrieve it in both svn and hg but it
> seems now only the old data is available in svn and the new data only
> in hg.
>
> Massimo
>
> On Dec 4, 6:59 pm, Jonathan Lundell  wrote:
>> On Dec 4, 2009, at 4:45 PM, mdipierro wrote:
>>
>> > Let's kwwp both mercur...@googlecode and baz...@launchpad for a little
>> > while, then we kill the latter.
>>
>> And svn?
>>
>> (I like Mercurial, but BBEdit has svn integration, not hg, and that's very 
>> handy.)
>
> --
>
> You received this message because you are subscribed to the Google Groups 
> "web2py-users" group.
> To post to this group, send email to web...@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.
>
>
>

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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.




Re: [web2py:36558] Re: Windows Icon missing from source build.

2009-12-04 Thread Delaney Gillilan
Ah didn't realize they were embedded in __getIconRunning & __getIconStopped.

Attached is a version of the icons using the logo with a stroke to denote
up/down status, kinda like Apache's icon.

Using actual graphics files makes it easier to change.  Let me know if these
work for you.  Thanks.


On Fri, Dec 4, 2009 at 5:12 PM, mdipierro  wrote:

> There is no .ico file and no path to such file is passed to class
> TaskBarIcon in gluon/contrib/taskbar_widget.py.
>
> Is somebody were to make such file I will include it.
>
> Massimo
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To post to this group, send email to web...@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.
>
>
>

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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:36559] Re: Windows Icon missing from source build.

2009-12-04 Thread mdipierro
Thank you.

Massimo

On Dec 4, 7:48 pm, Delaney Gillilan  wrote:
> Ah didn't realize they were embedded in __getIconRunning & __getIconStopped.
>
> Attached is a version of the icons using the logo with a stroke to denote
> up/down status, kinda like Apache's icon.
>
> Using actual graphics files makes it easier to change.  Let me know if these
> work for you.  Thanks.
>
> On Fri, Dec 4, 2009 at 5:12 PM, mdipierro  wrote:
> > There is no .ico file and no path to such file is passed to class
> > TaskBarIcon in gluon/contrib/taskbar_widget.py.
>
> > Is somebody were to make such file I will include it.
>
> > Massimo
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "web2py-users" group.
> > To post to this group, send email to web...@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_on.ico
> 2KViewDownload
>
>  web2py_off.ico
> 2KViewDownload

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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.