[web2py:28478] Re: converting the query dictionary to a list

2009-08-13 Thread Fran

On Aug 13, 2:18 am, tititi briant...@gmail.com wrote:
 I'm new to w2p and would like to incorporate tag cloud function into
 my site but can't seem to convert a dictionary to a list from a
 database query result. Can anyone help me with this?
 def gen_tags():
     #tags = ['java','php','python','python']
     query=db.tags.id0
     tags = db(query).select(db.tags.word)
     # results show--- tags.word indian italian spanish indian
     words = {}

for tag in tags:
words.append(tag.word)

F

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



[web2py:28479] Re: Menu and active CSS class

2009-08-13 Thread mdipierro

None of the two. Each menu item has an active attribute that can be
true or false. It is set manually. The default layout does not use it.
Your own layout may need it so it is there.

On Aug 12, 12:04 pm, Sebastian E. Ovide sebastianov...@gmail.com
wrote:
 Is it a bug or a feature not implemented yet ?

 On Fri, Jul 3, 2009 at 12:08 PM, Álvaro Justen [Turicas] 



 alvarojus...@gmail.com wrote:

  On Fri, Jul 3, 2009 at 06:44, Vidul Petrovvidul.r...@gmail.com wrote:

   Hi,

   Given that I have a menu like:

   response.menu = [
      ['Home', request.function=='index',
         URL(request.application,'default','index'), []],
      ['New Post', request.function=='create',
         URL(request.application,'default','create'), []],
      ]

   the active link does not work unless I copy this addition from an
   older SVN revision in html.py:

   diff -a gluon/html.py ~/web2py-read-only/gluon/html.py
   1270,1273c1270
              if active:
                li = LI(A(name, _href=link, _class=active))
              else:
                li = LI(A(name, _href=link))
   ---
                   li = LI(A(name, _href=link))

   I am wondering why this addition was removed, probably there is a
   better way to implement the menu?

  Sure. There is a bug in this. I think it could fix the problem (not
  tested):

     def serialize(self, data, level=0):
         if level == 0:
             ul = UL(**self.attributes)
         else:
             ul = UL(_class=self['ul_class'])
         for item in data:
             (name, active, link) = item[:3]
             link_attrs = []
             if link:
                 link_attrs.append(_href=link)
             else:
                 link_attrs.append(_href='#null')
             if active:
                 link_attrs.append(_class='active')
             li = LI(A(name, *link_attrs))
             if len(item)  3 and item[3]:
                 if li['_class']:
                     li['_class'] += ' ' + self['li_class']
                 else:
                     li['_class'] = self['li_class']
                 li.append(self.serialize(item[3], level+1))
             ul.append(li)
         return ul

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

 --

 Sebastian E. Ovide

 skype: seezov

 +353 87 6340149

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



[web2py:28480] Re: feature request: activate the feature request template

2009-08-13 Thread mdipierro

keep us posed. I do not that we need converting. We can just pust 1.66
and forget about the past. The repo is getting big.

Massimo

On Aug 12, 1:19 pm, Yarko Tymciurak yark...@gmail.com wrote:
 ... be sure to read thru the comments, and note those that do it locally
 (that's a fairly harmless excercise before doing an 'hg push' of the
 converted repository);   actually, I may try this excercise after lunch

 On Wed, Aug 12, 2009 at 1:13 PM, Yarko Tymciurak yark...@gmail.com wrote:
  Ok - let me play around w/ the web2conf a bit tomorrow;  I'll take notes
  and share w/ you.

  This is looks to be in FAR better shape than it was at the start of June.

  As for history:  Massimo, just follow this page to prepare:

 http://code.google.com/p/support/wiki/ConvertingSvnToHg

  On Wed, Aug 12, 2009 at 5:11 AM, mdipierro mdipie...@cs.depaul.eduwrote:

  Vacation? what is vacation? We can migrate as soon as I figure out
  what to do. Yarko, if you know, let me know.
  There is no need to port the entire revision history.

  Massimo

  On Aug 12, 2:26 am, Yarko Tymciurak yark...@gmail.com wrote:
   We were going to migrate when mercurial support kicked in;  this started
  in
   June, but was still getting the kinks worked out.

   While Massimo is off on Holiday before the semester starts, I was going
  to
   try to migrate web2conf to google code / mercurial and determine it's
   readiness;   We should know by end of the month if a move will happen in
   September.

   On Wed, Aug 12, 2009 at 2:09 AM, Richard richar...@gmail.com wrote:

On Aug 12, 2:46 pm, mdipierro mdipie...@cs.depaul.edu wrote:
 This one?

http://w2popenid.appspot.com/init/default/wiki/main

I guess that's the one you referred to before.
In a previous thread you said We will soon have an API like stack
overflow does. Is this still going to happen?

Also if you were waiting on Mecurial support for Google Code do you
plan to migrate now?

 On Aug 11, 6:55 pm, Richard richar...@gmail.com wrote:

  I was referring to the stackoverflow like OpenID login app is.
  Where
  can I find it?

  On Aug 11, 10:27 pm, mdipierro mdipie...@cs.depaul.edu wrote:

   On Aug 11, 6:41 am, Richard richar...@gmail.com wrote:

On Aug 11, 5:17 pm, mdipierro mdipie...@cs.depaul.edu
  wrote:

 Thank you Richard,
 some comments below.

 On Aug 10, 7:21 pm, Richard richar...@gmail.com wrote:

  hello,

   You know that currently the main repository is on
launchpad.net?

  Currently the Google Code page says Here you find only
  the
  development version ..., while the Launchpad page says
  Does
not use
  Launchpad for development.
  That to me sounds like Google Code is the development
repository.

  Also I read in another thread we were migrating to
  mercurial on
Google
  Code. If not, then perhaps the Google Code page should be
closed/
  edited to avoid confusion.

 Yes. I want to migrate to mercurial. Any news on whether
  Google
code
 does (will) support this?

it's already supported in Administer - Source

 Meanwhile I do read bug reports on both Launchpad and Google
code.
   BTW - can you name _one_ feature request that has been
lost?

  People like Massimo probably read every thread and so
  would
know all
  of the requests. But if a less active user wants to help
  out
they
  can't easily find a list of outstanding issues. Here are
  some
threads
  I remember because I was interested in these features, so
  there
are
  certainly more:

  - password retrieval has a confirmation email before
  resetting
to
  prevent abuse

 I will look into this.

  - *stackoverflow like OpenID login API

 Technically this is an app, not a web2py feature. Users are
working on
 this already.
 The functionality exists as an external app. We will see if
  we
need to
 modify web2py in order to get better integration.

Is this app in appliances?

  - translation interface for non-admin users

  http://www.web2py.com/appliances/default/show/9

 There is already an app for this in appliances. Perhaps it
  should
be
 improved. Let me know.

ah just found it:
 http://www.web2py.com/appliances/default/show/9
I'll check it out.

  - *IPv6 support for login to admin interface

 I do not remember this. Can somebody elaborate?

It was raised in this thread:
   http://groups.google.com/group/web2py/browse_thread/thread/726da9b5ea.
  ..

  - expose uploaded file naming function

 This was done. strore in sql.py.

Great!

  - *logging functionality (problem with builtin logging
  module)

 I though this was solved by a user 

[web2py:28484] Re: where for art thou, oh session attribute?

2009-08-13 Thread mdipierro

My thought too.

On Aug 12, 5:58 pm, desfrenes desfre...@gmail.com wrote:
 2) should we provide a cookie aware xmlrpc cllient with web2py?

 3) should we allow other mechanisms to id sessions? For example a uuid
 in the URL?

 These are very application-specific. Other services may require a
 token in the method's parameters, other may require http auth, some
 may need cookies etc... I wouldn't go beyond the xmlrpc spec on this
 subject. Furthermore, a good  service should be designed to work
 with no state. State is the client's job, not the service, and this
 makes your service more scalable. Then session.forget() should
 probably be the default with return service().
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:28485] Re: def download(): slow

2009-08-13 Thread mdipierro

Can you send me a patch by email?

On Aug 12, 2:53 pm, hcvst hcv...@googlemail.com wrote:
 FIXED

 Hi,

 I've now changed the download function to use response.stream in order
 for the Http Header 'Content-Disposition: attachment;
 filename=myimg.JPG' not to be added. That didn't make a difference
 except that one can now enter the image URL into the browser without
 being prompted to save the file. So it's not a download function
 anymore :)

 Next I added these headers:

     response.headers['Expires'] = 'Sun, 20 Sep 2009 12:00:00 GMT'
     response.headers['Last-Modified'] = 'Mon, 10 Aug 2009 12:13:14
 GMT'
     response.headers['Cache-Control'] = 'max-age=3600'

 But that had no effect either. Every time I revisit the page the
 pictures would briefly flash (as if cached) and then start trickling
 in again.

 Finally this fixed it:

     if request.env.http_if_modified_since:
         raise HTTP(304)

 HC

 On Aug 11, 9:33 pm, hcvst hcv...@googlemail.com wrote:

  Hi,

  I am surprised I didn't find a post on slow downloads, but perhaps
  it's only so bad because my internet connection is terribly slow.

  def download():
      
      allows downloading of uploaded files
     http:///[app]/default/download/[filename]
      
      return response.download(request,db)

  I am just building an auction site and have around 10 pictures on a
  page - uploaded by users. On refresh all of them reload (line by line,
  as in the old days). Can I tell the browser to cache them?

  Without looking at the source I tried a cache decorator (in disk-
  caching mode), assuming that it might tell the browser, but actually
  ended up having to restart apache (mod_wsgi).

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



[web2py:28486] Re: Web2py.com down

2009-08-13 Thread mdipierro

I do not know what happened but I restarted and it works.

On Aug 12, 8:29 pm, emaynard elmayn...@gmail.com wrote:
 Same here in Ohio.  Neither Domain name nor IP appear to be working.

 -Eric

 On Aug 12, 9:06 pm, Yannick ytchatch...@gmail.com wrote:

  Same here in Canada...

  On Aug 12, 8:30 pm, Richard richar...@gmail.com wrote:

   I can't accesswww.web2py.comatthemoment and have experienced
   intermittent downtime.

   On Aug 8, 2:33 pm, b00m_chef r...@devshell.org wrote:

Just tried to accessweb2py.com and was not up.

Tried using a proxy (guardster), same result.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:28487] Re: current link indication with MENU() helper

2009-08-13 Thread mdipierro

I do not think this should be considered a web2py bug. You are
supposed to override layout.html and assign a different css class when
a menu link is active. I did not put it in layout.html and menu.py to
keep is leaner and easier to read.

On Aug 12, 9:25 pm, Richard richar...@gmail.com wrote:
 Maybe add it to the issue tracker:http://code.google.com/p/web2py/issues/list

 On Aug 13, 11:57 am, ionel ionelanton...@gmail.com wrote:

  Massimo,

  When will we have this feature added into menu helper? I really need
  this...

  Thanks.

  On Jun 17, 12:13 pm, mdipierro mdipie...@cs.depaul.edu wrote:

   Sorry, this needs to be added to the menu helper. Not there yet

   Massimo

   On Jun 17, 10:29 am, blackthorne francisco@gmail.com wrote:

since the MENU() helper has been added to web2py, I haven't make it to
understand how does it indicate if the link is the current link which
is supposed to do as described in the web2py slides.

I made something like:
response.menu = [
    [T('Intro'),
     request.function=='index',URL(r=request,f='index')],
      [T('Casas'),
       request.function=='houses',URL(r=request,f='houses')],
      [T('Local'),
       request.function=='place',URL(r=request,f='place')],
      [T('Mapa'),
       request.function=='map',URL(r=request,f='map')],
      [T('Tarifas'),
       request.function=='precos',URL(r=request,f='tarifas')]]

, all those functions, actually exist but when I access them nothing
changes on the generated li and a items that I can use for CSS.
I was expecting to see something like an ID or CLASS setting for the
active link so that I could style it has I want but nothing. I just
get:
        ul class=web2py-menu web2py-menu-horizontal
lia href=/new/default/indexIntro/a/li
lia href=/new/default/housesCasas/a/li
lia href=/new/default/placeLocal/a/li
lia href=/new/default/mapMapa/a/li
lia href=/new/default/tarifasTarifas/a/li
/ul

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 web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:28489] Re: Cron @reboot can't call script?

2009-08-13 Thread Hasanat Kazmi

This isn't a big problem. I placed my script in cron folder (same as
crontab) and added this line
@reboot script.py
It worked

On Aug 12, 6:31 pm, Fran francisb...@googlemail.com wrote:
 Should cron's @reboot be able to call a script or can it just call a
 controller function?

 The docs just show a controller function for this 
 mode:http://www.web2py.com/examples/default/cron

 I'd like to be able to call an external script instead...this isn't
 working even for very simple scripts though.
 (The scripts run fine when called manually)

 I tried both syntaxes shown in the docs:
 @reboot root *applications/sahana/cron/test.py
 @reboot * * * * root *applications/sahana/cron/test.py

 Any ideas what could be wrong?

 I've tried on both XP (with Service  with Source)  Linux with Apache/
 WSGI
 - how should @reboot work in the latter environment?

 XP with source, I just get this error:
 WARNING:root:WEB2PY CRON Call returned code 1:
 Which isn't erribly helpful...

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



[web2py:28481] Re: Why import is not that easy?

2009-08-13 Thread mdipierro

You should be able to do this as long as Y is in the same folder
(modules/) as X. The current folder is always searched before the
pythonpath.

On Aug 12, 2:40 pm, Ahmed Soliman ah...@farghal.com wrote:
 Another problem is that I cannot *easily* import other modules from my
 modules in modules/ :)

 this means that if I have module X in modules/ and module Y
 I cannot do this while in X
 import Y

 because the cwd is web2py/ so, I have to import by the application
 name again, and as request is not defined there I have no clue
 except including the application name in the import which limits my
 deployment options, do we have a solution to this?

 I'm planning on creating a large web application with web2py and I'm
 doing extensive playing with it and that include reading alot in the
 source code to be sure that it's the right tool for me, so, for a
 large project modularization is quite important and if I couldn't
 modularize my project into modules and create a suitable directory
 structure in modules/ that allows me to organize my work, then it
 might be a serious problem because I'll end up writing everything in
 the wrong place.

 Ahmed

 On Aug 12, 9:22 pm, Ahmed Soliman ah...@farghal.com wrote:

  On Aug 12, 5:14 pm, DenesL denes1...@yahoo.ca wrote:

   To avoid restarting web2py after making changes use:

   exec('from applications.%s.modules.yourmodule import X'
   %request.application)
   reload(X) # remove for production

   Denes.

  This doesn't work, did you try that? the reason is that X is probably
  a class and you cannot reload a class, you need a module object there.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:28483] Re: test on IBM AS/400 iSeries System i

2009-08-13 Thread mdipierro

Can you post an entry on AlterEgo?

On Aug 12, 4:31 pm, DenesL denes1...@yahoo.ca wrote:
 IT WORKS!

 I missread the traceback, the problem was that port 8000 was in use.

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



[web2py:28490] Re: where for art thou, oh session attribute?

2009-08-13 Thread rb

 Furthermore, a good  service should be designed to work
 with no state. State is the client's job, not the service, and this
 makes your service more scalable.

An n-tier (web) app has at least a database facility, business logic
facility, and presentation. Your comment above implies that all
business logic should exist in the client - and not in the svr,
because only trivial business logic is stateless. I don't think this
is necessarily true. The choices really boil down to three:

1) put stateful business logic in the svr, keep it active, and pass a
session token between client and svr (ie keep the state active in the
svr);

2) serialize the business logic state to disk (or cache) and then
throw away the state, and reconstitute the state upon each following
client request in the session (keep the state in the server but
unserialize and serialize it with each client request);

3) keep the business logic and its state (active) in the client and
only send stateless CRUD back to the svr.

I see advantages and problems with all three approaches.

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



[web2py:28491] eStore + jQueryUI + ThemeRoller

2009-08-13 Thread Philip Kilner

Hi All,

As my first non-trivial web2py application, I have been adapting the
eStore product for a B2B eCommerce application.

That application isn't something that I can release, but once I'm done
with this, I'd like to develop and release a standard B2C eCommerce
appliance based on eStore but updated to use my work integrating
jQueryUI + ThemeRoller.

Also, in a previous life I was involved in developing a store product
with some additional simple merchandising features which were well
received my merchants, such as a non-hierarchical catalogue, up-sell,
cross-sell, membership features etc., which I'd like to work into the
product. Nothing too dramatic, but more than enough for a simple
real-life store.

Before I start planning the B2C version (which I won't be able to start
on for a couple of weeks), I wanted to ask if anyone else was interested
in pitching in, if there were any feature requests, and - most
importantly - whether anyone else was working on an eStore variant at
the moment?

My main objective in doing this is to contribute back my
jQueryUI-oriented version, and to make some use of my modest eCommerce
experience. My motivation is to have some fun and sharpen up my web2py
*and* my collaboration skills, so if anyone wants to pitch in with me,
that would be very welcome.

I'm away next week, and hope to put my B2B version to bed the week
after, so it looks like I'll be starting at the beginning of next month.


-- 

Regards,

PhilK


'work as if you lived in the early days of a better nation'
- alasdair gray

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



[web2py:28482] Re: Newbie Locale Question

2009-08-13 Thread mdipierro

You do not need to do that.

Just use the EDIT page, create a language file for mexican and
translate the format strings. This will be taken care of automatically
everywhere.

On Aug 12, 3:06 pm, Francisco betancourt.franci...@gmail.com wrote:
 Hello everyone.

 I have just started learning web2py. It's really great!
 Now the question I have is about the locale.
 I'm from Mexico so my applications must be in Spanish. In some part of
 the application I want to get a date doing something like this from
 within a view:

 {{=consulta.fecha_consulta.strftime(%A %d %B %Y)}}

 and it works, but the date is displayed in English. In what way can I
 set the locale for the date to be displayed in Spanish?

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



[web2py:28488] email downtime

2009-08-13 Thread mdipierro

Sorry if I am not answering regular emails. I cannot connect to my
imap server, I can only send. Hopefully this is fixed too.

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



[web2py:28492] Re: where for art thou, oh session attribute?

2009-08-13 Thread mdipierro

If your client is willing to pass a state token this can be used to
retrieve the normal web2py session already by mimiking the cookie.
This can be done already but I need to write some instructions.

On Aug 13, 2:34 am, rb rbspg...@gmail.com wrote:
  Furthermore, a good  service should be designed to work
  with no state. State is the client's job, not the service, and this
  makes your service more scalable.

 An n-tier (web) app has at least a database facility, business logic
 facility, and presentation. Your comment above implies that all
 business logic should exist in the client - and not in the svr,
 because only trivial business logic is stateless. I don't think this
 is necessarily true. The choices really boil down to three:

 1) put stateful business logic in the svr, keep it active, and pass a
 session token between client and svr (ie keep the state active in the
 svr);

 2) serialize the business logic state to disk (or cache) and then
 throw away the state, and reconstitute the state upon each following
 client request in the session (keep the state in the server but
 unserialize and serialize it with each client request);

 3) keep the business logic and its state (active) in the client and
 only send stateless CRUD back to the svr.

 I see advantages and problems with all three approaches.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:28493] Re: eStore + jQueryUI + ThemeRoller

2009-08-13 Thread mdipierro

This is great. Even if you cannot release it, will you be able to
point us to it so that we can see it up and running?

On Aug 13, 2:35 am, Philip Kilner phil.kil...@gmail.com wrote:
 Hi All,

 As my first non-trivial web2py application, I have been adapting the
 eStore product for a B2B eCommerce application.

 That application isn't something that I can release, but once I'm done
 with this, I'd like to develop and release a standard B2C eCommerce
 appliance based on eStore but updated to use my work integrating
 jQueryUI + ThemeRoller.

 Also, in a previous life I was involved in developing a store product
 with some additional simple merchandising features which were well
 received my merchants, such as a non-hierarchical catalogue, up-sell,
 cross-sell, membership features etc., which I'd like to work into the
 product. Nothing too dramatic, but more than enough for a simple
 real-life store.

 Before I start planning the B2C version (which I won't be able to start
 on for a couple of weeks), I wanted to ask if anyone else was interested
 in pitching in, if there were any feature requests, and - most
 importantly - whether anyone else was working on an eStore variant at
 the moment?

 My main objective in doing this is to contribute back my
 jQueryUI-oriented version, and to make some use of my modest eCommerce
 experience. My motivation is to have some fun and sharpen up my web2py
 *and* my collaboration skills, so if anyone wants to pitch in with me,
 that would be very welcome.

 I'm away next week, and hope to put my B2B version to bed the week
 after, so it looks like I'll be starting at the beginning of next month.

 --

 Regards,

 PhilK

 'work as if you lived in the early days of a better nation'
 - alasdair gray
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:28494] Re: Menu and active CSS class

2009-08-13 Thread Sebastian E. Ovide
Just for testing the menu, I have changed the menu of a new application:

if 'auth' in globals():
if not auth.is_logged_in():
   response.menu_auth = [
   [T('True'), True, ,[]],
[T('False'), False, ,[]],
[T('True'), True, ,[]],
[T('False'), False, ,[]],
   ]

so I would expect that the True menu items have different style than the
False menu items... but this is what web2py writes:

h2Authentication/h2

ul class=web2py-menu web2py-menu-vertical
lia href=#nullTrue/a/li
lia href=#nullFalse/a/li
lia href=#nullTrue/a/li
lia href=#nullFalse/a/li
/ul


is it working as expected ? if yes, is there any way to set a menu item as
activated ?

thanks

On Thu, Aug 13, 2009 at 8:07 AM, mdipierro mdipie...@cs.depaul.edu wrote:


 None of the two. Each menu item has an active attribute that can be
 true or false. It is set manually. The default layout does not use it.
 Your own layout may need it so it is there.

 On Aug 12, 12:04 pm, Sebastian E. Ovide sebastianov...@gmail.com
 wrote:
  Is it a bug or a feature not implemented yet ?
 
  On Fri, Jul 3, 2009 at 12:08 PM, Álvaro Justen [Turicas] 
 
 
 
  alvarojus...@gmail.com wrote:
 
   On Fri, Jul 3, 2009 at 06:44, Vidul Petrovvidul.r...@gmail.com
 wrote:
 
Hi,
 
Given that I have a menu like:
 
response.menu = [
   ['Home', request.function=='index',
  URL(request.application,'default','index'), []],
   ['New Post', request.function=='create',
  URL(request.application,'default','create'), []],
   ]
 
the active link does not work unless I copy this addition from an
older SVN revision in html.py:
 
diff -a gluon/html.py ~/web2py-read-only/gluon/html.py
1270,1273c1270
   if active:
 li = LI(A(name, _href=link, _class=active))
   else:
 li = LI(A(name, _href=link))
---
li = LI(A(name, _href=link))
 
I am wondering why this addition was removed, probably there is a
better way to implement the menu?
 
   Sure. There is a bug in this. I think it could fix the problem (not
   tested):
 
  def serialize(self, data, level=0):
  if level == 0:
  ul = UL(**self.attributes)
  else:
  ul = UL(_class=self['ul_class'])
  for item in data:
  (name, active, link) = item[:3]
  link_attrs = []
  if link:
  link_attrs.append(_href=link)
  else:
  link_attrs.append(_href='#null')
  if active:
  link_attrs.append(_class='active')
  li = LI(A(name, *link_attrs))
  if len(item)  3 and item[3]:
  if li['_class']:
  li['_class'] += ' ' + self['li_class']
  else:
  li['_class'] = self['li_class']
  li.append(self.serialize(item[3], level+1))
  ul.append(li)
  return ul
 
   --
Álvaro Justen
Peta5 - Telecomunicações e Software Livre
21 3021-6001 / 9898-0141
http://www.peta5.com.br/
 
  --
 
  Sebastian E. Ovide
 
  skype: seezov
 
  +353 87 6340149
 
  Sent from Dublin, Ireland
 



-- 

Sebastian E. Ovide

skype: seezov

+353 87 6340149

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



[web2py:28495] Re: eStore + jQueryUI + ThemeRoller

2009-08-13 Thread Philip Kilner

Hi Massimo,

mdipierro wrote:
 This is great. Even if you cannot release it, will you be able to
 point us to it so that we can see it up and running?
 

I will - it's a site selling recycled aircraft components, so not very
visually jazzy, but the jQueryUI/ThemeRoller stuff looks a lot nicer
than my own sad attempts at design.

At some point I need to ask for some clues as to how to separate the
JQueryUI stuff from the rest of the appliance, as we discussed some time
ago, but for now I'm more focussed on the app than reusing the jQuery stuff.

;-)

In fact, part of my desire to produce a B2C oriented version is that the
requirement for this first site is pretty narrow as the business is at a
very early stage, and I'm having ideas that I can't implement in that
context.

I'm having a lot of fun with web2py - thank you!

:-)


-- 

Regards,

PhilK


'work as if you lived in the early days of a better nation'
- alasdair gray

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



[web2py:28496] Accounting package: help needed for Jquery against a fee

2009-08-13 Thread Francois (Jersey)


I am writing a small accounting software using WEB2PY and Jquery
validate. I have started writing a dynamic javascript page, but I am
new to it.

Would anyone be willing to work on it for a fee.



I am using an enhancement of the example dynamic total from the Jquery
validate package, and this is where I am struggling: as I don't know
how to do a generic function, instead of replicating the same function
for each line of the programme.

Please look at the dynamic file: http://pastebin.com/m7444f28

and this is what I am trying to achieve for a specific line:
http://pastebin.com/m27c5ee3a

Many thanks,

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



[web2py:28497] Re: where for art thou, oh session attribute?

2009-08-13 Thread desfrenes

There have been countless flamewars on this subject... we need another
one here ;-)
As you guess, I think 3) is the way to go (although it doesn't have to
be limited to crud operations). I tend to trust Thomas Erl here
(http://www.soaprinciples.com/service_statelessness.asp).
Me and my team use json-rpc, which is pretty much the same as xmlrpc,
and most methods require a token, used only for auth (can this client
use this method ?), no state is kept on the server. We also consume
SOAP services that are not designed following the stateless principle
and it's a real pain in the... we even have to call  methods in a
particular order just because they're not autonomous :-/
Of course you may have different needs but since they don't seem to be
covered by the xmlrpc protocol, you should probably address them in
your application. It shouldn't be too difficult to pass the cookie
value in the url, or as a parameter and then find the session data on
web2py side.
The problem is that there's no real standard for this, so any
implementation in web2py will probably remain web2py-specific. It's
probably ok, if it's not activated by default.

On 13 août, 09:34, rb rbspg...@gmail.com wrote:
  Furthermore, a good  service should be designed to work
  with no state. State is the client's job, not the service, and this
  makes your service more scalable.

 An n-tier (web) app has at least a database facility, business logic
 facility, and presentation. Your comment above implies that all
 business logic should exist in the client - and not in the svr,
 because only trivial business logic is stateless. I don't think this
 is necessarily true. The choices really boil down to three:

 1) put stateful business logic in the svr, keep it active, and pass a
 session token between client and svr (ie keep the state active in the
 svr);

 2) serialize the business logic state to disk (or cache) and then
 throw away the state, and reconstitute the state upon each following
 client request in the session (keep the state in the server but
 unserialize and serialize it with each client request);

 3) keep the business logic and its state (active) in the client and
 only send stateless CRUD back to the svr.

 I see advantages and problems with all three approaches.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:28498] Re: where for art thou, oh session attribute?

2009-08-13 Thread Trollkarlen

I had almost the same problem with flash.

Put this in the db.py to connect the session.

request.cookies[response.session_id_name]=request.vars.mysession_id
session.connect(request,response)

Then just send the session with pagename.html?
mysession_id=178648217648721...

/R

On Aug 13, 12:11 pm, desfrenes desfre...@gmail.com wrote:
 There have been countless flamewars on this subject... we need another
 one here ;-)
 As you guess, I think 3) is the way to go (although it doesn't have to
 be limited to crud operations). I tend to trust Thomas Erl here
 (http://www.soaprinciples.com/service_statelessness.asp).
 Me and my team use json-rpc, which is pretty much the same as xmlrpc,
 and most methods require a token, used only for auth (can this client
 use this method ?), no state is kept on the server. We also consume
 SOAP services that are not designed following the stateless principle
 and it's a real pain in the... we even have to call  methods in a
 particular order just because they're not autonomous :-/
 Of course you may have different needs but since they don't seem to be
 covered by the xmlrpc protocol, you should probably address them in
 your application. It shouldn't be too difficult to pass the cookie
 value in the url, or as a parameter and then find the session data on
 web2py side.
 The problem is that there's no real standard for this, so any
 implementation in web2py will probably remain web2py-specific. It's
 probably ok, if it's not activated by default.

 On 13 août, 09:34, rb rbspg...@gmail.com wrote:

   Furthermore, a good  service should be designed to work
   with no state. State is the client's job, not the service, and this
   makes your service more scalable.

  An n-tier (web) app has at least a database facility, business logic
  facility, and presentation. Your comment above implies that all
  business logic should exist in the client - and not in the svr,
  because only trivial business logic is stateless. I don't think this
  is necessarily true. The choices really boil down to three:

  1) put stateful business logic in the svr, keep it active, and pass a
  session token between client and svr (ie keep the state active in the
  svr);

  2) serialize the business logic state to disk (or cache) and then
  throw away the state, and reconstitute the state upon each following
  client request in the session (keep the state in the server but
  unserialize and serialize it with each client request);

  3) keep the business logic and its state (active) in the client and
  only send stateless CRUD back to the svr.

  I see advantages and problems with all three approaches.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:28499] Re: current link indication with MENU() helper

2009-08-13 Thread Sebastian E. Ovide
Hi Massimo,

by override layout.html  you mean to replace the MENU function with a
for loop as it was before ?

ie:

{{if response.menu:}}
div class=main
ul
{{for name,active,link in response.menu:}}
li {{if active:}}id=nav-active{{pass}}a
href={{=link}}{{=name}}/a/li
{{pass}}
/ul
/div
{{pass}}



thanks

On Thu, Aug 13, 2009 at 8:26 AM, mdipierro mdipie...@cs.depaul.edu wrote:


 I do not think this should be considered a web2py bug. You are
 supposed to override layout.html and assign a different css class when
 a menu link is active. I did not put it in layout.html and menu.py to
 keep is leaner and easier to read.

 On Aug 12, 9:25 pm, Richard richar...@gmail.com wrote:
  Maybe add it to the issue tracker:
 http://code.google.com/p/web2py/issues/list
 
  On Aug 13, 11:57 am, ionel ionelanton...@gmail.com wrote:
 
   Massimo,
 
   When will we have this feature added into menu helper? I really need
   this...
 
   Thanks.
 
   On Jun 17, 12:13 pm, mdipierro mdipie...@cs.depaul.edu wrote:
 
Sorry, this needs to be added to the menu helper. Not there yet
 
Massimo
 
On Jun 17, 10:29 am, blackthorne francisco@gmail.com wrote:
 
 since the MENU() helper has been added to web2py, I haven't make it
 to
 understand how does it indicate if the link is the current link
 which
 is supposed to do as described in the web2py slides.
 
 I made something like:
 response.menu = [
 [T('Intro'),
  request.function=='index',URL(r=request,f='index')],
   [T('Casas'),
request.function=='houses',URL(r=request,f='houses')],
   [T('Local'),
request.function=='place',URL(r=request,f='place')],
   [T('Mapa'),
request.function=='map',URL(r=request,f='map')],
   [T('Tarifas'),
request.function=='precos',URL(r=request,f='tarifas')]]
 
 , all those functions, actually exist but when I access them
 nothing
 changes on the generated li and a items that I can use for CSS.
 I was expecting to see something like an ID or CLASS setting for
 the
 active link so that I could style it has I want but nothing. I just
 get:
 ul class=web2py-menu web2py-menu-horizontal
 lia href=/new/default/indexIntro/a/li
 lia href=/new/default/housesCasas/a/li
 lia href=/new/default/placeLocal/a/li
 lia href=/new/default/mapMapa/a/li
 lia href=/new/default/tarifasTarifas/a/li
 /ul
 
 Thank you, best regards
 



-- 

Sebastian E. Ovide

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



[web2py:28500] Re: converting the query dictionary to a list

2009-08-13 Thread tititi

Thanks for the response. Unfortunately, I got this error:

AttributeError: 'dict' object has no attribute 'append'

Any ideas why? Looks logical.

Titi

On Aug 13, 8:52 am, Fran francisb...@googlemail.com wrote:
 On Aug 13, 2:18 am, tititi briant...@gmail.com wrote:

  I'm new to w2p and would like to incorporate tag cloud function into
  my site but can't seem to convert a dictionary to a list from a
  database query result. Can anyone help me with this?
  def gen_tags():
      #tags = ['java','php','python','python']
      query=db.tags.id0
      tags = db(query).select(db.tags.word)
      # results show--- tags.word indian italian spanish indian
      words = {}

 for tag in tags:
     words.append(tag.word)

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



[web2py:28501] problems on HTML list representation

2009-08-13 Thread Carlos Aboim

Hi everyone once again :-)

I am having a problem with a visualization of a HTML list from a view

So:
I got :ul{{for obra in obras:}}
{{=LI(A(obra.numero, obra.nome), _href=URL(r=request,
f='mostrar', args = [obra.id]))}}
{{pass}}
/ul

I want it to be like this: obra.numero (should be link), obra.nome
(plain html text)

for obra in obras

obra.numero  obra.nome
obra.numero1  obra.nome1
obra.numero2  obra.nome2
obra.numero3  obra.nome3


I tried several exemples but no sucess! as:
ul{{for obra in obras:}}
{{=LI(A(obra.numero), (obra.nome), _href=URL(r=request,
f='mostrar', args = [obra.id]))}}  # no space btw
{{pass}}
/ul

ul{{for obra in obras:}}
{{=LI(A(obra.numero, _href=URL(r=request, f='mostrar', args =
[obra.id]))}}{{=LI(obra.nome)}} # 2 lines
{{pass}}
/ul


I need your help

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



[web2py:28502] Re: converting the query dictionary to a list

2009-08-13 Thread Fran

On Aug 13, 12:21 pm, tititi briant...@gmail.com wrote:
 Thanks for the response. Unfortunately, I got this error:
 AttributeError: 'dict' object has no attribute 'append'
 Any ideas why? Looks logical.

       words = {}

Sorry vchange this to:
words = []

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



[web2py:28505] Re: test on IBM AS/400 iSeries System i

2009-08-13 Thread DenesL

First I have to get access to admin via SSL and run some tests.

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



[web2py:28506] Re: converting the query dictionary to a list

2009-08-13 Thread DenesL

words=[t.word for t in tags]

Font size by tag density requires some thought, maybe later.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:28507] Re: cron issue

2009-08-13 Thread npye

Fixed to debug i added  /tmp/classwatch.log 21 to the end of the
statement, unicode error with python print !! ;-)

On Aug 12, 4:20 pm, npye nick@gmail.com wrote:
 Hello,

 I'm having a problem with cron ... I have a cron task ( runs a script
 to update the DB ) defined in the applications crontab.
 The script has been tested and works ... external from web2py on the
 command line.

 I get this error on the web2py console.

 WARNING:root:WEB2PY CRON Call returned code 1: No error message
 available

 my environment is as follows :-
 web2py Version 1.65.11
 Debian Linux 5.0
 python 2.5.2

 my crontab for the application is as follows :-

 */30 * * * * root python /home/web2py/applications/weather/static/
 getweather.py

 Any pointers would be of great help.

 Thanks

 Kind Regards

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



[web2py:28508] Re: current link indication with MENU() helper

2009-08-13 Thread mdipierro

I am putting this in MENU now.

On Aug 13, 6:09 am, Sebastian E. Ovide sebastianov...@gmail.com
wrote:
 Hi Massimo,

 by override layout.html  you mean to replace the MENU function with a
 for loop as it was before ?

 ie:

     {{if response.menu:}}
     div class=main
         ul
             {{for name,active,link in response.menu:}}
             li {{if active:}}id=nav-active{{pass}}a
 href={{=link}}{{=name}}/a/li
             {{pass}}
         /ul
     /div
     {{pass}}

 thanks



 On Thu, Aug 13, 2009 at 8:26 AM, mdipierro mdipie...@cs.depaul.edu wrote:

  I do not think this should be considered a web2py bug. You are
  supposed to override layout.html and assign a different css class when
  a menu link is active. I did not put it in layout.html and menu.py to
  keep is leaner and easier to read.

  On Aug 12, 9:25 pm, Richard richar...@gmail.com wrote:
   Maybe add it to the issue tracker:
 http://code.google.com/p/web2py/issues/list

   On Aug 13, 11:57 am, ionel ionelanton...@gmail.com wrote:

Massimo,

When will we have this feature added into menu helper? I really need
this...

Thanks.

On Jun 17, 12:13 pm, mdipierro mdipie...@cs.depaul.edu wrote:

 Sorry, this needs to be added to the menu helper. Not there yet

 Massimo

 On Jun 17, 10:29 am, blackthorne francisco@gmail.com wrote:

  since the MENU() helper has been added to web2py, I haven't make it
  to
  understand how does it indicate if the link is the current link
  which
  is supposed to do as described in the web2py slides.

  I made something like:
  response.menu = [
      [T('Intro'),
       request.function=='index',URL(r=request,f='index')],
        [T('Casas'),
         request.function=='houses',URL(r=request,f='houses')],
        [T('Local'),
         request.function=='place',URL(r=request,f='place')],
        [T('Mapa'),
         request.function=='map',URL(r=request,f='map')],
        [T('Tarifas'),
         request.function=='precos',URL(r=request,f='tarifas')]]

  , all those functions, actually exist but when I access them
  nothing
  changes on the generated li and a items that I can use for CSS.
  I was expecting to see something like an ID or CLASS setting for
  the
  active link so that I could style it has I want but nothing. I just
  get:
          ul class=web2py-menu web2py-menu-horizontal
  lia href=/new/default/indexIntro/a/li
  lia href=/new/default/housesCasas/a/li
  lia href=/new/default/placeLocal/a/li
  lia href=/new/default/mapMapa/a/li
  lia href=/new/default/tarifasTarifas/a/li
  /ul

  Thank you, best regards

 --

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



[web2py:28509] Re: problems on HTML list representation

2009-08-13 Thread mdipierro

I think you want

ul{{for obra in obras:}}
{{=LI(A(obra.numero, _href=URL(r=request, f='mostrar', args =
[obra.id])),' ',obra.nome)}} # 2 lines
{{pass}}
/ul

On Aug 13, 8:05 am, Carlos Aboim abo...@gmail.com wrote:
 Yeah you're wright!
 I express my self in a wrong way

 In fact both are two fields - obra.numero and obra.nome

 I just can't separete them in the same line

 Thanks
 Carlos Aboim

 2009/8/13 Sebastian E. Ovide sebastianov...@gmail.com

  did you try this ?

  {{=LI(A(123,_href=someurl),some text)}}

  On Thu, Aug 13, 2009 at 12:43 PM, Carlos Aboim abo...@gmail.com wrote:

  Hi everyone once again :-)

  I am having a problem with a visualization of a HTML list from a view

  So:
  I got :ul{{for obra in obras:}}
         {{=LI(A(obra.numero, obra.nome), _href=URL(r=request,
  f='mostrar', args = [obra.id]))}}
         {{pass}}
         /ul

  I want it to be like this: obra.numero (should be link), obra.nome
  (plain html text)

  for obra in obras

  obra.numero  obra.nome
  obra.numero1  obra.nome1
  obra.numero2  obra.nome2
  obra.numero3  obra.nome3

  I tried several exemples but no sucess! as:
     ul{{for obra in obras:}}
     {{=LI(A(obra.numero), (obra.nome), _href=URL(r=request,
  f='mostrar', args = [obra.id]))}}  # no space btw
     {{pass}}
     /ul

     ul{{for obra in obras:}}
     {{=LI(A(obra.numero, _href=URL(r=request, f='mostrar', args =
  [obra.id]))}}{{=LI(obra.nome)}} # 2 lines
     {{pass}}
     /ul

  I need your help

  Thank you
  Carlos Aboim

  --

  Sebastian E. Ovide

  skype: seezov

  +353 87 6340149

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



[web2py:28510] Re: problems on HTML list representation

2009-08-13 Thread Julio

ul
{{for obra in obras:}}
lia href={{=URL(r=request, f='mostrar', argc=[obra.id])}}
title={{=obra.numero}} {{=obra.nome}}/a/li
{{pass}}
/ul

Why do you want to use HTML Helpers.. well.. in HTML??, please don't
get me wrong, I am not complaining about your code in particular, but
in html helpers themselves, IMHO they can potentially create really
nasty views (and don't get me started on using them in controllers :)

Anyway I truly hope your problem gets resolved.

Julio

On Aug 13, 5:31 am, Sebastian E. Ovide sebastianov...@gmail.com
wrote:
 did you try this ?

 {{=LI(A(123,_href=someurl),some text)}}



 On Thu, Aug 13, 2009 at 12:43 PM, Carlos Aboim abo...@gmail.com wrote:

  Hi everyone once again :-)

  I am having a problem with a visualization of a HTML list from a view

  So:
  I got :ul{{for obra in obras:}}
         {{=LI(A(obra.numero, obra.nome), _href=URL(r=request,
  f='mostrar', args = [obra.id]))}}
         {{pass}}
         /ul

  I want it to be like this: obra.numero (should be link), obra.nome
  (plain html text)

  for obra in obras

  obra.numero  obra.nome
  obra.numero1  obra.nome1
  obra.numero2  obra.nome2
  obra.numero3  obra.nome3

  I tried several exemples but no sucess! as:
     ul{{for obra in obras:}}
     {{=LI(A(obra.numero), (obra.nome), _href=URL(r=request,
  f='mostrar', args = [obra.id]))}}  # no space btw
     {{pass}}
     /ul

     ul{{for obra in obras:}}
     {{=LI(A(obra.numero, _href=URL(r=request, f='mostrar', args =
  [obra.id]))}}{{=LI(obra.nome)}} # 2 lines
     {{pass}}
     /ul

  I need your help

  Thank you
  Carlos Aboim

 --

 Sebastian E. Ovide

 skype: seezov

 +353 87 6340149

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



[web2py:28511] Re: problems on HTML list representation

2009-08-13 Thread Carlos Aboim
Hi
that's correct!!

thanks
Aboim

2009/8/13 mdipierro mdipie...@cs.depaul.edu


 I think you want

ul{{for obra in obras:}}
{{=LI(A(obra.numero, _href=URL(r=request, f='mostrar', args =
 [obra.id])),' ',obra.nome)}} # 2 lines
{{pass}}
/ul

 On Aug 13, 8:05 am, Carlos Aboim abo...@gmail.com wrote:
  Yeah you're wright!
  I express my self in a wrong way
 
  In fact both are two fields - obra.numero and obra.nome
 
  I just can't separete them in the same line
 
  Thanks
  Carlos Aboim
 
  2009/8/13 Sebastian E. Ovide sebastianov...@gmail.com
 
   did you try this ?
 
   {{=LI(A(123,_href=someurl),some text)}}
 
   On Thu, Aug 13, 2009 at 12:43 PM, Carlos Aboim abo...@gmail.com
 wrote:
 
   Hi everyone once again :-)
 
   I am having a problem with a visualization of a HTML list from a view
 
   So:
   I got :ul{{for obra in obras:}}
  {{=LI(A(obra.numero, obra.nome), _href=URL(r=request,
   f='mostrar', args = [obra.id]))}}
  {{pass}}
  /ul
 
   I want it to be like this: obra.numero (should be link), obra.nome
   (plain html text)
 
   for obra in obras
 
   obra.numero  obra.nome
   obra.numero1  obra.nome1
   obra.numero2  obra.nome2
   obra.numero3  obra.nome3
 
   I tried several exemples but no sucess! as:
  ul{{for obra in obras:}}
  {{=LI(A(obra.numero), (obra.nome), _href=URL(r=request,
   f='mostrar', args = [obra.id]))}}  # no space btw
  {{pass}}
  /ul
 
  ul{{for obra in obras:}}
  {{=LI(A(obra.numero, _href=URL(r=request, f='mostrar', args =
   [obra.id]))}}{{=LI(obra.nome)}} # 2 lines
  {{pass}}
  /ul
 
   I need your help
 
   Thank you
   Carlos Aboim
 
   --
 
   Sebastian E. Ovide
 
   skype: seezov
 
   +353 87 6340149
 
   Sent from Dublin, Ireland
 


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



[web2py:28512] Re: problems on HTML list representation

2009-08-13 Thread Jonathan Lundell

On Aug 13, 2009, at 8:08 AM, Julio wrote:

 ul
{{for obra in obras:}}
lia href={{=URL(r=request, f='mostrar', argc=[obra.id])}}
 title={{=obra.numero}} {{=obra.nome}}/a/li
{{pass}}
 /ul

 Why do you want to use HTML Helpers.. well.. in HTML??, please don't
 get me wrong, I am not complaining about your code in particular, but
 in html helpers themselves, IMHO they can potentially create really
 nasty views (and don't get me started on using them in controllers :)

Calling URL() is necessary if you're rewriting with routes.py.


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



[web2py:28513] Re: problems on HTML list representation

2009-08-13 Thread Julio

I agree, I do not use routes.py in any of my apps, yet I use URL() on
every page that references a ..URL.., no rewriting of code in case you
decide to use routes.py eventually.

What I did in my code above was to use simple HTML tags and a url
helper method to properly render the url in the href attribute of the
a tag, just for clarification.. same outcome, easier to read imho.

On Aug 13, 8:34 am, Jonathan Lundell jlund...@pobox.com wrote:
 On Aug 13, 2009, at 8:08 AM, Julio wrote:

  ul
     {{for obra in obras:}}
         lia href={{=URL(r=request, f='mostrar', argc=[obra.id])}}
  title={{=obra.numero}} {{=obra.nome}}/a/li
     {{pass}}
  /ul

  Why do you want to use HTML Helpers.. well.. in HTML??, please don't
  get me wrong, I am not complaining about your code in particular, but
  in html helpers themselves, IMHO they can potentially create really
  nasty views (and don't get me started on using them in controllers :)

 Calling URL() is necessary if you're rewriting with routes.py.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:28515] Re: problems on HTML list representation

2009-08-13 Thread Jonathan Lundell

On Aug 13, 2009, at 8:49 AM, Julio wrote:


 I agree, I do not use routes.py in any of my apps, yet I use URL() on
 every page that references a ..URL.., no rewriting of code in case you
 decide to use routes.py eventually.

 What I did in my code above was to use simple HTML tags and a url
 helper method to properly render the url in the href attribute of the
 a tag, just for clarification.. same outcome, easier to read imho.

Now that the helpers support both HTML and XHTML doctypes, I'd like to  
see helpers for self-closing tags do the right thing, depending on  
doctype. For example, BR() would generate br or br /  
appropriately, and similarly for HR, IMG, META, etc.

I don't quite see how to mechanize that, though


 On Aug 13, 8:34 am, Jonathan Lundell jlund...@pobox.com wrote:
 On Aug 13, 2009, at 8:08 AM, Julio wrote:

 ul
{{for obra in obras:}}
lia href={{=URL(r=request, f='mostrar',  
 argc=[obra.id])}}
 title={{=obra.numero}} {{=obra.nome}}/a/li
{{pass}}
 /ul

 Why do you want to use HTML Helpers.. well.. in HTML??, please  
 don't
 get me wrong, I am not complaining about your code in particular,  
 but
 in html helpers themselves, IMHO they can potentially create really
 nasty views (and don't get me started on using them in  
 controllers :)

 Calling URL() is necessary if you're rewriting with routes.py.
 



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



[web2py:28514] Cron on WSGI

2009-08-13 Thread Fran

I see from the docs that External Cron is the preferred mechanism in a
WSGI environment, yet it seems I have another cron mechanism active,
because when I add the external cron it truthfully says:
INFO:root:WEB2PY CRON: Failed to claim /var/www/web2py/applications/
admin/cron/cron.master

How do I disable Soft Cron on WSGI?
There is no place to put in -N for web2py.py - as we run via
wsgihandler.py

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



[web2py:28516] Re: Cron on WSGI

2009-08-13 Thread mdipierro

copy options_std.py into optons.py and add

extcron=True

On Aug 13, 10:52 am, Fran francisb...@googlemail.com wrote:
 I see from the docs that External Cron is the preferred mechanism in a
 WSGI environment, yet it seems I have another cron mechanism active,
 because when I add the external cron it truthfully says:
 INFO:root:WEB2PY CRON: Failed to claim /var/www/web2py/applications/
 admin/cron/cron.master

 How do I disable Soft Cron on WSGI?
 There is no place to put in -N for web2py.py - as we run via
 wsgihandler.py

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



[web2py:28517] Re: problems on HTML list representation

2009-08-13 Thread mdipierro

Why did we open this can of worms?

Massimo



On Aug 13, 11:03 am, Jonathan Lundell jlund...@pobox.com wrote:
 On Aug 13, 2009, at 8:49 AM, Julio wrote:



  I agree, I do not use routes.py in any of my apps, yet I use URL() on
  every page that references a ..URL.., no rewriting of code in case you
  decide to use routes.py eventually.

  What I did in my code above was to use simple HTML tags and a url
  helper method to properly render the url in the href attribute of the
  a tag, just for clarification.. same outcome, easier to read imho.

 Now that the helpers support both HTML and XHTML doctypes, I'd like to  
 see helpers for self-closing tags do the right thing, depending on  
 doctype. For example, BR() would generate br or br /  
 appropriately, and similarly for HR, IMG, META, etc.

 I don't quite see how to mechanize that, though



  On Aug 13, 8:34 am, Jonathan Lundell jlund...@pobox.com wrote:
  On Aug 13, 2009, at 8:08 AM, Julio wrote:

  ul
     {{for obra in obras:}}
         lia href={{=URL(r=request, f='mostrar',  
  argc=[obra.id])}}
  title={{=obra.numero}} {{=obra.nome}}/a/li
     {{pass}}
  /ul

  Why do you want to use HTML Helpers.. well.. in HTML??, please  
  don't
  get me wrong, I am not complaining about your code in particular,  
  but
  in html helpers themselves, IMHO they can potentially create really
  nasty views (and don't get me started on using them in  
  controllers :)

  Calling URL() is necessary if you're rewriting with routes.py.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:28521] Re: logo

2009-08-13 Thread mdipierro

P.S.

Logo A was designed by Peter Kirchner (Yound Designers)
Logo B was designed by Mateusz Banach

Please vote only once but feel free to add comments.

Massimo

On Aug 13, 11:29 am, Massimo Di Pierro mdipie...@cs.depaul.edu
wrote:
 Two logos have been proposed for web2py. I love them both and I would  
 like your opinions. Here they are attached.

 Which one should go on the main web2py page and the book?

 Vote A for the logo with the W and B for the logo with the globe.

 Poll is open for 48 hours starting now.

 Massimo

  logo1.png
 31KViewDownload

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



[web2py:28518] Re: feature request: activate the feature request template

2009-08-13 Thread Yarko Tymciurak
Yes - that is mostly true since the svn repository will remain available
(and we can provide a link to it for those that want access from one of the
wiki pages)

The thing that probably does need converting is the wiki pages, as I
understand (I'll try wiki pages conversion sometime today).

Conversion hung  on the w2p file, but the other files _appear_ to be ok from
the process - I will confirm with a conversion from bzr of web2conf, and add
other config notes as needed.

Stay tuned!

- Yarko

On Thu, Aug 13, 2009 at 2:09 AM, mdipierro mdipie...@cs.depaul.edu wrote:


 keep us posed. I do not that we need converting. We can just pust 1.66
 and forget about the past. The repo is getting big.

 Massimo

 On Aug 12, 1:19 pm, Yarko Tymciurak yark...@gmail.com wrote:
  ... be sure to read thru the comments, and note those that do it locally
  (that's a fairly harmless excercise before doing an 'hg push' of the
  converted repository);   actually, I may try this excercise after
 lunch
 
  On Wed, Aug 12, 2009 at 1:13 PM, Yarko Tymciurak yark...@gmail.com
 wrote:
   Ok - let me play around w/ the web2conf a bit tomorrow;  I'll take
 notes
   and share w/ you.
 
   This is looks to be in FAR better shape than it was at the start of
 June.
 
   As for history:  Massimo, just follow this page to prepare:
 
  http://code.google.com/p/support/wiki/ConvertingSvnToHg
 
   On Wed, Aug 12, 2009 at 5:11 AM, mdipierro mdipie...@cs.depaul.edu
 wrote:
 
   Vacation? what is vacation? We can migrate as soon as I figure out
   what to do. Yarko, if you know, let me know.
   There is no need to port the entire revision history.
 
   Massimo
 
   On Aug 12, 2:26 am, Yarko Tymciurak yark...@gmail.com wrote:
We were going to migrate when mercurial support kicked in;  this
 started
   in
June, but was still getting the kinks worked out.
 
While Massimo is off on Holiday before the semester starts, I was
 going
   to
try to migrate web2conf to google code / mercurial and determine
 it's
readiness;   We should know by end of the month if a move will
 happen in
September.
 
On Wed, Aug 12, 2009 at 2:09 AM, Richard richar...@gmail.com
 wrote:
 
 On Aug 12, 2:46 pm, mdipierro mdipie...@cs.depaul.edu wrote:
  This one?
 
 http://w2popenid.appspot.com/init/default/wiki/main
 
 I guess that's the one you referred to before.
 In a previous thread you said We will soon have an API like stack
 overflow does. Is this still going to happen?
 
 Also if you were waiting on Mecurial support for Google Code do
 you
 plan to migrate now?
 
  On Aug 11, 6:55 pm, Richard richar...@gmail.com wrote:
 
   I was referring to the stackoverflow like OpenID login app is.
   Where
   can I find it?
 
   On Aug 11, 10:27 pm, mdipierro mdipie...@cs.depaul.edu
 wrote:
 
On Aug 11, 6:41 am, Richard richar...@gmail.com wrote:
 
 On Aug 11, 5:17 pm, mdipierro mdipie...@cs.depaul.edu
   wrote:
 
  Thank you Richard,
  some comments below.
 
  On Aug 10, 7:21 pm, Richard richar...@gmail.com
 wrote:
 
   hello,
 
You know that currently the main repository is on
 launchpad.net?
 
   Currently the Google Code page says Here you find
 only
   the
   development version ..., while the Launchpad page
 says
   Does
 not use
   Launchpad for development.
   That to me sounds like Google Code is the development
 repository.
 
   Also I read in another thread we were migrating to
   mercurial on
 Google
   Code. If not, then perhaps the Google Code page should
 be
 closed/
   edited to avoid confusion.
 
  Yes. I want to migrate to mercurial. Any news on whether
   Google
 code
  does (will) support this?
 
 it's already supported in Administer - Source
 
  Meanwhile I do read bug reports on both Launchpad and
 Google
 code.
BTW - can you name _one_ feature request that has
 been
 lost?
 
   People like Massimo probably read every thread and so
   would
 know all
   of the requests. But if a less active user wants to
 help
   out
 they
   can't easily find a list of outstanding issues. Here
 are
   some
 threads
   I remember because I was interested in these features,
 so
   there
 are
   certainly more:
 
   - password retrieval has a confirmation email before
   resetting
 to
   prevent abuse
 
  I will look into this.
 
   - *stackoverflow like OpenID login API
 
  Technically this is an app, not a web2py feature. Users
 are
 working on
  this already.
  The functionality exists as an external app. We will see
 if
   we
 need to
  modify web2py in order to get better integration.
 
 Is this app in appliances?
 
   - translation interface for non-admin 

[web2py:28519] filtering results of select, and CSV service

2009-08-13 Thread Fred

I'm getting incorrect CSV output from a controller function that
selects from a table and then filters the results before returning it
as a list.  The CSV output contains a spurious 'update_record' column
where the values seem to be lambda functions.

Here is my controller function:

@service.csv
def download():
requests = db().select(db.guest_request.ALL)
requests_today = [request for request in requests if
request.created.date() == datetime.date.today()]
return requests_today

db.guest_request.created is a datetime field.  I want the download
function to return exactly those rows where the 'created' datetime
value is a time in the current day.  I could not figure out how to
pass that criterion through the web2py DAL so I settled on doing it
explicitly with python datetime functions.  The list comprehension is
resulting in the right rows.

But the resulting CSV file looks like this:

description,created,update_record,mac_address,requester,id
Fred testing,2009-08-13 10:57:31,function lambda at 0xb8b085a4,
223344556677,fcy-st,29

The column headings all make sense except for the spurious
'update_record' one which does not correspond to any field in my
guest_request table.

If I return the unfiltered 'requests' object from the function the
resulting CSV data is fine with no spurious column.  But it has too
many rows then.

So, what is going wrong?  Is it wrong to return a list from a
service.csv function?  Do I have to turn it back into a SQLRows object
first somehow (and if so, then how?)  Is there some way to filter a
SQLRows object in place to do what I need?  Is the csv.service tool
borked?

This is all happening in version 1.65.11.

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



[web2py:28522] Re: Newbie Locale Question

2009-08-13 Thread Yarko Tymciurak
...you can see an example of the two lines you will want to provide at the
top of:

applications/examples/languages/it-it.py

On Thu, Aug 13, 2009 at 2:12 AM, mdipierro mdipie...@cs.depaul.edu wrote:


 You do not need to do that.

 Just use the EDIT page, create a language file for mexican and
 translate the format strings. This will be taken care of automatically
 everywhere.

 On Aug 12, 3:06 pm, Francisco betancourt.franci...@gmail.com wrote:
  Hello everyone.
 
  I have just started learning web2py. It's really great!
  Now the question I have is about the locale.
  I'm from Mexico so my applications must be in Spanish. In some part of
  the application I want to get a date doing something like this from
  within a view:
 
  {{=consulta.fecha_consulta.strftime(%A %d %B %Y)}}
 
  and it works, but the date is displayed in English. In what way can I
  set the locale for the date to be displayed in Spanish?
 
  Thanks for the help.
 


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



[web2py:28523] Re: filtering results of select, and CSV service

2009-08-13 Thread mdipierro

The problem is that request is an object and web2py tries to serialize
its methods too. Use this instead:

@service.csv
def download():
requests = db().select(db.guest_request.ALL),as_list()
requests_today = [request for request in requests if request
['created'].date() == datetime.date.today()]
return requests_today

On Aug 13, 11:25 am, Fred fre...@gmail.com wrote:
 I'm getting incorrect CSV output from a controller function that
 selects from a table and then filters the results before returning it
 as a list.  The CSV output contains a spurious 'update_record' column
 where the values seem to be lambda functions.

 Here is my controller function:

 @service.csv
 def download():
     requests = db().select(db.guest_request.ALL)
     requests_today = [request for request in requests if
 request.created.date() == datetime.date.today()]
     return requests_today

 db.guest_request.created is a datetime field.  I want the download
 function to return exactly those rows where the 'created' datetime
 value is a time in the current day.  I could not figure out how to
 pass that criterion through the web2py DAL so I settled on doing it
 explicitly with python datetime functions.  The list comprehension is
 resulting in the right rows.

 But the resulting CSV file looks like this:

     description,created,update_record,mac_address,requester,id
     Fred testing,2009-08-13 10:57:31,function lambda at 0xb8b085a4,
 223344556677,fcy-st,29

 The column headings all make sense except for the spurious
 'update_record' one which does not correspond to any field in my
 guest_request table.

 If I return the unfiltered 'requests' object from the function the
 resulting CSV data is fine with no spurious column.  But it has too
 many rows then.

 So, what is going wrong?  Is it wrong to return a list from a
 service.csv function?  Do I have to turn it back into a SQLRows object
 first somehow (and if so, then how?)  Is there some way to filter a
 SQLRows object in place to do what I need?  Is the csv.service tool
 borked?

 This is all happening in version 1.65.11.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:28524] python.exe processes

2009-08-13 Thread Greg

After running a web2py app for several minutes on my local machine, I
noted that 13 python.exe processes have been started in Windows
consuming about 90MB.  Is that to be expected?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:28525] Re: Cron on WSGI

2009-08-13 Thread Fran

On Aug 13, 5:18 pm, mdipierro mdipie...@cs.depaul.edu wrote:
 copy options_std.py into optons.py and add
 extcron=True

Great - that works :)

How do I get @reboot scripts to activate in this environment?
- restarting Apache /or Crond makes no difference.

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



[web2py:28526] Re: logo

2009-08-13 Thread vihang

A

On Aug 13, 8:31 pm, mdipierro mdipie...@cs.depaul.edu wrote:
 P.S.

 Logo A was designed by Peter Kirchner (Yound Designers)
 Logo B was designed by Mateusz Banach

 Please vote only once but feel free to add comments.

 Massimo

 On Aug 13, 11:29 am, Massimo Di Pierro mdipie...@cs.depaul.edu
 wrote:





  Two logos have been proposed for web2py. I love them both and I would  
  like your opinions. Here they are attached.

  Which one should go on the main web2py page and the book?

  Vote A for the logo with the W and B for the logo with the globe.

  Poll is open for 48 hours starting now.

  Massimo

   logo1.png
  31KViewDownload

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



[web2py:28527] Re: logo

2009-08-13 Thread Sebastian E. Ovide
Both logos are very nice !

Logo A brings to my mind some kind of web2.0 community site
Logo B makes me think to some big multinational corporation

I vote for logo A



On Thu, Aug 13, 2009 at 5:31 PM, mdipierro mdipie...@cs.depaul.edu wrote:


 P.S.

 Logo A was designed by Peter Kirchner (Yound Designers)
 Logo B was designed by Mateusz Banach

 Please vote only once but feel free to add comments.

 Massimo

 On Aug 13, 11:29 am, Massimo Di Pierro mdipie...@cs.depaul.edu
 wrote:
  Two logos have been proposed for web2py. I love them both and I would
  like your opinions. Here they are attached.
 
  Which one should go on the main web2py page and the book?
 
  Vote A for the logo with the W and B for the logo with the globe.
 
  Poll is open for 48 hours starting now.
 
  Massimo
 
   logo1.png
  31KViewDownload
 
   web2py_logo_300.png
  89KViewDownload
 



-- 

Sebastian E. Ovide

skype: seezov

+353 87 6340149

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



[web2py:28528] Re: logo

2009-08-13 Thread Jonathan Lundell

On Aug 13, 2009, at 9:29 AM, Massimo Di Pierro wrote:

 Two logos have been proposed for web2py. I love them both and I would
 like your opinions. Here they are attached.

 Which one should go on the main web2py page and the book?

 Vote A for the logo with the W and B for the logo with the globe.

A, on the grounds of simplicity and graphic boldness.

B could be simplified, I suppose, but globe-based logos are pretty  
common, at least in the Mac world.

A's bug would make a nice icon, too. And an alternative layout, with a  
smaller 'web2py' under the bug, would be useful in some applications.

Nice work.



 Poll is open for 48 hours starting now.

 Massimo



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



[web2py:28529] Re: logo

2009-08-13 Thread FERNANDO VILLARROEL

I like option A

Fernando

--- On Thu, 8/13/09, Massimo Di Pierro mdipie...@cs.depaul.edu wrote:

 From: Massimo Di Pierro mdipie...@cs.depaul.edu
 Subject: [web2py:28520] logo
 To: web2py@googlegroups.com
 Date: Thursday, August 13, 2009, 1:29 PM
 Two logos have been proposed for
 web2py. I love them both and I would  
 like your opinions. Here they are attached.
 
 Which one should go on the main web2py page and the book?
 
 Vote A for the logo with the W and B for the logo with the
 globe.
 
 Poll is open for 48 hours starting now.
 
 Massimo
  
 


  

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



[web2py:28530] Re: logo

2009-08-13 Thread Marcin Jaworski

A


Massimo Di Pierro:

 Two logos have been proposed for web2py. I love them both and I would
 like your opinions. Here they are attached.

 Which one should go on the main web2py page and the book?

 Vote A for the logo with the W and B for the logo with the globe.

 Poll is open for 48 hours starting now.

 Massimo
 
 logo1.pngweb2py_logo_300.png


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



[web2py:28531] Re: logo

2009-08-13 Thread FeWill

I prefer the simplicity of A. Also the W icon created out of people is
more appealing to me.

On Aug 13, 10:29 am, Massimo Di Pierro mdipie...@cs.depaul.edu
wrote:
 Two logos have been proposed for web2py. I love them both and I would  
 like your opinions. Here they are attached.

 Which one should go on the main web2py page and the book?

 Vote A for the logo with the W and B for the logo with the globe.

 Poll is open for 48 hours starting now.

 Massimo

  logo1.png
 31KViewDownload

  web2py_logo_300.png
 89KViewDownload

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



[web2py:28532] Re: filtering results of select, and CSV service

2009-08-13 Thread Fred

Thanks, that gave me the clue I needed.  Since the as_list() method
defaults to converting datetime values to strings and I want to use
datetime methods on the values, I had to call it this way:

requests = db().select(db.guest_request.ALL).as_list
(datetime_to_str=False)

The rest then worked.

But I've got a nagging feeling that something is a little off about
this.  I guess it bugs me that the natural solution didn't work.
Having to deal with the distinction between the Rows class and lists-
of-dicts-of-values is a pain.

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



[web2py:28533] Re: logo

2009-08-13 Thread DenesL

A, but wasn't it said to be better suited for a wiki than for web2py
itself?.

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



[web2py:28534] Re: logo

2009-08-13 Thread Julio

My Vote is for A

Thanks,

On Aug 13, 9:29 am, Massimo Di Pierro mdipie...@cs.depaul.edu wrote:
 Two logos have been proposed for web2py. I love them both and I would  
 like your opinions. Here they are attached.

 Which one should go on the main web2py page and the book?

 Vote A for the logo with the W and B for the logo with the globe.

 Poll is open for 48 hours starting now.

 Massimo

  logo1.png
 31KViewDownload

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



[web2py:28535] Re: logo

2009-08-13 Thread Iceberg

I prefer A too. Because the W is unique enough to be recognized. On
the contrary, the globe itself can not remind people about web2py.

On Aug14, 12:29am, Massimo Di Pierro mdipie...@cs.depaul.edu wrote:
 Two logos have been proposed for web2py. I love them both and I would  
 like your opinions. Here they are attached.

 Which one should go on the main web2py page and the book?

 Vote A for the logo with the W and B for the logo with the globe.

 Poll is open for 48 hours starting now.

 Massimo

  logo1.png
 31K查看下载

  web2py_logo_300.png
 89K查看下载
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:28536] Re: session forgetMeNot

2009-08-13 Thread Michael

What are units for X?

-Michael

On Aug 7, 1:31 am, Richard richar...@gmail.com wrote:
 tryauth.settings.expiration = X

 On Aug 7, 2:35 pm, rb rbspg...@gmail.com wrote:

  Section 4.8 from the Web2py Manual states that session data remains
  until/unless the user deletes the session cookie or else the session
  expires. When does a session expire - or what causes a session to
  expire? Do I have any control over maintaining the life of a session ?
  I guess I can delete a session with session.forget but do I have a
  session.forgetMeNot ? Below I show a snippet from section 4.8 which
  talks about this.

  ===
  4.8 session

      is another instance of the Storage  class. Whatever is stored into
  session for example:

  session.myvariable=hello

  can be retrieved at a later time:

  a=session.myvariable

  as long as the code is executed within the same session by the same
  user
  (provided the user has not deleted session cookies and the session did
  not
  expire).
  ===
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:28537] Re: logo

2009-08-13 Thread Jason Brower

A


On Thu, 2009-08-13 at 11:29 -0500, Massimo Di Pierro wrote:
 Two logos have been proposed for web2py. I love them both and I would  
 like your opinions. Here they are attached.
 
 Which one should go on the main web2py page and the book?
 
 Vote A for the logo with the W and B for the logo with the globe.
 
 Poll is open for 48 hours starting now.
 
 Massimo
  


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



[web2py:28538] Re: logo

2009-08-13 Thread Yarko Tymciurak
A prefered, but would suggest a font that better matches the fluid lines of
the logo on the left, e.g. something like this...



On Thu, Aug 13, 2009 at 12:29 PM, FERNANDO VILLARROEL fvillarr...@yahoo.com
 wrote:


 I like option A

 Fernando

 --- On Thu, 8/13/09, Massimo Di Pierro mdipie...@cs.depaul.edu wrote:

  From: Massimo Di Pierro mdipie...@cs.depaul.edu
  Subject: [web2py:28520] logo
  To: web2py@googlegroups.com
  Date: Thursday, August 13, 2009, 1:29 PM
  Two logos have been proposed for
  web2py. I love them both and I would
  like your opinions. Here they are attached.
 
  Which one should go on the main web2py page and the book?
 
  Vote A for the logo with the W and B for the logo with the
  globe.
 
  Poll is open for 48 hours starting now.
 
  Massimo
  
 




 


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

attachment: logo1.1.png

[web2py:28539] Re: logo

2009-08-13 Thread Yarko Tymciurak
every time a graphic comes out, I just love playing with them, so I'll stop
at this one.



2009/8/13 Iceberg iceb...@21cn.com


 I prefer A too. Because the W is unique enough to be recognized. On
 the contrary, the globe itself can not remind people about web2py.

 On Aug14, 12:29am, Massimo Di Pierro mdipie...@cs.depaul.edu wrote:
  Two logos have been proposed for web2py. I love them both and I would
  like your opinions. Here they are attached.
 
  Which one should go on the main web2py page and the book?
 
  Vote A for the logo with the W and B for the logo with the globe.
 
  Poll is open for 48 hours starting now.
 
  Massimo
 
   logo1.png
  31K查看下载
 
   web2py_logo_300.png
  89K查看下载
 


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

attachment: logo1.2.png

[web2py:28540] Re: logo

2009-08-13 Thread Peterle

A, but with the same font-type of B.
-

On Aug 13, 6:29 pm, Massimo Di Pierro mdipie...@cs.depaul.edu wrote:
 Two logos have been proposed for web2py. I love them both and I would  
 like your opinions. Here they are attached.

 Which one should go on the main web2py page and the book?

 Vote A for the logo with the W and B for the logo with the globe.

 Poll is open for 48 hours starting now.

 Massimo

  logo1.png
 31KViewDownload

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



[web2py:28542] Re: session forgetMeNot

2009-08-13 Thread Fran

On Aug 13, 7:28 pm, Michael mafed...@gmail.com wrote:
 What are units for X?

seconds

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



[web2py:28543] Re: python.exe processes

2009-08-13 Thread Fran

On Aug 13, 5:51 pm, Greg gdwar...@gmail.com wrote:
 After running a web2py app for several minutes on my local machine, I
 noted that 13 python.exe processes have been started in Windows
 consuming about 90MB.  Is that to be expected?

I don't see this.
Do you have any cron tasks defined?

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



[web2py:28545] Re: Cron @reboot can't call script?

2009-08-13 Thread Hasanat Kazmi

sorry, It didn't work for me either.
I thought in first place that it is working but it wasnt.. problem is
still open.

On Aug 13, 12:32 pm, Hasanat Kazmi hasanatka...@gmail.com wrote:
 This isn't a big problem. I placed my script in cron folder (same as
 crontab) and added this line
 @reboot script.py
 It worked

 On Aug 12, 6:31 pm, Fran francisb...@googlemail.com wrote:

  Should cron's @reboot be able to call a script or can it just call a
  controller function?

  The docs just show a controller function for this 
  mode:http://www.web2py.com/examples/default/cron

  I'd like to be able to call an external script instead...this isn't
  working even for very simple scripts though.
  (The scripts run fine when called manually)

  I tried both syntaxes shown in the docs:
  @reboot root *applications/sahana/cron/test.py
  @reboot * * * * root *applications/sahana/cron/test.py

  Any ideas what could be wrong?

  I've tried on both XP (with Service  with Source)  Linux with Apache/
  WSGI
  - how should @reboot work in the latter environment?

  XP with source, I just get this error:
  WARNING:root:WEB2PY CRON Call returned code 1:
  Which isn't erribly helpful...

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



[web2py:28546] Re: logo

2009-08-13 Thread Mark Eichin

A actually *is a logo*; B is a picture of a globe :-)  (A pretty one,
sure, but...)

And the left half of A makes a good icon by itself, for use in other
context where it has already been associated with the name...

On Thu, Aug 13, 2009 at 12:29 PM, Massimo Di
Pierromdipie...@cs.depaul.edu wrote:
 Two logos have been proposed for web2py. I love them both and I would
 like your opinions. Here they are attached.

 Which one should go on the main web2py page and the book?

 Vote A for the logo with the W and B for the logo with the globe.

 Poll is open for 48 hours starting now.

 Massimo
 




-- 
_Mark_ eic...@thok.org eic...@gmail.com

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



[web2py:28547] Re: filter a SQLSet?

2009-08-13 Thread Michael

That worked. I thought I had tried your solution at some point but
clearly must have missed the exact syntax.

Thx!

On Aug 13, 3:59 pm, Fran francisb...@googlemail.com wrote:
 On Aug 13, 8:36 pm, Michael mafed...@gmail.com wrote:

  r2=f1(Section.schoolYear==2009).select()

 r2=f1(db.Section.schoolYear==2009).select()

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



[web2py:28549] Re: where for art thou, oh session attribute?

2009-08-13 Thread weheh

To add some levity to this important topic, rb is also, unfortunately,
confused about the meaning of wherefore art thou, oh session
attribute?, which I believe him as asking where is the session
attribute, but in reality, it means, more approriately, why and for
what purpose is the session attribute as it is?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:28550] Re: python.exe processes

2009-08-13 Thread Yarko Tymciurak
By default, numthreads is 10 - add cron, and main and that gives 12...

If you are not worried about number of requests, just running locally you
can run without cron and with just one thread (--no-cron --numthreads=1);

You can see all the command line options with

python web2py.py -h

or
web2py.exe -h

On Thu, Aug 13, 2009 at 2:44 PM, Fran francisb...@googlemail.com wrote:


 On Aug 13, 5:51 pm, Greg gdwar...@gmail.com wrote:
  After running a web2py app for several minutes on my local machine, I
  noted that 13 python.exe processes have been started in Windows
  consuming about 90MB.  Is that to be expected?

 I don't see this.
 Do you have any cron tasks defined?

 F
 


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



[web2py:28551] Re: logo

2009-08-13 Thread DenesL

+1
Yarko, try with Alba or Adira from
www.urbanfonts.com/fonts/rounded-fonts.htm
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:28552] Re: logo

2009-08-13 Thread Yarko Tymciurak
thanks for the link, DenesL -  what I liked about the museo font I used is
the outward curve at the top, which matches the icon's outturn of the
hands

On Thu, Aug 13, 2009 at 4:10 PM, DenesL denes1...@yahoo.ca wrote:


 +1
 Yarko, try with Alba or Adira from
 www.urbanfonts.com/fonts/rounded-fonts.htm
 


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



[web2py:28553] Re: logo

2009-08-13 Thread Mark Larsen

A

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



[web2py:28554] Re: logo

2009-08-13 Thread Benigno

I vote for A.

Both are nice, but I find A much more ussable, and easier to combine
and fit anywhere. Also, it allows for easier referals with a smaller
logo.

On Aug 13, 6:29 pm, Massimo Di Pierro mdipie...@cs.depaul.edu wrote:
 Two logos have been proposed for web2py. I love them both and I would  
 like your opinions. Here they are attached.

 Which one should go on the main web2py page and the book?

 Vote A for the logo with the W and B for the logo with the globe.

 Poll is open for 48 hours starting now.

 Massimo

  logo1.png
 31KViewDownload

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



[web2py:28555] Re: logo

2009-08-13 Thread Benigno

My vote already went for A, but I also do prefer lighter fonts as
Yarko suggest. However, I'd stick to keeping the name aligned with the
lower bottom of the logo, as it makes it much easier to later on
design and align things to the logo.

On Aug 13, 8:43 pm, Yarko Tymciurak yark...@gmail.com wrote:
 A prefered, but would suggest a font that better matches the fluid lines of
 the logo on the left, e.g. something like this...

 On Thu, Aug 13, 2009 at 12:29 PM, FERNANDO VILLARROEL fvillarr...@yahoo.com

  wrote:

  I like option A

  Fernando

  --- On Thu, 8/13/09, Massimo Di Pierro mdipie...@cs.depaul.edu wrote:

   From: Massimo Di Pierro mdipie...@cs.depaul.edu
   Subject: [web2py:28520] logo
   To: web2py@googlegroups.com
   Date: Thursday, August 13, 2009, 1:29 PM
   Two logos have been proposed for
   web2py. I love them both and I would
   like your opinions. Here they are attached.

   Which one should go on the main web2py page and the book?

   Vote A for the logo with the W and B for the logo with the
   globe.

   Poll is open for 48 hours starting now.

   Massimo



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



[web2py:28556] Multiple Date picker

2009-08-13 Thread Benigno

Hello,
I need to allow users to select a bunch of dates from a calendar,
not necessarilly ranges (or contiguous), also it would be ideal to let
them select something like: all mondays from a month, or horizontally
as in, a whole week).

   Anyway, I haven't seen anyway to do it with calendar.js I see that
the new version allows for some of that, but it requires buying some
libraries or something.

   Anyone that can tell me if it can be done somehow with calendar.js,
or if I should look at some other javascript library that would work
nicelly with web2py?

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



[web2py:28557] Re: Web2py.com down

2009-08-13 Thread Bottiger

Do you have any error logs to make sure it isn't a web2py problem?

On Aug 13, 12:20 am, mdipierro mdipie...@cs.depaul.edu wrote:
 I do not know what happened but I restarted and it works.

 On Aug 12, 8:29 pm, emaynard elmayn...@gmail.com wrote:

  Same here in Ohio.  Neither Domain name nor IP appear to be working.

  -Eric

  On Aug 12, 9:06 pm, Yannick ytchatch...@gmail.com wrote:

   Same here in Canada...

   On Aug 12, 8:30 pm, Richard richar...@gmail.com wrote:

I can't accesswww.web2py.comatthemomentand have experienced
intermittent downtime.

On Aug 8, 2:33 pm, b00m_chef r...@devshell.org wrote:

 Just tried to accessweb2py.com and was not up.

 Tried using a proxy (guardster), same result.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:28559] Re: python.exe processes

2009-08-13 Thread mdipierro

yes. I think, not not sure, that the wsgi web server is recycling the
threads after they are started that is why they may exist even if not
used.

On Aug 13, 3:21 pm, Yarko Tymciurak yark...@gmail.com wrote:
 By default, numthreads is 10 - add cron, and main and that gives 12...

 If you are not worried about number of requests, just running locally you
 can run without cron and with just one thread (--no-cron --numthreads=1);

 You can see all the command line options with

 python web2py.py -h

 or
 web2py.exe -h

 On Thu, Aug 13, 2009 at 2:44 PM, Fran francisb...@googlemail.com wrote:

  On Aug 13, 5:51 pm, Greg gdwar...@gmail.com wrote:
   After running a web2py app for several minutes on my local machine, I
   noted that 13 python.exe processes have been started in Windows
   consuming about 90MB.  Is that to be expected?

  I don't see this.
  Do you have any cron tasks defined?

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



[web2py:28561] Re: Which Python library does web2py require for MySQL access?

2009-08-13 Thread mdipierro

http://sourceforge.net/projects/mysql-python/



On Aug 13, 5:49 pm, Jonathan Benn jonathan.b...@gmail.com wrote:
 Hi all,

 I'm trying to get web2py running on OpenSolaris.  When I try to
 connect the DAL to MySQL, I get the following error message:

 Traceback (most recent call last):
   File /var/apache2/2.2/htdocs/gluon/restricted.py, line 178, in
 restricted
     exec ccode in environment
   File /var/apache2/2.2/htdocs/applications/welcome/models/db.py,
 line 16, in module
     db = DAL('mysql://drupal:dru...@localhost:3306/drupal_data')
   File /var/apache2/2.2/htdocs/gluon/sql.py, line 2744, in DAL
     return SQLDB(uri,pool_size=pool_size)
   File /var/apache2/2.2/htdocs/gluon/sql.py, line 731, in __init__
     self._pool_connection(lambda : MySQLdb.Connection(
   File /var/apache2/2.2/htdocs/gluon/sql.py, line 643, in
 _pool_connection
     self._connection = f()
   File /var/apache2/2.2/htdocs/gluon/sql.py, line 731, in lambda
     self._pool_connection(lambda : MySQLdb.Connection(
 NameError: global name 'MySQLdb' is not defined

 When web2py starts, it outputs the line:
     Database drivers available: SQLite3

 So I assume the problem is that web2py is missing the MySQL drivers.
 But what's the name of the required library?

 Thanks!

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



[web2py:28560] Which Python library does web2py require for MySQL access?

2009-08-13 Thread Jonathan Benn

Hi all,


I'm trying to get web2py running on OpenSolaris.  When I try to
connect the DAL to MySQL, I get the following error message:

Traceback (most recent call last):
  File /var/apache2/2.2/htdocs/gluon/restricted.py, line 178, in
restricted
exec ccode in environment
  File /var/apache2/2.2/htdocs/applications/welcome/models/db.py,
line 16, in module
db = DAL('mysql://drupal:dru...@localhost:3306/drupal_data')
  File /var/apache2/2.2/htdocs/gluon/sql.py, line 2744, in DAL
return SQLDB(uri,pool_size=pool_size)
  File /var/apache2/2.2/htdocs/gluon/sql.py, line 731, in __init__
self._pool_connection(lambda : MySQLdb.Connection(
  File /var/apache2/2.2/htdocs/gluon/sql.py, line 643, in
_pool_connection
self._connection = f()
  File /var/apache2/2.2/htdocs/gluon/sql.py, line 731, in lambda
self._pool_connection(lambda : MySQLdb.Connection(
NameError: global name 'MySQLdb' is not defined


When web2py starts, it outputs the line:
Database drivers available: SQLite3

So I assume the problem is that web2py is missing the MySQL drivers.
But what's the name of the required library?


Thanks!

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



[web2py:28558] Re: Cron on WSGI

2009-08-13 Thread mdipierro

I do not know.

On Aug 13, 11:57 am, Fran francisb...@googlemail.com wrote:
 On Aug 13, 5:18 pm, mdipierro mdipie...@cs.depaul.edu wrote:

  copy options_std.py into optons.py and add
  extcron=True

 Great - that works :)

 How do I get @reboot scripts to activate in this environment?
 - restarting Apache /or Crond makes no difference.

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



[web2py:28562] Re: where for art thou, oh session attribute?

2009-08-13 Thread rb

giggle

That could be one way of interpreting it. But I was referring to an
attribute that I had added to session - thus it was my session
attribute. But with the very next request I found the session
attribute gone. Thus I whined wherefore art thou, oh session
attribute.

Desfrenes points to an article, by Thomas Erl that begins:

The management of excessive state information can compromise the
availability of a service and undermine its scalability potential.
Services are therefore ideally designed to remain stateful only when
required.

To which I have to respond: of course. *Exessive* state information
would _never_ be a good thing. But what is excessive ? And he says
that services should remain stateful only when required...

Who is this guy? The Minister of the Obvious? giggle

The power and beauty of pushing the business logic out to the client
is that it leaves mostly stateless db access on the svr. Being
stateless makes for easier (dynamic) configuration of svr resources,
better scaling, and it makes maintaining the codebase simpler.

However, there is a cost to pushing the business logic out to the
client. Firstly it means that the client has to have more horsepower.
If the client is a pc then it's probably not a show stopper - but it
also means that deploying your app out to smaller netbooks, or
smartphones, is gonna have problems.

Albert Einstein said it was best to makes things as simple as possible
- but no simpler. Pushing the business logic out to the client can
lead to great problems down the road when query access (or some other
kind of access) is needed to be granted to other devices or other web
services that are acting as a client of our service. The point is that
access to the web app must come through the business logic, and this
constrains either the svr or the choice of clients.

I don't think there is any one answer for all situations, but I am
persuaded that the best choice is the one that moves data around the
least, and centralizes the activity that defines the app or service,
and allows for the leanest client. Of course, these are competing
goals, and my bias would be to prefer a #3 solution, as well, unless
specifics overruled.

There have been countless flamewars on this subject... we need another one 
here ;-)

There is nothing new under the sun. (And gee does it have to erupt
into a flamewar?)

Further to other points made on this thread, I ask the question: what
about support for communication (rpc, or other) living processes? No
one would suggest that the web2py web server start adding statefulness
in order to provide such to specific applications, but why can't it be
made to support shuttling web traffic between distant clients and
local (stateful) processes?



On Aug 13, 1:14 pm, weheh richard_gor...@verizon.net wrote:
 To add some levity to this important topic, rb is also, unfortunately,
 confused about the meaning of wherefore art thou, oh session
 attribute?, which I believe him as asking where is the session
 attribute, but in reality, it means, more approriately, why and for
 what purpose is the session attribute as it is?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:28563] Re: logo

2009-08-13 Thread Alexandre Andrade
A,

2009/8/13 Massimo Di Pierro mdipie...@cs.depaul.edu

 Two logos have been proposed for web2py. I love them both and I would
 like your opinions. Here they are attached.

 Which one should go on the main web2py page and the book?

 Vote A for the logo with the W and B for the logo with the globe.

 Poll is open for 48 hours starting now.

 Massimo




-- 
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 web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:28564] Re: logo

2009-08-13 Thread Richard

A - globes are too common


On Aug 14, 2:29 am, Massimo Di Pierro mdipie...@cs.depaul.edu wrote:
 Two logos have been proposed for web2py. I love them both and I would  
 like your opinions. Here they are attached.

 Which one should go on the main web2py page and the book?

 Vote A for the logo with the W and B for the logo with the globe.

 Poll is open for 48 hours starting now.

 Massimo

  logo1.png
 31KViewDownload

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



[web2py:28565] Re: logo

2009-08-13 Thread Bottiger

Choice A

I think it would be best if it was changed to a more Sans-Serif font
like B.

On Aug 13, 9:29 am, Massimo Di Pierro mdipie...@cs.depaul.edu wrote:
 Two logos have been proposed for web2py. I love them both and I would  
 like your opinions. Here they are attached.

 Which one should go on the main web2py page and the book?

 Vote A for the logo with the W and B for the logo with the globe.

 Poll is open for 48 hours starting now.

 Massimo

  logo1.png
 31KViewDownload

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



[web2py:28566] Re: logo

2009-08-13 Thread __future__

A ... and I like the font... if I see one more thing with a font like
B, I am going to gouge my eyes out with a rusty fork


On Aug 13, 6:58 pm, Bottiger bottig...@gmail.com wrote:
 Choice A

 I think it would be best if it was changed to a more Sans-Serif font
 like B.

 On Aug 13, 9:29 am, Massimo Di Pierro mdipie...@cs.depaul.edu wrote:

  Two logos have been proposed for web2py. I love them both and I would  
  like your opinions. Here they are attached.

  Which one should go on the main web2py page and the book?

  Vote A for the logo with the W and B for the logo with the globe.

  Poll is open for 48 hours starting now.

  Massimo

   logo1.png
  31KViewDownload

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



[web2py:28567] Re: logo

2009-08-13 Thread Bottiger

Sans-serif is cleaner and professional looking, that's why you see so
much of it.

On Aug 13, 6:28 pm, __future__ wrigh...@gmail.com wrote:
 A ... and I like the font... if I see one more thing with a font like
 B, I am going to gouge my eyes out with a rusty fork

 On Aug 13, 6:58 pm, Bottiger bottig...@gmail.com wrote:

  Choice A

  I think it would be best if it was changed to a more Sans-Serif font
  like B.

  On Aug 13, 9:29 am, Massimo Di Pierro mdipie...@cs.depaul.edu wrote:

   Two logos have been proposed for web2py. I love them both and I would  
   like your opinions. Here they are attached.

   Which one should go on the main web2py page and the book?

   Vote A for the logo with the W and B for the logo with the globe.

   Poll is open for 48 hours starting now.

   Massimo

    logo1.png
   31KViewDownload

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



[web2py:28568] Re: logo

2009-08-13 Thread Álvaro Justen [Turicas]

On Thu, Aug 13, 2009 at 13:31, mdipierromdipie...@cs.depaul.edu wrote:

 P.S.

 Logo A was designed by Peter Kirchner (Yound Designers)
 Logo B was designed by Mateusz Banach

 Please vote only once but feel free to add comments.

Good work, guys!


alv...@estavel:~$ python -c 'import this' | grep Simple
Simple is better than complex.

So my vote is for A. :-)

 Massimo

 On Aug 13, 11:29 am, Massimo Di Pierro mdipie...@cs.depaul.edu
 wrote:
 Two logos have been proposed for web2py. I love them both and I would
 like your opinions. Here they are attached.

 Which one should go on the main web2py page and the book?

 Vote A for the logo with the W and B for the logo with the globe.

 Poll is open for 48 hours starting now.

 Massimo

  logo1.png
 31KViewDownload

  web2py_logo_300.png
 89KViewDownload
 




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

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



[web2py:28569] Re: logo

2009-08-13 Thread Franklin Naval
A

-Franklin

On Fri, Aug 14, 2009 at 7:58 AM, Bottiger bottig...@gmail.com wrote:


 Choice A

 I think it would be best if it was changed to a more Sans-Serif font
 like B.

 On Aug 13, 9:29 am, Massimo Di Pierro mdipie...@cs.depaul.edu wrote:
  Two logos have been proposed for web2py. I love them both and I would
  like your opinions. Here they are attached.
 
  Which one should go on the main web2py page and the book?
 
  Vote A for the logo with the W and B for the logo with the globe.
 
  Poll is open for 48 hours starting now.
 
  Massimo
 
   logo1.png
  31KViewDownload
 
   web2py_logo_300.png
  89KViewDownload
 


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



[web2py:28570] Re: logo

2009-08-13 Thread Renato Shibutani
A,
On Thu, Aug 13, 2009 at 10:35 PM, Bottiger bottig...@gmail.com wrote:


 Sans-serif is cleaner and professional looking, that's why you see so
 much of it.

 On Aug 13, 6:28 pm, __future__ wrigh...@gmail.com wrote:
  A ... and I like the font... if I see one more thing with a font like
  B, I am going to gouge my eyes out with a rusty fork
 
  On Aug 13, 6:58 pm, Bottiger bottig...@gmail.com wrote:
 
   Choice A
 
   I think it would be best if it was changed to a more Sans-Serif font
   like B.
 
   On Aug 13, 9:29 am, Massimo Di Pierro mdipie...@cs.depaul.edu wrote:
 
Two logos have been proposed for web2py. I love them both and I would

like your opinions. Here they are attached.
 
Which one should go on the main web2py page and the book?
 
Vote A for the logo with the W and B for the logo with the globe.
 
Poll is open for 48 hours starting now.
 
Massimo
 
 logo1.png
31KViewDownload
 
 web2py_logo_300.png
89KViewDownload
 


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



[web2py:28571] Re: logo

2009-08-13 Thread weheh

In the absence of any other options, I would vote for A. Kudos to both
designers for their very professional looking designs. I mostly vote A
because of the aspect ratio and footprint.

That said, I think it's a big missed opportunity if we don't have a
logo that references the python logo in some manner. The key
capability that draws us all to web2py is python. If web2py were based
on Ruby, none of us would be here. Therefore, having the python logo
or some serpentine element somehow incorporated into the web2py logo
would make a lot of sense to me since it would create instant brand
recognition and association with the much larger python community.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:28572] Re: logo

2009-08-13 Thread Yarko Tymciurak
the python logo is a registered trademark, and copyrighted

On Thu, Aug 13, 2009 at 11:37 PM, weheh richard_gor...@verizon.net wrote:


 In the absence of any other options, I would vote for A. Kudos to both
 designers for their very professional looking designs. I mostly vote A
 because of the aspect ratio and footprint.

 That said, I think it's a big missed opportunity if we don't have a
 logo that references the python logo in some manner. The key
 capability that draws us all to web2py is python. If web2py were based
 on Ruby, none of us would be here. Therefore, having the python logo
 or some serpentine element somehow incorporated into the web2py logo
 would make a lot of sense to me since it would create instant brand
 recognition and association with the much larger python community.
 


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



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

2009-08-13 Thread weheh

I'm using SQLFORM.factory as follows:

  form = SQLFORM.factory(Field('filename','upload'))

How/where is the name of the uploaded file stored?

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



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

2009-08-13 Thread weheh

I want to open the uploaded file, parse it, and then delete it. But
I'm having trouble figuring out which variable has the name of the
upload file. I know it's probably something really stupidly simpe that
I should know, but I can't find it easily in the doc.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:28575] Re: logo

2009-08-13 Thread Yarko Tymciurak
On Thu, Aug 13, 2009 at 10:47 PM, Álvaro Justen [Turicas] 
alvarojus...@gmail.com wrote:




 alv...@estavel:~$ python -c 'import this' | grep Simple
 Simple is better than complex.

 So my vote is for A. :-)


Alvaro!  - I'd forgotten about this easter egg - beautiful way to vote! (and
thanks for the reminder! ;-)

- Yarko

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



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

2009-08-13 Thread Yarko Tymciurak
try form.vars.filename.new_filename

the pattern is:

form.vars.upload fieldname.new_filename

On Thu, Aug 13, 2009 at 11:58 PM, weheh richard_gor...@verizon.net wrote:


 I want to open the uploaded file, parse it, and then delete it. But
 I'm having trouble figuring out which variable has the name of the
 upload file. I know it's probably something really stupidly simpe that
 I should know, but I can't find it easily in the doc.
 


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



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

2009-08-13 Thread weheh

No. It chokes:

File C:/web2py/applications/FlexTrak/controllers/import.py, line 9,
in raw
return dict(form=form,filename=form.vars.filename.new_filename)
AttributeError: 'NoneType' object has no attribute 'new_filename'
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



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

2009-08-13 Thread Richard

hi,

you can use request.vars.media.filename to access the original name of
the file like this:

form = FORM('Upload file',
TABLE(
TR(INPUT(_name='media', _type='file', requires=IS_NOT_EMPTY
())),
TR(INPUT(_type='submit', _value='Upload')),
)
)

if form.accepts(request.vars, session):
filename = ...
size = int(request.env.content_length)
gluon.fileutils.copystream(request.vars.media.file, open
(filename, 'wb'), size) # stream file to reduce memory usage of server
db.media.insert(current_filename=filename,
original_filename=request.vars.media.filename, size=size)


That is what I currently use - please tell me if there is a better
way.
Richard



On Aug 14, 2:58 pm, weheh richard_gor...@verizon.net wrote:
 I want to open the uploaded file, parse it, and then delete it. But
 I'm having trouble figuring out which variable has the name of the
 upload file. I know it's probably something really stupidly simpe that
 I should know, but I can't find it easily in the doc.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:28579] Re: current link indication with MENU() helper

2009-08-13 Thread Richard

I wasn't suggesting filing it as a bug, but as a feature request.
Unfortunately both bugs and feature requests are filed in the same
place so it is confusing.


On Aug 13, 5:26 pm, mdipierro mdipie...@cs.depaul.edu wrote:
 I do not think this should be considered a web2py bug. You are
 supposed to override layout.html and assign a different css class when
 a menu link is active. I did not put it in layout.html and menu.py to
 keep is leaner and easier to read.

 On Aug 12, 9:25 pm, Richard richar...@gmail.com wrote:

  Maybe add it to the issue 
  tracker:http://code.google.com/p/web2py/issues/list

  On Aug 13, 11:57 am, ionel ionelanton...@gmail.com wrote:

   Massimo,

   When will we have this feature added into menu helper? I really need
   this...

   Thanks.

   On Jun 17, 12:13 pm, mdipierro mdipie...@cs.depaul.edu wrote:

Sorry, this needs to be added to the menu helper. Not there yet

Massimo

On Jun 17, 10:29 am, blackthorne francisco@gmail.com wrote:

 since the MENU() helper has been added to web2py, I haven't make it to
 understand how does it indicate if the link is the current link which
 is supposed to do as described in the web2py slides.

 I made something like:
 response.menu = [
     [T('Intro'),
      request.function=='index',URL(r=request,f='index')],
       [T('Casas'),
        request.function=='houses',URL(r=request,f='houses')],
       [T('Local'),
        request.function=='place',URL(r=request,f='place')],
       [T('Mapa'),
        request.function=='map',URL(r=request,f='map')],
       [T('Tarifas'),
        request.function=='precos',URL(r=request,f='tarifas')]]

 , all those functions, actually exist but when I access them nothing
 changes on the generated li and a items that I can use for CSS.
 I was expecting to see something like an ID or CLASS setting for the
 active link so that I could style it has I want but nothing. I just
 get:
         ul class=web2py-menu web2py-menu-horizontal
 lia href=/new/default/indexIntro/a/li
 lia href=/new/default/housesCasas/a/li
 lia href=/new/default/placeLocal/a/li
 lia href=/new/default/mapMapa/a/li
 lia href=/new/default/tarifasTarifas/a/li
 /ul

 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 web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:28580] Where to specify logout time

2009-08-13 Thread weheh

I know I saw this written somewhere, maybe in some doc, maybe in some
sample code, but I can't find it again for the life of me. Where/how
do I specify the amount of time before auth logout occurs? MDP, I
think this should probably be mentioned in the new doc, but I can't
find it anywhere in CH 8 or otherwise.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:28581] Re: logo

2009-08-13 Thread Richard

 the python logo is a registered trademark, and copyrighted
if the python snake was included somehow there wouldn't be a legal
problem. Scipy does this: http://www.scipy.org/images/scipylogo.gif


On Aug 14, 2:41 pm, Yarko Tymciurak yark...@gmail.com wrote:
 the python logo is a registered trademark, and copyrighted

 On Thu, Aug 13, 2009 at 11:37 PM, weheh richard_gor...@verizon.net wrote:

  In the absence of any other options, I would vote for A. Kudos to both
  designers for their very professional looking designs. I mostly vote A
  because of the aspect ratio and footprint.

  That said, I think it's a big missed opportunity if we don't have a
  logo that references the python logo in some manner. The key
  capability that draws us all to web2py is python. If web2py were based
  on Ruby, none of us would be here. Therefore, having the python logo
  or some serpentine element somehow incorporated into the web2py logo
  would make a lot of sense to me since it would create instant brand
  recognition and association with the much larger python community.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



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

2009-08-13 Thread Yarko Tymciurak
I would think you'd wan to check this after form accepts (there is no
new_filename before an upload, after all)


On Fri, Aug 14, 2009 at 12:14 AM, weheh richard_gor...@verizon.net wrote:


 No. It chokes:

 File C:/web2py/applications/FlexTrak/controllers/import.py, line 9,
 in raw
return dict(form=form,filename=form.vars.filename.new_filename)
 AttributeError: 'NoneType' object has no attribute 'new_filename'
 


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



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

2009-08-13 Thread weheh

I couldn't get your example to work either, Richard. I'm still working
on it.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



  1   2   >