[web2py] Re: why do we populate the auth_user table?

2010-10-26 Thread mdipierro
When you use the wizard, on step 6, it asks if you want to populate
the table with dummy data or not.

On Oct 26, 12:53 am, mart msenecal...@gmail.com wrote:
 Hi,

 I may have missed this, so apologies if a repeat...  but would like to
 know. Why do we have this happen when using the wizard? There must be
 a good reason, just cant figure it out...

 from gluon.contrib.populate import populate
 if not db(db.auth_user).count():
      populate(db.auth_user,100)

 Thanks,

 Mart :)


Re: [web2py] Re: Request for a logo - PluginCentral

2010-10-26 Thread Bruno Rocha
*A ship on the beach is a lighthouse to the sea.*


2010/10/26 Jason Brower encomp...@gmail.com

  I like the white one!  Very nice! Nothing wrong with the ship.  Does it
 mean we are a flasg ship product with new ideas?! [image: :D]


 On Tue, 2010-10-26 at 00:46 +0200, Branko Vukelic wrote:

 It says no more uploads, so I'll attach the first proposal here. In
 the following days, I will probably do more.



 On Mon, Oct 25, 2010 at 11:32 PM, Branko Vukelic bg.bra...@gmail.com wrote:
  On Mon, Oct 25, 2010 at 11:17 PM, Bruno Rocha rochacbr...@gmail.com wrote:
  Branko, I dont know if people are thinking about a Second round on logo
  votation http://www.blouweb.com/logovote/default/index?order=id
  , but even without tha votation, I think it is a good idea for you to
  propose a new logo.
  - Logo should have no snakes
  - Logo should not be childish/fun
  - Better more letters than images
  - Should blend with the website color scheme
  - Should be good on every background or printing
  If you propose a nice logo, I think it can be considered, even if not for
  mainsite, but for ther related projects or welcome app.
 
 
  Oh sure. I will do that. Thanks. ;)
 
  --
  Branko Vukelić
 
  bg.bra...@gmail.com
  stu...@brankovukelic.com
 
  Check out my blog: http://www.brankovukelic.com/
  Check out my portfolio: http://www.flickr.com/photos/foxbunny/
  Registered Linux user #438078 (http://counter.li.org/)
  I hang out on identi.ca: http://identi.ca/foxbunny
 
  Gimp Brushmakers Guild
  http://bit.ly/gbg-group
 








-- 

http://rochacbruno.com.br
face-smile-big.png

[web2py] Re: web2py wizard (alpha) is here

2010-10-26 Thread dederocks
Hello,

Experimenting with the new wizard to accelerate my developement, I
encountered an error when defining a recursive field.

With table location

and fields
id_location location
description
barcode

I get:
  File C:\Users\Andre\Documents\web2py\gluon\sql.py, line 1528, in
__allocate
raise RuntimeError, Using a recursive select but encountered a
broken reference
RuntimeError: Using a recursive select but encountered a broken
reference

Sorry I can't offer a patch.

BR, Andre


Re: [web2py] Re: Request for a logo - PluginCentral

2010-10-26 Thread Branko Vukelic
On Tue, Oct 26, 2010 at 8:31 AM, Bruno Rocha rochacbr...@gmail.com wrote:

 A ship on the beach is a lighthouse to the sea.

I'm feeling stupid... I don't understand that sentence. :P

--
Branko Vukelić

bg.bra...@gmail.com
stu...@brankovukelic.com

Check out my blog: http://www.brankovukelic.com/
Check out my portfolio: http://www.flickr.com/photos/foxbunny/
Registered Linux user #438078 (http://counter.li.org/)
I hang out on identi.ca: http://identi.ca/foxbunny

Gimp Brushmakers Guild
http://bit.ly/gbg-group


Re: [web2py] Unable to open web2py using ip address

2010-10-26 Thread Branko Vukelic
Is there another computer in your network that you can try, to see if
it's just the mobile device, or all computers on the same network?

On Tue, Oct 26, 2010 at 5:57 AM, Ramjee Ganti gant...@gmail.com wrote:
 I tried it but does not work.
 What I want to do is simple. I have to open the webapplication from my
 mobile browser.
 Thanks,
 rAm

 i Think, i Wait, i Fast -- Siddhartha
 http://sodidi.ramjeeganti.com


 On Mon, Oct 25, 2010 at 8:05 PM, Branko Vukelic bg.bra...@gmail.com wrote:

 Have you tried serving off 0.0.0.0 instead of 127.0.0.1? 127.0.0.1 is
 only visible locally.

 On Mon, Oct 25, 2010 at 3:32 PM, Ramjee Ganti gant...@gmail.com wrote:
  Hi,
  The problem is
  Works: http://127.0.0.1:8000//welcome/default/index
  Does not Work on both mobile and Dev
  machine: http://ipaddress:port//welcome/default/index
  Works on Dev machine: http://machinename:port//welcome/default/index
  Does not work on mobile in the same
  network: http://machinename:port//welcome/default/index
  I am trying to develop a mobile application using web2py. Now how do I
  proceed?
  rAm
 
  i Think, i Wait, i Fast -- Siddhartha
  http://sodidi.ramjeeganti.com
 



 --
 Branko Vukelić

 bg.bra...@gmail.com
 stu...@brankovukelic.com

 Check out my blog: http://www.brankovukelic.com/
 Check out my portfolio: http://www.flickr.com/photos/foxbunny/
 Registered Linux user #438078 (http://counter.li.org/)
 I hang out on identi.ca: http://identi.ca/foxbunny

 Gimp Brushmakers Guild
 http://bit.ly/gbg-group





-- 
Branko Vukelić

bg.bra...@gmail.com
stu...@brankovukelic.com

Check out my blog: http://www.brankovukelic.com/
Check out my portfolio: http://www.flickr.com/photos/foxbunny/
Registered Linux user #438078 (http://counter.li.org/)
I hang out on identi.ca: http://identi.ca/foxbunny

Gimp Brushmakers Guild
http://bit.ly/gbg-group


Re: [web2py] hey I like this idea

2010-10-26 Thread Branko Vukelic
On Tue, Oct 26, 2010 at 6:24 AM, mdipierro mdipie...@cs.depaul.edu wrote:
 http://miksovsky.blogs.com/flowstate/2010/10/squeeze-wide-page-content-into-narrow-windows-let-the-content-overlap-the-left-navigation-pane.html

One more method of dealing with left nav missed:

* Make left navigation pop-up and hidden by default with an obvious cue.

This doesn't suffer from the problems collapsible nav suffers from,
because collapsing is done automatically. It does suffer from user's
inability to see the options right away. You can circumvent the latter
by allowing a few seconds before the nav is auto-collapsed (say 3~5
seconds, unscientifically speaking).


-- 
Branko Vukelić

bg.bra...@gmail.com
stu...@brankovukelic.com

Check out my blog: http://www.brankovukelic.com/
Check out my portfolio: http://www.flickr.com/photos/foxbunny/
Registered Linux user #438078 (http://counter.li.org/)
I hang out on identi.ca: http://identi.ca/foxbunny

Gimp Brushmakers Guild
http://bit.ly/gbg-group


[web2py] Re: Suggestion to include a tip in the components documentation of web2py book

2010-10-26 Thread cjrh
On Oct 25, 9:24 pm, Luther Goh Lu Feng elf...@yahoo.com wrote:
 What happens here is that the component that is acquired by LOAD upon form
 submission is still the old set of rows. I spent quite some time figuring it 
 out
 unfortunately. Perhaps this point could be highlighted in the book.

I am willing to improve the documentation in this example, but could
you please explain this with more detail?


[web2py] Re: celery queue?

2010-10-26 Thread cjrh
On Oct 26, 4:06 am, Jonathan Z. jzem...@gmail.com wrote:
 Has anyone tried integrating celery with web2py?  

Celery looks interesting.  If you take a shot at integration, I would
be interested to hear about your experiences on doing that.


[web2py] Re: auth issue in Firefox 3.6.10+ on Mac

2010-10-26 Thread Adi
What information can I dump from web2py to debug this problem?

-- Aditya

On Oct 26, 10:16 am, Aditya Sahay aditya.sa...@gmail.com wrote:
 No. This is seconds after logging in.

 On Tue, Oct 26, 2010 at 12:28 AM, mdipierro mdipie...@cs.depaul.edu wrote:
  Could it be their session expired?

  On Oct 25, 1:05 pm, Adi aditya.sa...@gmail.com wrote:
   Hi all,

   I've got some users facing this peculiar problem in Radbox.

   Faced in: Mac OS X 10.6.4, Firefox 3.6.10 and newer

   Even when they're logged into Radbox, there's this small piece of code
   which returns -1.

   
   if auth.user:
      return auth.user.id
   else:
      return -1
   -

   The worst part is I'm not able to reproduce the problem at my own end,
   in the same OS and browser version where users are facing this issue.

   Now auth.user is None when it is expected to be something. The
   question is, what information can I log or dump to debug this problem?
   For all we know it could possibly be a Firefox bug, but not being able
   to debug it is really frustrating.


[web2py] getting id value

2010-10-26 Thread shukalo83
Hello!

I'm new to web2py and need something like this. I'm opened  to all
kind of suggestions

db.define_table('contacts',
Field('first'),
Field('last'),
 
Field('jmbg',unique=True,default=db.contacts.id),   #this doesn't work
but, if nothing is entered here I need it to be id  value
 
Field('jib',unique=True,default=db.contacts ))


[web2py] WebSockets with web2py?

2010-10-26 Thread Ruiwen Chua
Hi,

Does anyone know of a way to use WebSockets with web2py?


[web2py] Re: WebSockets with web2py?

2010-10-26 Thread blackthorne
Just add your (javascript?) code for that as any other in the View
side.

Regards

On Oct 26, 11:28 am, Ruiwen Chua rwc...@gmail.com wrote:
 Hi,

 Does anyone know of a way to use WebSockets with web2py?


[web2py] Re: new ticket reporting system

2010-10-26 Thread selecta
:) like it but why not also display the latest datetime in the view
and allow to change the sorting, I never got to that but i think this
would be a good idea
sometimes you want to see the latest bug, sometimes the most frequent
one
the details thing is almost perfect, i just do not like that it jumps
on opening, fixed width for the table columns would be nice

anyways I think it is s cool that you guy act so fast on new ideas

On Oct 26, 4:03 am, mdipierro mdipie...@cs.depaul.edu wrote:
 Thanks to Thadeus and Selecta we have a new ticket reporting system in
 trunk.

 Tickets are listed grouped by error traceback. So if there are
 multiple tickets caused by the same problem, you see only one of them
 with a number indicated how many occurrences. This allows you to
 easily identify recurrent problems.

 Please check it out.

 Massimo


[web2py] Re: WebSockets with web2py?

2010-10-26 Thread Ruiwen Chua
Thanks, but is there server-side support for WebSockets in Web2py?

From what I understand, the server needs to be able to understand
upgrading the normal HTTP connection into a WebSocket connection.

On Oct 26, 6:56 pm, blackthorne francisco@gmail.com wrote:
 Just add your (javascript?) code for that as any other in the View
 side.

 Regards

 On Oct 26, 11:28 am, Ruiwen Chua rwc...@gmail.com wrote:







  Hi,

  Does anyone know of a way to use WebSockets with web2py?


Re: [web2py] Re: Request for a logo - PluginCentral

2010-10-26 Thread rochacbruno
Nice, this the actual logo idea in lower case. Excelent.

I like more the one with a ship

Enviado via iPhone

Em 26/10/2010, às 08:49, Branko Vukelic bg.bra...@gmail.com escreveu:

 On Tue, Oct 26, 2010 at 2:00 AM, mdipierro mdipie...@cs.depaul.edu wrote:
 I have no strong opinion one way or another.
 
 How about this one?
 
 
 
 -- 
 Branko Vukelić
 
 bg.bra...@gmail.com
 stu...@brankovukelic.com
 
 Check out my blog: http://www.brankovukelic.com/
 Check out my portfolio: http://www.flickr.com/photos/foxbunny/
 Registered Linux user #438078 (http://counter.li.org/)
 I hang out on identi.ca: http://identi.ca/foxbunny
 
 Gimp Brushmakers Guild
 http://bit.ly/gbg-group
 web2py_lettering.png


[web2py] Re: new ticket reporting system

2010-10-26 Thread blackthorne
idea for next step: Publishing errors

It would be nice to receive some reports or error events by other
protocols by other channels chosen by the administrator such as RSS,
twitter, mail, sms, XML-RPC...

Thank you, good one!

On Oct 26, 12:12 pm, selecta gr...@delarue-berlin.de wrote:
 :) like it but why not also display the latest datetime in the view
 and allow to change the sorting, I never got to that but i think this
 would be a good idea
 sometimes you want to see the latest bug, sometimes the most frequent
 one
 the details thing is almost perfect, i just do not like that it jumps
 on opening, fixed width for the table columns would be nice

 anyways I think it is s cool that you guy act so fast on new ideas

 On Oct 26, 4:03 am, mdipierro mdipie...@cs.depaul.edu wrote:



  Thanks to Thadeus and Selecta we have a new ticket reporting system in
  trunk.

  Tickets are listed grouped by error traceback. So if there are
  multiple tickets caused by the same problem, you see only one of them
  with a number indicated how many occurrences. This allows you to
  easily identify recurrent problems.

  Please check it out.

  Massimo


[web2py] Re: my participation in PyCon Brasil talking about web2py

2010-10-26 Thread mdipierro
:-)



On Oct 26, 1:37 am, Bruno Rocha rochacbr...@gmail.com wrote:
 Google Translated to English:

 http://translate.google.com.br/translate?js=nprev=_thl=pt-BRie=UTF...

 Original in 
 portuguese:http://rochacbruno.com.br/blog/2010/10/curitiba-e-minha-participacao-...


[web2py] Re: web2py wizard (alpha) is here

2010-10-26 Thread mdipierro
You cannot do recursive references with wizard yet.

On Oct 26, 1:52 am, dederocks dediro...@gmail.com wrote:
 Hello,

 Experimenting with the new wizard to accelerate my developement, I
 encountered an error when defining a recursive field.

 With table location

 and fields
 id_location location
 description
 barcode

 I get:
   File C:\Users\Andre\Documents\web2py\gluon\sql.py, line 1528, in
 __allocate
     raise RuntimeError, Using a recursive select but encountered a
 broken reference
 RuntimeError: Using a recursive select but encountered a broken
 reference

 Sorry I can't offer a patch.

 BR, Andre


[web2py] Re: getting id value

2010-10-26 Thread mdipierro
This cannot be:

default=db.contacts.id

- syntactically because the right hand side has to be a field value
not a field object.

- logically because you need the id value to fill the field before the
record is created but an id is assigned donly after the record is
created

- this causes duplication of information (attempts to put id is in two
places) and it is to be avoided.

Perhaps if you explain us why you want to do this, we can suggest a
better way.

Massimo


On Oct 26, 5:20 am, shukalo83 shukal...@gmail.com wrote:
 Hello!

 I'm new to web2py and need something like this. I'm opened  to all
 kind of suggestions

 db.define_table('contacts',
                             Field('first'),
                             Field('last'),

 Field('jmbg',unique=True,default=db.contacts.id),   #this doesn't work
 but, if nothing is entered here I need it to be id      value

 Field('jib',unique=True,default=db.contacts ))


[web2py] Re: getting id value

2010-10-26 Thread shukalo83
Thank You Massimo on your quick responce.

Actually, I don't need an id value. I need some kind of unique,
autoincremented integer. I though I could copy an id value but..., you
provided enough resons that this cannot be done.

Actually, fields 'jmbg' and 'jib' are xor combination, so to call it.
(If one is present, other is not), so if 'jib' is entered, 'jmbg'
should not be. In the same time both should be unique and thus could
not left empty. I thought some kind of incremented integer would do
the job.






On Oct 26, 3:08 pm, mdipierro mdipie...@cs.depaul.edu wrote:
 This cannot be:

 default=db.contacts.id

 - syntactically because the right hand side has to be a field value
 not a field object.

 - logically because you need the id value to fill the field before the
 record is created but an id is assigned donly after the record is
 created

 - this causes duplication of information (attempts to put id is in two
 places) and it is to be avoided.

 Perhaps if you explain us why you want to do this, we can suggest a
 better way.

 Massimo

 On Oct 26, 5:20 am, shukalo83 shukal...@gmail.com wrote:







  Hello!

  I'm new to web2py and need something like this. I'm opened  to all
  kind of suggestions

  db.define_table('contacts',
                              Field('first'),
                              Field('last'),

  Field('jmbg',unique=True,default=db.contacts.id),   #this doesn't work
  but, if nothing is entered here I need it to be id      value

  Field('jib',unique=True,default=db.contacts ))


[web2py] Re: Request for a logo - PluginCentral

2010-10-26 Thread Anthony
What do people think about including Enterprise Web Framework tag
line in the logo? I've noticed that in quite a number of public
discussions of web2py (e.g., on Reddit), the term Enterprise is both
misunderstood and mocked. That doesn't mean we should stop using it,
but I wonder if we want to emphasize it by including it right in the
logo (maybe at least consider a logo that could work with our without
the tag line included).

Anyway, this all-text logo by Branko is very nice. I like it better
than the ship logo. For me, although the ship logo is aesthetically
appealing, both the ship and the font give it sort of an old-fashioned
feeling (i.e., rather than modern and cutting-edge). Also, I don't
quite get the meaning of the ship -- how does it relate to the web2py
brand identity?

Anthony


On Oct 26, 6:49 am, Branko Vukelic bg.bra...@gmail.com wrote:
 On Tue, Oct 26, 2010 at 2:00 AM, mdipierro mdipie...@cs.depaul.edu wrote:
  I have no strong opinion one way or another.

 How about this one?

 --
 Branko Vukelić

 bg.bra...@gmail.com
 stu...@brankovukelic.com

 Check out my blog:http://www.brankovukelic.com/
 Check out my portfolio:http://www.flickr.com/photos/foxbunny/
 Registered Linux user #438078 (http://counter.li.org/)
 I hang out on identi.ca:http://identi.ca/foxbunny

 Gimp Brushmakers Guildhttp://bit.ly/gbg-group

  web2py_lettering.png
 116KViewDownload


[web2py] Re: getting id value

2010-10-26 Thread mdipierro
That requires creating a sequence. How about a uuid?

import uuid

Field(...,compute=str(uuid.uuid4()))

On Oct 26, 8:27 am, shukalo83 shukal...@gmail.com wrote:
 Thank You Massimo on your quick responce.

 Actually, I don't need an id value. I need some kind of unique,
 autoincremented integer. I though I could copy an id value but..., you
 provided enough resons that this cannot be done.

 Actually, fields 'jmbg' and 'jib' are xor combination, so to call it.
 (If one is present, other is not), so if 'jib' is entered, 'jmbg'
 should not be. In the same time both should be unique and thus could
 not left empty. I thought some kind of incremented integer would do
 the job.

 On Oct 26, 3:08 pm, mdipierro mdipie...@cs.depaul.edu wrote:

  This cannot be:

  default=db.contacts.id

  - syntactically because the right hand side has to be a field value
  not a field object.

  - logically because you need the id value to fill the field before the
  record is created but an id is assigned donly after the record is
  created

  - this causes duplication of information (attempts to put id is in two
  places) and it is to be avoided.

  Perhaps if you explain us why you want to do this, we can suggest a
  better way.

  Massimo

  On Oct 26, 5:20 am, shukalo83 shukal...@gmail.com wrote:

   Hello!

   I'm new to web2py and need something like this. I'm opened  to all
   kind of suggestions

   db.define_table('contacts',
                               Field('first'),
                               Field('last'),

   Field('jmbg',unique=True,default=db.contacts.id),   #this doesn't work
   but, if nothing is entered here I need it to be id      value

   Field('jib',unique=True,default=db.contacts ))




[web2py] Re: forms2pdf: new free web2py appliance

2010-10-26 Thread newnomad
requires pdflatex also

does it work on GAE ?

On Oct 25, 9:21 pm, mdipierro mdipie...@cs.depaul.edu wrote:
 forgot to say... requires trunk.

 On Oct 25, 1:55 pm, mdipierro mdipie...@cs.depaul.edu wrote:



 http://web2py.com/appliances/default/show/69


[web2py] Re: Request for a logo - PluginCentral

2010-10-26 Thread mdipierro
I agree. Better not put it in the logo. Mostly because of the
different font size, it will create problems when scaled. I like this
new proposed logo.

On Oct 26, 8:56 am, Anthony abasta...@gmail.com wrote:
 What do people think about including Enterprise Web Framework tag
 line in the logo? I've noticed that in quite a number of public
 discussions of web2py (e.g., on Reddit), the term Enterprise is both
 misunderstood and mocked. That doesn't mean we should stop using it,
 but I wonder if we want to emphasize it by including it right in the
 logo (maybe at least consider a logo that could work with our without
 the tag line included).

 Anyway, this all-text logo by Branko is very nice. I like it better
 than the ship logo. For me, although the ship logo is aesthetically
 appealing, both the ship and the font give it sort of an old-fashioned
 feeling (i.e., rather than modern and cutting-edge). Also, I don't
 quite get the meaning of the ship -- how does it relate to the web2py
 brand identity?

 Anthony

 On Oct 26, 6:49 am, Branko Vukelic bg.bra...@gmail.com wrote:

  On Tue, Oct 26, 2010 at 2:00 AM, mdipierro mdipie...@cs.depaul.edu wrote:
   I have no strong opinion one way or another.

  How about this one?

  --
  Branko Vukelić

  bg.bra...@gmail.com
  stu...@brankovukelic.com

  Check out my blog:http://www.brankovukelic.com/
  Check out my portfolio:http://www.flickr.com/photos/foxbunny/
  Registered Linux user #438078 (http://counter.li.org/)
  I hang out on identi.ca:http://identi.ca/foxbunny

  Gimp Brushmakers Guildhttp://bit.ly/gbg-group

   web2py_lettering.png
  116KViewDownload




[web2py] Re: forms2pdf: new free web2py appliance

2010-10-26 Thread mdipierro
I do not think you can get pdflatex to work on GAE.

On Oct 26, 9:25 am, newnomad uti...@gmail.com wrote:
 requires pdflatex also

 does it work on GAE ?

 On Oct 25, 9:21 pm, mdipierro mdipie...@cs.depaul.edu wrote:

  forgot to say... requires trunk.

  On Oct 25, 1:55 pm, mdipierro mdipie...@cs.depaul.edu wrote:

  http://web2py.com/appliances/default/show/69




Re: [web2py] Re: Request for a logo - PluginCentral

2010-10-26 Thread Branko Vukelic
I will make different version to compensate for scaling. Personally,
I've taken a look at web2py precisely because it said enterprise.
The reason is I was looking for something that offered full-stack
integration, rather than bits and pieces of unintegrated layers, or
worse, no components for some layers.

Anyway, that doesn't mean it has to be in the logo (although it _is_
recommended from usability stand point[1] in the website header). I'm
just saying there's nothing wrong with that.

[1] http://www.sensible.com/dmmt.html

On Tue, Oct 26, 2010 at 4:26 PM, mdipierro mdipie...@cs.depaul.edu wrote:
 I agree. Better not put it in the logo. Mostly because of the
 different font size, it will create problems when scaled. I like this
 new proposed logo.

 On Oct 26, 8:56 am, Anthony abasta...@gmail.com wrote:
 What do people think about including Enterprise Web Framework tag
 line in the logo? I've noticed that in quite a number of public
 discussions of web2py (e.g., on Reddit), the term Enterprise is both
 misunderstood and mocked. That doesn't mean we should stop using it,
 but I wonder if we want to emphasize it by including it right in the
 logo (maybe at least consider a logo that could work with our without
 the tag line included).

 Anyway, this all-text logo by Branko is very nice. I like it better
 than the ship logo. For me, although the ship logo is aesthetically
 appealing, both the ship and the font give it sort of an old-fashioned
 feeling (i.e., rather than modern and cutting-edge). Also, I don't
 quite get the meaning of the ship -- how does it relate to the web2py
 brand identity?

 Anthony

 On Oct 26, 6:49 am, Branko Vukelic bg.bra...@gmail.com wrote:

  On Tue, Oct 26, 2010 at 2:00 AM, mdipierro mdipie...@cs.depaul.edu wrote:
   I have no strong opinion one way or another.

  How about this one?

  --
  Branko Vukelić

  bg.bra...@gmail.com
  stu...@brankovukelic.com

  Check out my blog:http://www.brankovukelic.com/
  Check out my portfolio:http://www.flickr.com/photos/foxbunny/
  Registered Linux user #438078 (http://counter.li.org/)
  I hang out on identi.ca:http://identi.ca/foxbunny

  Gimp Brushmakers Guildhttp://bit.ly/gbg-group

   web2py_lettering.png
  116KViewDownload





-- 
Branko Vukelić

bg.bra...@gmail.com
stu...@brankovukelic.com

Check out my blog: http://www.brankovukelic.com/
Check out my portfolio: http://www.flickr.com/photos/foxbunny/
Registered Linux user #438078 (http://counter.li.org/)
I hang out on identi.ca: http://identi.ca/foxbunny

Gimp Brushmakers Guild
http://bit.ly/gbg-group


[web2py] Re: Request for a logo - PluginCentral

2010-10-26 Thread mdipierro
For me enterprise means:

- full stack (as you say)
- care for users (backward compatibility and support)
- easy to use and deploy (web based admin)
- easy to scale (we support GAE)

We say enterprise because the term includes both business and non-
profits, which I consider an important segment of our market share.

Massimo

On Oct 26, 9:44 am, Branko Vukelic bg.bra...@gmail.com wrote:
 I will make different version to compensate for scaling. Personally,
 I've taken a look at web2py precisely because it said enterprise.
 The reason is I was looking for something that offered full-stack
 integration, rather than bits and pieces of unintegrated layers, or
 worse, no components for some layers.

 Anyway, that doesn't mean it has to be in the logo (although it _is_
 recommended from usability stand point[1] in the website header). I'm
 just saying there's nothing wrong with that.

 [1]http://www.sensible.com/dmmt.html



 On Tue, Oct 26, 2010 at 4:26 PM, mdipierro mdipie...@cs.depaul.edu wrote:
  I agree. Better not put it in the logo. Mostly because of the
  different font size, it will create problems when scaled. I like this
  new proposed logo.

  On Oct 26, 8:56 am, Anthony abasta...@gmail.com wrote:
  What do people think about including Enterprise Web Framework tag
  line in the logo? I've noticed that in quite a number of public
  discussions of web2py (e.g., on Reddit), the term Enterprise is both
  misunderstood and mocked. That doesn't mean we should stop using it,
  but I wonder if we want to emphasize it by including it right in the
  logo (maybe at least consider a logo that could work with our without
  the tag line included).

  Anyway, this all-text logo by Branko is very nice. I like it better
  than the ship logo. For me, although the ship logo is aesthetically
  appealing, both the ship and the font give it sort of an old-fashioned
  feeling (i.e., rather than modern and cutting-edge). Also, I don't
  quite get the meaning of the ship -- how does it relate to the web2py
  brand identity?

  Anthony

  On Oct 26, 6:49 am, Branko Vukelic bg.bra...@gmail.com wrote:

   On Tue, Oct 26, 2010 at 2:00 AM, mdipierro mdipie...@cs.depaul.edu 
   wrote:
I have no strong opinion one way or another.

   How about this one?

   --
   Branko Vukelić

   bg.bra...@gmail.com
   stu...@brankovukelic.com

   Check out my blog:http://www.brankovukelic.com/
   Check out my portfolio:http://www.flickr.com/photos/foxbunny/
   Registered Linux user #438078 (http://counter.li.org/)
   I hang out on identi.ca:http://identi.ca/foxbunny

   Gimp Brushmakers Guildhttp://bit.ly/gbg-group

    web2py_lettering.png
   116KViewDownload

 --
 Branko Vukelić

 bg.bra...@gmail.com
 stu...@brankovukelic.com

 Check out my blog:http://www.brankovukelic.com/
 Check out my portfolio:http://www.flickr.com/photos/foxbunny/
 Registered Linux user #438078 (http://counter.li.org/)
 I hang out on identi.ca:http://identi.ca/foxbunny

 Gimp Brushmakers Guildhttp://bit.ly/gbg-group


[web2py] Re: Request for a logo - PluginCentral

2010-10-26 Thread mwolfe02
I really like the idea of a bold, simple image to represent the
framework.  I'm just not convinced a ship is the right image.

Maybe it would be more helpful to the few good logo designers on this
list (of which Branko is certainly one), for us to propose different
images.  I'll list what I feel (personally) are the strengths of the
framework that an image would ideally represent:

1a. Speed (of development)
1b. Security
2.  Reliability/Stability (ie, promise of backwards
compatibility...the one thing that *truly* distinguishes web2py from
other frameworks; most others don't even try)

Some quick image ideas off the top of my head (that may or may not be
practical as logos):
- 'bullet' train
- sailfish
- catamaran sailboat (a bit more modern-looking/faster than Branko's
original ship design; though I'd imagine less logo-friendly)
- hummingbird
- chain (close-up of two or three individual links)
- hawk
- lion
- gazelle

Please note that I've left off spiders and snakes.  I think they would
add less than nothing to web2py's brand identity.
-Mike

On Oct 26, 9:56 am, Anthony abasta...@gmail.com wrote:
 What do people think about including Enterprise Web Framework tag
 line in the logo? I've noticed that in quite a number of public
 discussions of web2py (e.g., on Reddit), the term Enterprise is both
 misunderstood and mocked. That doesn't mean we should stop using it,
 but I wonder if we want to emphasize it by including it right in the
 logo (maybe at least consider a logo that could work with our without
 the tag line included).

 Anyway, this all-text logo by Branko is very nice. I like it better
 than the ship logo. For me, although the ship logo is aesthetically
 appealing, both the ship and the font give it sort of an old-fashioned
 feeling (i.e., rather than modern and cutting-edge). Also, I don't
 quite get the meaning of the ship -- how does it relate to the web2py
 brand identity?

 Anthony

 On Oct 26, 6:49 am, Branko Vukelic bg.bra...@gmail.com wrote:







  On Tue, Oct 26, 2010 at 2:00 AM, mdipierro mdipie...@cs.depaul.edu wrote:
   I have no strong opinion one way or another.

  How about this one?

  --
  Branko Vukelić

  bg.bra...@gmail.com
  stu...@brankovukelic.com

  Check out my blog:http://www.brankovukelic.com/
  Check out my portfolio:http://www.flickr.com/photos/foxbunny/
  Registered Linux user #438078 (http://counter.li.org/)
  I hang out on identi.ca:http://identi.ca/foxbunny

  Gimp Brushmakers Guildhttp://bit.ly/gbg-group

   web2py_lettering.png
  116KViewDownload


[web2py] Re: forms2pdf: new free web2py appliance

2010-10-26 Thread newnomad
I suppose for the practical use you outline (filling out form to scan
and email back) ti would be suffcient to have users print a xhtml+css
page. Since it is only a one time use only paper, not to be archived,
or not to be un-editable or secured,  it doesn't need to be in PDF
format at all. In fact soem people might not have adobe reader
integrated in their browser.
Would you agree that print page is 'good enough' or did I forget
something?
In that case, I could just modify the script for a printpage.
Others might say that in that case you could do the whole 'filling out
a from to print' thing clientside with jquery (if the data is entered
by hand, not pulled from your web2py app...)

On Oct 26, 4:29 pm, mdipierro mdipie...@cs.depaul.edu wrote:
 I do not think you can get pdflatex to work on GAE.

 On Oct 26, 9:25 am, newnomad uti...@gmail.com wrote:



  requires pdflatex also

  does it work on GAE ?

  On Oct 25, 9:21 pm, mdipierro mdipie...@cs.depaul.edu wrote:

   forgot to say... requires trunk.

   On Oct 25, 1:55 pm, mdipierro mdipie...@cs.depaul.edu wrote:

   http://web2py.com/appliances/default/show/69


[web2py] new version ?

2010-10-26 Thread Richard Vézina
Hello Massimo,

Are you going to publish a new version soon?

I will need a stable version that include the resolved crud.select bug.

Just a planned date will be fine I will manage consequently.

Regards.

Richard


[web2py] Re: Request for a logo - PluginCentral

2010-10-26 Thread Anthony
Also:
3. Easy (to learn and use)
4. Open/welcoming/friendly/helpful (this refers to the community)
5. Active development (i.e., constantly being enhanced and improved)

As for the logo, I'm sure opinions will differ on all-text vs. image
logos (and will probably depend a lot on the particular design), but
I'm not sure a highly literal physical object image (e.g., boat,
train, animal, etc.) will work that well for web2py. Those kinds of
images certainly make sense when they represent something directly in
the brand name (e.g., Ruby on Rails has a ruby with rails; Turbogears
has a gear; Flask has a flask), but can be confusing otherwise. That's
not to say we shouldn't have an image, but if we do, something more
abstract may work better (e.g., like the old logo).

Anthony

On Oct 26, 11:27 am, mwolfe02 michael.joseph.wo...@gmail.com wrote:
 I really like the idea of a bold, simple image to represent the
 framework.  I'm just not convinced a ship is the right image.

 Maybe it would be more helpful to the few good logo designers on this
 list (of which Branko is certainly one), for us to propose different
 images.  I'll list what I feel (personally) are the strengths of the
 framework that an image would ideally represent:

 1a. Speed (of development)
 1b. Security
 2.  Reliability/Stability (ie, promise of backwards
 compatibility...the one thing that *truly* distinguishes web2py from
 other frameworks; most others don't even try)

 Some quick image ideas off the top of my head (that may or may not be
 practical as logos):
 - 'bullet' train
 - sailfish
 - catamaran sailboat (a bit more modern-looking/faster than Branko's
 original ship design; though I'd imagine less logo-friendly)
 - hummingbird
 - chain (close-up of two or three individual links)
 - hawk
 - lion
 - gazelle

 Please note that I've left off spiders and snakes.  I think they would
 add less than nothing to web2py's brand identity.
 -Mike

 On Oct 26, 9:56 am, Anthony abasta...@gmail.com wrote:



  What do people think about including Enterprise Web Framework tag
  line in the logo? I've noticed that in quite a number of public
  discussions of web2py (e.g., on Reddit), the term Enterprise is both
  misunderstood and mocked. That doesn't mean we should stop using it,
  but I wonder if we want to emphasize it by including it right in the
  logo (maybe at least consider a logo that could work with our without
  the tag line included).

  Anyway, this all-text logo by Branko is very nice. I like it better
  than the ship logo. For me, although the ship logo is aesthetically
  appealing, both the ship and the font give it sort of an old-fashioned
  feeling (i.e., rather than modern and cutting-edge). Also, I don't
  quite get the meaning of the ship -- how does it relate to the web2py
  brand identity?

  Anthony

  On Oct 26, 6:49 am, Branko Vukelic bg.bra...@gmail.com wrote:

   On Tue, Oct 26, 2010 at 2:00 AM, mdipierro mdipie...@cs.depaul.edu 
   wrote:
I have no strong opinion one way or another.

   How about this one?

   --
   Branko Vukelić

   bg.bra...@gmail.com
   stu...@brankovukelic.com

   Check out my blog:http://www.brankovukelic.com/
   Check out my portfolio:http://www.flickr.com/photos/foxbunny/
   Registered Linux user #438078 (http://counter.li.org/)
   I hang out on identi.ca:http://identi.ca/foxbunny

   Gimp Brushmakers Guildhttp://bit.ly/gbg-group

    web2py_lettering.png
   116KViewDownload- Hide quoted text -

 - Show quoted text -


[web2py] Re: Request for a logo - PluginCentral

2010-10-26 Thread mwolfe02
Excellent points.

On Oct 26, 12:04 pm, Anthony abasta...@gmail.com wrote:
 Also:
 3. Easy (to learn and use)
 4. Open/welcoming/friendly/helpful (this refers to the community)
 5. Active development (i.e., constantly being enhanced and improved)

 As for the logo, I'm sure opinions will differ on all-text vs. image
 logos (and will probably depend a lot on the particular design), but
 I'm not sure a highly literal physical object image (e.g., boat,
 train, animal, etc.) will work that well for web2py. Those kinds of
 images certainly make sense when they represent something directly in
 the brand name (e.g., Ruby on Rails has a ruby with rails; Turbogears
 has a gear; Flask has a flask), but can be confusing otherwise. That's
 not to say we shouldn't have an image, but if we do, something more
 abstract may work better (e.g., like the old logo).

 Anthony

 On Oct 26, 11:27 am, mwolfe02 michael.joseph.wo...@gmail.com wrote:







  I really like the idea of a bold, simple image to represent the
  framework.  I'm just not convinced a ship is the right image.

  Maybe it would be more helpful to the few good logo designers on this
  list (of which Branko is certainly one), for us to propose different
  images.  I'll list what I feel (personally) are the strengths of the
  framework that an image would ideally represent:

  1a. Speed (of development)
  1b. Security
  2.  Reliability/Stability (ie, promise of backwards
  compatibility...the one thing that *truly* distinguishes web2py from
  other frameworks; most others don't even try)

  Some quick image ideas off the top of my head (that may or may not be
  practical as logos):
  - 'bullet' train
  - sailfish
  - catamaran sailboat (a bit more modern-looking/faster than Branko's
  original ship design; though I'd imagine less logo-friendly)
  - hummingbird
  - chain (close-up of two or three individual links)
  - hawk
  - lion
  - gazelle

  Please note that I've left off spiders and snakes.  I think they would
  add less than nothing to web2py's brand identity.
  -Mike

  On Oct 26, 9:56 am, Anthony abasta...@gmail.com wrote:

   What do people think about including Enterprise Web Framework tag
   line in the logo? I've noticed that in quite a number of public
   discussions of web2py (e.g., on Reddit), the term Enterprise is both
   misunderstood and mocked. That doesn't mean we should stop using it,
   but I wonder if we want to emphasize it by including it right in the
   logo (maybe at least consider a logo that could work with our without
   the tag line included).

   Anyway, this all-text logo by Branko is very nice. I like it better
   than the ship logo. For me, although the ship logo is aesthetically
   appealing, both the ship and the font give it sort of an old-fashioned
   feeling (i.e., rather than modern and cutting-edge). Also, I don't
   quite get the meaning of the ship -- how does it relate to the web2py
   brand identity?

   Anthony

   On Oct 26, 6:49 am, Branko Vukelic bg.bra...@gmail.com wrote:

On Tue, Oct 26, 2010 at 2:00 AM, mdipierro mdipie...@cs.depaul.edu 
wrote:
 I have no strong opinion one way or another.

How about this one?

--
Branko Vukelić

bg.bra...@gmail.com
stu...@brankovukelic.com

Check out my blog:http://www.brankovukelic.com/
Check out my portfolio:http://www.flickr.com/photos/foxbunny/
Registered Linux user #438078 (http://counter.li.org/)
I hang out on identi.ca:http://identi.ca/foxbunny

Gimp Brushmakers Guildhttp://bit.ly/gbg-group

 web2py_lettering.png
116KViewDownload- Hide quoted text -

  - Show quoted text -


[web2py] Tip: Translation through internet (without Admin)

2010-10-26 Thread Mirek Zvolský
1.
While running web2py navigate to: 
http://localhost:8000/admin/default/design/admin

2.
From the controller default.py copy the method edit_language() into
default.py of your application (myapp).

3.
At the beginning of default.py of myapp add:
from gluon.utils import *
from gluon.admin import *

4.
Copy the file: web2py/applications/admin/views/default/
edit_language.html
to: web2py/applications/myapp/views/default/edit_language.html

5.
At the address: http://./myapp/default/edit_language/myapp/languages/xx.py
is possible to translate into xx language.


Re: [web2py] Re: new ticket reporting system

2010-10-26 Thread Thadeus Burgess
I can work on some of this tonight.

On the details thing jumping. The click event bound to the TR element, since
details is inside the TR it is not obvious how to disable the collapse
functionality. Ideas?



--
Thadeus




On Tue, Oct 26, 2010 at 7:43 AM, blackthorne francisco@gmail.comwrote:

 idea for next step: Publishing errors

 It would be nice to receive some reports or error events by other
 protocols by other channels chosen by the administrator such as RSS,
 twitter, mail, sms, XML-RPC...

 Thank you, good one!

 On Oct 26, 12:12 pm, selecta gr...@delarue-berlin.de wrote:
  :) like it but why not also display the latest datetime in the view
  and allow to change the sorting, I never got to that but i think this
  would be a good idea
  sometimes you want to see the latest bug, sometimes the most frequent
  one
  the details thing is almost perfect, i just do not like that it jumps
  on opening, fixed width for the table columns would be nice
 
  anyways I think it is s cool that you guy act so fast on new ideas
 
  On Oct 26, 4:03 am, mdipierro mdipie...@cs.depaul.edu wrote:
 
 
 
   Thanks to Thadeus and Selecta we have a new ticket reporting system in
   trunk.
 
   Tickets are listed grouped by error traceback. So if there are
   multiple tickets caused by the same problem, you see only one of them
   with a number indicated how many occurrences. This allows you to
   easily identify recurrent problems.
 
   Please check it out.
 
   Massimo



Re: [web2py] Re: new ticket reporting system

2010-10-26 Thread Richard Vézina
Other idea :

The cherry on top I think...

When the user get a ticket, in the same page it could be really nice to have
a text box field and a email field. That allows user to send email to
administrator and details of what he was doing before he get the ticket.

If the system can send email about the ticket without the input of the user,
that could be a major improvement (may be it is already working not sure).

Richard

On Tue, Oct 26, 2010 at 12:58 PM, Thadeus Burgess thade...@thadeusb.comwrote:

 I can work on some of this tonight.

 On the details thing jumping. The click event bound to the TR element,
 since details is inside the TR it is not obvious how to disable the collapse
 functionality. Ideas?



 --
 Thadeus





 On Tue, Oct 26, 2010 at 7:43 AM, blackthorne francisco@gmail.comwrote:

 idea for next step: Publishing errors

 It would be nice to receive some reports or error events by other
 protocols by other channels chosen by the administrator such as RSS,
 twitter, mail, sms, XML-RPC...

 Thank you, good one!

 On Oct 26, 12:12 pm, selecta gr...@delarue-berlin.de wrote:
  :) like it but why not also display the latest datetime in the view
  and allow to change the sorting, I never got to that but i think this
  would be a good idea
  sometimes you want to see the latest bug, sometimes the most frequent
  one
  the details thing is almost perfect, i just do not like that it jumps
  on opening, fixed width for the table columns would be nice
 
  anyways I think it is s cool that you guy act so fast on new ideas
 
  On Oct 26, 4:03 am, mdipierro mdipie...@cs.depaul.edu wrote:
 
 
 
   Thanks to Thadeus and Selecta we have a new ticket reporting system in
   trunk.
 
   Tickets are listed grouped by error traceback. So if there are
   multiple tickets caused by the same problem, you see only one of them
   with a number indicated how many occurrences. This allows you to
   easily identify recurrent problems.
 
   Please check it out.
 
   Massimo





Re: [web2py] Re: new ticket reporting system

2010-10-26 Thread Thadeus Burgess
I think that emailing tickets and what Richard would be an example of the
applications job. Perhaps a plugin could be worked to easily add support for
this to any web2py app, however.

--
Thadeus




On Tue, Oct 26, 2010 at 12:56 PM, Richard Vézina 
ml.richard.vez...@gmail.com wrote:

 Other idea :

 The cherry on top I think...

 When the user get a ticket, in the same page it could be really nice to
 have a text box field and a email field. That allows user to send email to
 administrator and details of what he was doing before he get the ticket.

 If the system can send email about the ticket without the input of the
 user, that could be a major improvement (may be it is already working not
 sure).

 Richard


 On Tue, Oct 26, 2010 at 12:58 PM, Thadeus Burgess 
 thade...@thadeusb.comwrote:

 I can work on some of this tonight.

 On the details thing jumping. The click event bound to the TR element,
 since details is inside the TR it is not obvious how to disable the collapse
 functionality. Ideas?



 --
 Thadeus





 On Tue, Oct 26, 2010 at 7:43 AM, blackthorne francisco@gmail.comwrote:

 idea for next step: Publishing errors

 It would be nice to receive some reports or error events by other
 protocols by other channels chosen by the administrator such as RSS,
 twitter, mail, sms, XML-RPC...

 Thank you, good one!

 On Oct 26, 12:12 pm, selecta gr...@delarue-berlin.de wrote:
  :) like it but why not also display the latest datetime in the view
  and allow to change the sorting, I never got to that but i think this
  would be a good idea
  sometimes you want to see the latest bug, sometimes the most frequent
  one
  the details thing is almost perfect, i just do not like that it jumps
  on opening, fixed width for the table columns would be nice
 
  anyways I think it is s cool that you guy act so fast on new ideas
 
  On Oct 26, 4:03 am, mdipierro mdipie...@cs.depaul.edu wrote:
 
 
 
   Thanks to Thadeus and Selecta we have a new ticket reporting system
 in
   trunk.
 
   Tickets are listed grouped by error traceback. So if there are
   multiple tickets caused by the same problem, you see only one of them
   with a number indicated how many occurrences. This allows you to
   easily identify recurrent problems.
 
   Please check it out.
 
   Massimo






[web2py] Re: SQLFORM dropdown odd orderby

2010-10-26 Thread Tiago Rosa
Just to correct myself and register a working solution for the case:

The code below spits out the dropdown element HTML, which you can
manually insert into your SQLFORM HTML (replacing the default
dropdown) to acquire the desired result:

def gae_subject_biased_dropdown(teacher_id):
subjects = db(db.subjects.id0).select(db.subjects.ALL)
teachers_subjects =
db(db.teachers_subjects.id0).select(db.teachers_subjects.ALL).as_list()
ts = map(lambda x: {'teacher_id': x['teacher_id'], 'subject_id':
x['subject_id']}, teachers_subjects)
results = []
for subject in subjects:
dictkey = {'teacher_id': int(teacher_id), 'subject_id':
subject.id}
if dictkey in ts:
results.append([subject.id, subject.name,
teachers_subjects[ts.index(dictkey)]['count']])
else:
results.append([subject.id, subject.name, 0])
key = [res[0] for res in sorted(sorted(results, key=lambda x:
x[1]), key=lambda x: x[2], reverse=True)]
value = [res[1] for res in sorted(sorted(results, key=lambda x:
x[1]), key=lambda x: x[2], reverse=True)]
form = SQLFORM.factory(
Field('subject_id', label=Subject,
requires=IS_IN_SET(key, value, zero=None)))
return form[0][0]

It's damn ugly dict/list manipulation and can certainly be improved,
although possibly compromising readability.

Best regards,
Tiago Rosa

On Oct 12, 3:41 am, Tiago Rosa tiago.str...@gmail.com wrote:
 Well, answering my own question, I've managed to get it to work with
 GAE with a kinda bizarre data juggling:

 The helper function that returns the form element to be inserted into
 the SQLFORM is now like this:

 def gae_subject_biased_dropdown(teacher_id):
         subjects = db(db.subjects.id0).select(db.subjects.id,
 db.subjects.code)
         teachers_subjects =
 db(db.teachers_subjects.id0).select(db.teachers_subjects.subject_id,
 db.teachers_subjects.teacher_id).as_list()
         results = []
         for subj in subjects:
                 if {'teacher_id': int(teacher_id), 'subject_id': subj.id} in
 teachers_subjects:
                         results.append([subj.id, subj.code, 1])
                 else:
                         results.append([subj.id, subj.code, 0])
         key = [res[0] for res in sorted(results, key=lambda x: x[2],
 reverse=True)]
         value = [res[1] for res in sorted(results, key=lambda x: x[2],
 reverse=True)]
         form = SQLFORM.factory(
                         Field('subject_id', label=Subject, 
 requires=IS_IN_SET(key, value,
 zero=None)))
         return form[0][0]

 On Oct 12, 1:15 am, Tiago Rosa tiago.str...@gmail.com wrote:

  An even deeper problem: how to do something like that in a GAE
  environment? The BigTable-like datastore has a lot of query
  restrictions.

  On Oct 6, 9:25 pm, Tiago Rosa tiago.str...@gmail.com wrote:

   Hello annet and Massimo!

   Thank you very much for your help! I still need some enlightenment
   though =)

   I've managed to make it work thanks to annet's tip. Here's how I am
   currently doing it:

   I have defined a helper function that takes a teacher_id and spits out
   the dropdown field (!) generated through annet's method:

   def subject_biased_dropdown(teacher_id):
       rows = db().select(db.subjects.id, db.subjects.code,
           left = db.teachers_subjects.on(
               (db.subjects.id==db.teachers_subjects.subject_id)
               (db.teachers_subjects.teacher_id==teacher_id)),
           orderby=db.teachers_subjects.teacher_id|db.subjects.id)
       key = [row.id for row in rows]
       value = [row.name for row in rows]
       form = SQLFORM.factory(
           Field('subject_id', requires=IS_IN_SET(key,value,zero=None)))
       return form[0][0]

   And then, in the evaluation/create function of the evaluation
   controller, I replace the dropdown field in the autogenerated SQLFORM
   with the biased one that comes from the above function:

   def create():
   (...)
       form_add=SQLFORM(db.evaluations,
       (...)
       )
       form_add[0][0] = subject_biased_dropdown(prof_id)
       if form_add.accepts(request.vars, session):
       (...)
       return dict(form=form_add)

   Yes, it works, but I feel something strange about the way I'm
   implementing this. I guess I'm missing something obvious that would
   make it easier/more best-practice-like. Defining the orderby at the
   model level seems like a better option, but I can't figure it out yet.

   Again, thank you very much for your help!

   Regards,

   Tiago Rosa

   On Oct 6, 2:01 pm, annet annet.verm...@gmail.com wrote:

Massimo,

 you can pass orderby to IS_IN_DB

To which IS_IN_DB do I have to pass the orderby to get the same
result. The resultset reads like:

1     1   a
1     4   d
1     7   9
None  2   b
None  3   c
None  5   e
None  6   f

The orderby: orderby=~db.teachers_subjects.teacher_id|db.subjects.id
first sorts it in reverse order by 

[web2py] Update bug in appadmin when computed columns exist

2010-10-26 Thread Chris
Hello,

I've been trying to update a column using appadmin (something='value')
and for some reason the computed columns aren't being calculated
correctly. I have a field like this in the DAL:

Field('linked_pages',compute = lambda(r):
story_viewer.get_linked_pages(r['text'])),

and a KeyError shows up with 'text' as the missing key in row r.

--

One level up the stack: I know the column exists, but it appears that
it's not getting passed in Set._update's **update_fields, so this
block of code:

update_fields.update(dict([(fieldname,
table[fieldname].compute(Row(update_fields))) \
   for fieldname in table.fields \
   if not fieldname in
update_fields \
   and table[fieldname].compute !=
None]))
(gluon.sql.py)

results in the KeyError, when it calls compute.

This bit of code appears to recompute fields if they 1) haven't been
directly updated and 2) have compute functions. Trouble is,
appadmin.py/select uses form.vars.update_fields as the argument it
passes to update, which only includes the fields I requested an update
for, and not the 'text' field.

--

Is there something I'm missing? How is this supposed to behave?

Thanks!


[web2py] Re: Best way to represent list:string on the widget side?

2010-10-26 Thread Chris
It's been a while, thankfully :) I'm probably just being paranoid.

On Oct 21, 6:14 pm, weheh richard_gor...@verizon.net wrote:
 Oh? Are there web browsers that handle hidden divs within forms as a
 special case? How so?

 On Oct 21, 10:27 am, Chris partyonais...@gmail.com wrote:







  That's a good point. I'm actually wary of using a multi select that's
  been hidden from previous experiences with how web browsers handle it,
  otherwise I definitely would have.

  On Oct 21, 10:12 am, weheh richard_gor...@verizon.net wrote:

   Web2py uses multi SELECT widget for list:string fields. You can hide
   the multi SELECT by setting its style to { display: none; }. You can
   do it with an input field, too. But if you want to be exactly like
   web2py, do it with a SELECT.

   On Oct 21, 12:19 am, Chris partyonais...@gmail.com wrote:

This code is a hybrid that will let you use a hidden control while
messing about with it in your own HTML/XML:

def day_selector_widget(field, value):
    xml_stuff = XML(response.render(widgets/
day_selector.html,
                               _id = str(field).replace('.','_'))
                            )
    return DIV(
             INPUT(
               _type = 'hidden',
               _id = str(field).replace('.','_'),
               _name=field.name,
               _value=|.join(value)), xml_stuff)

On Oct 20, 11:36 pm, Chris partyonais...@gmail.com wrote:

 Thanks. While I'd like to do that, I can't here, because I'm doing a
 custom input scheme with a different UI. That does give me an idea
 though. I'll try and copy the POST a SELECT multiple would send.

 On Oct 20, 11:29 pm, weheh richard_gor...@verizon.net wrote:

  Oh, and don't forget to make SELECT(..., _multiple='multiple', ...)


Re: [web2py] Re: Request for a logo - PluginCentral

2010-10-26 Thread Branko Vukelic
Please don't even try to imagine a graphic designer that would turn
abstract ideas like Stability and Ease of use into a useful graphic.
That's impossible. In reality, it's the reverse. You have a memorable
image that you can associate with the qualities you discover in a
product. And only then does the image 'obtain' those qualities.

Does a 3-pointed star represents German high-precision engineering,
and luxury? I doubt that. Yet, Benz is using that shape. And people
have come to associate those qualities with exactly the kind of
3-pointed star Benz uses, and no other. You can put just any kind of
3-pointed star on your car and expect it to look well-made and
comfortable. It only works if it's the Mercedes-Benz 3-pointed star.

When Arch Linux community had it's logo design contest, we run into
this very problem: discussion about the qualities that a logo should
represent. And, of course, you can't find those qualities in the logo
that's currently being used unless you've associated them with the
image yourself. But the discussion dragged on for days, and the whole
community was divided in a flame war. There were even some
'professionals' who claimed a logo really can speak 1000 words. That's
so far from truth. You'd really have to draw a painting of a logo to
pull that off.

So, what are the notable exceptions to the above? Concrete imagery. In
other words, mascots. And only those mascots that have some root in
the culture. Lions, Tigers, Crane, Frogs, etc. Those animals have
traditionally lots of characteristics associated with them. So using
such images definitely can tell a story. What about that ship? Well,
it's a 50-50 bet.

To some it may speak, to others it may not. And here's a good test of
this. How many of you had the following ideas when seeing that ship:

* Ability to carry a huge amount of load: scalability
* A graceful voyage across a vast ocean: stability
* Took a lot of manpower to build: great community

How many of you got those ideas upon seeing it? I suspect most had
other thoughts. I seriously doubt there is a unified and universal
graphical language that you can use reliably to relay abstract
messages. IOW: Graphic design still hasn't got it's HTTP. ;)

So, before this turns into a pointless discussions, let's just stop
wasting time on abstract ideas. Stability, Speed, Scalability, et al.
those are for the product itself to achieve, not the logo. Logo can be
colorful, sharp, cute, dull, crap... Let's focus on what the logo CAN
be, please.

On Tue, Oct 26, 2010 at 6:36 PM, mwolfe02
michael.joseph.wo...@gmail.com wrote:
 Excellent points.

 On Oct 26, 12:04 pm, Anthony abasta...@gmail.com wrote:
 Also:
 3. Easy (to learn and use)
 4. Open/welcoming/friendly/helpful (this refers to the community)
 5. Active development (i.e., constantly being enhanced and improved)

 As for the logo, I'm sure opinions will differ on all-text vs. image
 logos (and will probably depend a lot on the particular design), but
 I'm not sure a highly literal physical object image (e.g., boat,
 train, animal, etc.) will work that well for web2py. Those kinds of
 images certainly make sense when they represent something directly in
 the brand name (e.g., Ruby on Rails has a ruby with rails; Turbogears
 has a gear; Flask has a flask), but can be confusing otherwise. That's
 not to say we shouldn't have an image, but if we do, something more
 abstract may work better (e.g., like the old logo).

 Anthony

 On Oct 26, 11:27 am, mwolfe02 michael.joseph.wo...@gmail.com wrote:







  I really like the idea of a bold, simple image to represent the
  framework.  I'm just not convinced a ship is the right image.

  Maybe it would be more helpful to the few good logo designers on this
  list (of which Branko is certainly one), for us to propose different
  images.  I'll list what I feel (personally) are the strengths of the
  framework that an image would ideally represent:

  1a. Speed (of development)
  1b. Security
  2.  Reliability/Stability (ie, promise of backwards
  compatibility...the one thing that *truly* distinguishes web2py from
  other frameworks; most others don't even try)

  Some quick image ideas off the top of my head (that may or may not be
  practical as logos):
  - 'bullet' train
  - sailfish
  - catamaran sailboat (a bit more modern-looking/faster than Branko's
  original ship design; though I'd imagine less logo-friendly)
  - hummingbird
  - chain (close-up of two or three individual links)
  - hawk
  - lion
  - gazelle

  Please note that I've left off spiders and snakes.  I think they would
  add less than nothing to web2py's brand identity.
  -Mike

  On Oct 26, 9:56 am, Anthony abasta...@gmail.com wrote:

   What do people think about including Enterprise Web Framework tag
   line in the logo? I've noticed that in quite a number of public
   discussions of web2py (e.g., on Reddit), the term Enterprise is both
   misunderstood and mocked. That doesn't mean we should stop using it,
   but I 

[web2py] Setting ajax=True in component breaks javascript?

2010-10-26 Thread Luther Goh Lu Feng
I have the following view and controller. The code works fine. The
controller action basically defines a select dropdown form as a
component. A change in the dropdown will cause the appearance of an
alert dialog.

However, I noticed that when the ajax=True in place of ajax=True
in the view, the dialog no longer appears and there are no errors seen
in the javascript console. Why is this so? I am asking this as part of
my troubleshooting to a bigger related problem which I will write
soon.

#console.html

script
!-- Load comment component based on dropdown selected --
$(document).ready(function(){

$('select#conversation_dropdown_text').change(function(){
alert('meow');
});
})
/script


h1Conversation/h1
div id=sidebar-header
{{ block sidebar-header }}
{{=LOAD('comment', 'conversation_dropdown.load',
args=[request.args[0]], ajax=False)}}
{{ end }}
/div



#comment.py

def conversation_dropdown():
'''This action returns a dropdown component'''

# Pull the worksheet requested
w = db.worksheet(request.args(0))

# Create the manage the conversation selector dropdown
conversation_dropdown = SQLFORM.factory(
Field('text', label='Select a conversation',
requires=IS_IN_DB(db(db.question.worksheet==w), 'question.id',
'question.text', orderby='question.id')), _id='conversation_dropdown',
table_name=conversation_dropdown)

#hide the submit button
submit = conversation_dropdown.element('input',_type='submit')
submit['_style'] = 'display:none;'

#process form dropdown
if conversation_dropdown.accepts(request.vars, session):
 current_conversation = request.vars.text
elif conversation_dropdown.errors:
 response.flash = 'Form has errors'

return {'conversation_dropdown':conversation_dropdown}


[web2py] translate : refering to table field

2010-10-26 Thread Richard Vézina
Hello,

I would like to manage at the database level the translation of text of my
app... So I would know if it is possible to use query in langage.py file
to refer to tables fields that contain the translation?

Richard


[web2py] Using components breaks javascript?

2010-10-26 Thread Luther Goh Lu Feng
This problem might be related to the one at
http://groups.google.com/group/web2py/browse_thread/thread/1eead541f574a77d#

The view console.html has two drop down selects. The 1st dropdown
select (id=worksheet-list) activates loads a component via
javascript when changed. The second dropdown select will trigger an
alert dialog when changed.

When the page is freshly loaded, the second dropdown works as
expected. After a fresh reload, the 1st dropdown works as expected
too. If the 2nd dropdown is immediately triggered after the 1st
dropdown, the 2nd dropdown fails, ie no dialog box appears. And there
are no errors in the javascript console.

I did a diff of the source code when the 2nd dropdown was working
after a fresh reload, and when it fails, and found very very small
differences in the source: http://tinypic.com/r/muzcyh/7

I hope someone can aid me in explaining the cause of these
observations and help me debug this. Thanks in advance.


#console.html

select id=worksheet-list
{{ for wk in worksheets: }}
option value={{=wk.id}}{{=wk.subject}}: 
{{=wk.name}}/option
{{ pass }}
/select

script
!-- Load comment component based on dropdown selected --
$(document).ready(function(){

$('select#conversation_dropdown_text').change(function(){
alert('meow');
});

$('select#worksheet-list').change(function(){

web2py_component(/roverus/comment/conversation_dropdown.load/ + $
('#worksheet-list').val(),sidebar-header)

});
})
/script

h1Conversation/h1
div id=sidebar-header
{{ block sidebar-header }}
{{=LOAD('comment', 'conversation_dropdown.load',
args=[request.args[0]], ajax=False)}}
{{ end }}
/div



==

#comment.py

def conversation_dropdown():
'''This action returns a dropdown component'''

# Pull the worksheet requested
w = db.worksheet(request.args(0))

# Create the manage the conversation selector dropdown
conversation_dropdown = SQLFORM.factory(
Field('text', label='Select a conversation',
requires=IS_IN_DB(db(db.question.worksheet==w), 'question.id',
'question.text', orderby='question.id')), _id='conversation_dropdown',
table_name=conversation_dropdown)

#hide the submit button
submit = conversation_dropdown.element('input',_type='submit')
submit['_style'] = 'display:none;'

#process form dropdown
if conversation_dropdown.accepts(request.vars, session):
 current_conversation = request.vars.text
elif conversation_dropdown.errors:
 response.flash = 'Form has errors'

return {'conversation_dropdown':conversation_dropdown}


Re: [web2py] Re: Request for a logo - PluginCentral

2010-10-26 Thread Albert Abril
+1 to Branko again.

( mailist should have a comment voting system :D )

On Tue, Oct 26, 2010 at 8:50 PM, Branko Vukelic bg.bra...@gmail.com wrote:

 Please don't even try to imagine a graphic designer that would turn
 abstract ideas like Stability and Ease of use into a useful graphic.
 That's impossible. In reality, it's the reverse. You have a memorable
 image that you can associate with the qualities you discover in a
 product. And only then does the image 'obtain' those qualities.

 Does a 3-pointed star represents German high-precision engineering,
 and luxury? I doubt that. Yet, Benz is using that shape. And people
 have come to associate those qualities with exactly the kind of
 3-pointed star Benz uses, and no other. You can put just any kind of
 3-pointed star on your car and expect it to look well-made and
 comfortable. It only works if it's the Mercedes-Benz 3-pointed star.

 When Arch Linux community had it's logo design contest, we run into
 this very problem: discussion about the qualities that a logo should
 represent. And, of course, you can't find those qualities in the logo
 that's currently being used unless you've associated them with the
 image yourself. But the discussion dragged on for days, and the whole
 community was divided in a flame war. There were even some
 'professionals' who claimed a logo really can speak 1000 words. That's
 so far from truth. You'd really have to draw a painting of a logo to
 pull that off.

 So, what are the notable exceptions to the above? Concrete imagery. In
 other words, mascots. And only those mascots that have some root in
 the culture. Lions, Tigers, Crane, Frogs, etc. Those animals have
 traditionally lots of characteristics associated with them. So using
 such images definitely can tell a story. What about that ship? Well,
 it's a 50-50 bet.

 To some it may speak, to others it may not. And here's a good test of
 this. How many of you had the following ideas when seeing that ship:

 * Ability to carry a huge amount of load: scalability
 * A graceful voyage across a vast ocean: stability
 * Took a lot of manpower to build: great community

 How many of you got those ideas upon seeing it? I suspect most had
 other thoughts. I seriously doubt there is a unified and universal
 graphical language that you can use reliably to relay abstract
 messages. IOW: Graphic design still hasn't got it's HTTP. ;)

 So, before this turns into a pointless discussions, let's just stop
 wasting time on abstract ideas. Stability, Speed, Scalability, et al.
 those are for the product itself to achieve, not the logo. Logo can be
 colorful, sharp, cute, dull, crap... Let's focus on what the logo CAN
 be, please.

 On Tue, Oct 26, 2010 at 6:36 PM, mwolfe02
 michael.joseph.wo...@gmail.com wrote:
  Excellent points.
 
  On Oct 26, 12:04 pm, Anthony abasta...@gmail.com wrote:
  Also:
  3. Easy (to learn and use)
  4. Open/welcoming/friendly/helpful (this refers to the community)
  5. Active development (i.e., constantly being enhanced and improved)
 
  As for the logo, I'm sure opinions will differ on all-text vs. image
  logos (and will probably depend a lot on the particular design), but
  I'm not sure a highly literal physical object image (e.g., boat,
  train, animal, etc.) will work that well for web2py. Those kinds of
  images certainly make sense when they represent something directly in
  the brand name (e.g., Ruby on Rails has a ruby with rails; Turbogears
  has a gear; Flask has a flask), but can be confusing otherwise. That's
  not to say we shouldn't have an image, but if we do, something more
  abstract may work better (e.g., like the old logo).
 
  Anthony
 
  On Oct 26, 11:27 am, mwolfe02 michael.joseph.wo...@gmail.com wrote:
 
 
 
 
 
 
 
   I really like the idea of a bold, simple image to represent the
   framework.  I'm just not convinced a ship is the right image.
 
   Maybe it would be more helpful to the few good logo designers on this
   list (of which Branko is certainly one), for us to propose different
   images.  I'll list what I feel (personally) are the strengths of the
   framework that an image would ideally represent:
 
   1a. Speed (of development)
   1b. Security
   2.  Reliability/Stability (ie, promise of backwards
   compatibility...the one thing that *truly* distinguishes web2py from
   other frameworks; most others don't even try)
 
   Some quick image ideas off the top of my head (that may or may not be
   practical as logos):
   - 'bullet' train
   - sailfish
   - catamaran sailboat (a bit more modern-looking/faster than Branko's
   original ship design; though I'd imagine less logo-friendly)
   - hummingbird
   - chain (close-up of two or three individual links)
   - hawk
   - lion
   - gazelle
 
   Please note that I've left off spiders and snakes.  I think they would
   add less than nothing to web2py's brand identity.
   -Mike
 
   On Oct 26, 9:56 am, Anthony abasta...@gmail.com wrote:
 
What do people think about including 

[web2py] wizard: site without authentification

2010-10-26 Thread Tim Michelsen
Hello,
I took the auth_user table out of the wizard.

Still, I am required to register and log in after the app is created.

Regards,
Timmie



[web2py] Re: Extending DAL for spatial queries?

2010-10-26 Thread Tim Michelsen
 This would be a good thing to add to http://web2py.uservoice.com.
Done:
http://web2py.uservoice.com/forums/42577-general/suggestions/1170283-extend-dal-for-spatial-queries



[web2py] clean up uservoice

2010-10-26 Thread Tim Michelsen
Hello,
there are some request which are already implemented in web2py on
http://web2py.uservoice.com/forums/42577-general

Regards.



Re: [web2py] clean up uservoice

2010-10-26 Thread Bruno Rocha
I think Google http://www.google.com/moderator/ should be better for that!

2010/10/26 Tim Michelsen timmichel...@gmx-topmail.de

 Hello,
 there are some request which are already implemented in web2py on
 http://web2py.uservoice.com/forums/42577-general

 Regards.




-- 

http://rochacbruno.com.br


[web2py] Re: run-away threads

2010-10-26 Thread ae
Running on Linux.  Python 2.6

It takes a long time for this condition to occur.  I restarted the
server last Friday and it had been running since 2008-06-23 and I
couldn't find a working thread.

It may not be /all/ threads--I re-open my browser to get attached to
a new thread and sometimes I get a thread that seems OK but I need to
figure out what is happening to the other threads.  I haven't been
able to correlate these problems with particular controller since it
happens over time and I have about 350 controller functions across 20
or so controller files.

Obviously, I test each controller function but there must be some set
of conditions that leads to this which my tests do not cover.

Thanks.

On Oct 24, 9:06 pm, cjrh caleb.hatti...@gmail.com wrote:
 On Oct 25, 1:42 am, ae ae88...@gmail.com wrote:

  Every so often, I have to restart web2py because no threads will
  respond.

 Are you working on Windows?   Do you send debugging output to the cmd
 shell window, and then restore that window to inspect your output?
 It could be that that shell window is locking your app, because you
 clicked somewhere inside it.   Just hit enter with the focus on the
 shell window, and the lock should be gone.  I do this fairly often.
 I don't know why the shell window locks.


Re: [web2py] Re: AWS Free Tier

2010-10-26 Thread Luis Díaz
thanks for the info


-- 
Díaz Luis
TSU Analisis de Sistemas
Universidad de Carabobo

http://web2pyfacil.blogspot.com/
Facultad de 
Odontologíahttp://www.odontologia.uc.edu.ve/index.php?option=com_contentview=articleid=102Itemid=85


Re: [web2py] Re: new ticket reporting system

2010-10-26 Thread Richard Vézina
Jutda built with Django looks to me really nice, but it is a bit overkill
for my need, I think, since that web2py already has a ticket system.

http://www.jutdahelpdesk.com/

http://www.jutdahelpdesk.com/
I will probably install Jutda for testing it in the coming weeks

Richard

On Tue, Oct 26, 2010 at 1:59 PM, Thadeus Burgess thade...@thadeusb.comwrote:

 I think that emailing tickets and what Richard would be an example of the
 applications job. Perhaps a plugin could be worked to easily add support for
 this to any web2py app, however.

 --
 Thadeus





 On Tue, Oct 26, 2010 at 12:56 PM, Richard Vézina 
 ml.richard.vez...@gmail.com wrote:

 Other idea :

 The cherry on top I think...

 When the user get a ticket, in the same page it could be really nice to
 have a text box field and a email field. That allows user to send email to
 administrator and details of what he was doing before he get the ticket.

 If the system can send email about the ticket without the input of the
 user, that could be a major improvement (may be it is already working not
 sure).

 Richard


 On Tue, Oct 26, 2010 at 12:58 PM, Thadeus Burgess 
 thade...@thadeusb.comwrote:

 I can work on some of this tonight.

 On the details thing jumping. The click event bound to the TR element,
 since details is inside the TR it is not obvious how to disable the collapse
 functionality. Ideas?



 --
 Thadeus





 On Tue, Oct 26, 2010 at 7:43 AM, blackthorne francisco@gmail.comwrote:

 idea for next step: Publishing errors

 It would be nice to receive some reports or error events by other
 protocols by other channels chosen by the administrator such as RSS,
 twitter, mail, sms, XML-RPC...

 Thank you, good one!

 On Oct 26, 12:12 pm, selecta gr...@delarue-berlin.de wrote:
  :) like it but why not also display the latest datetime in the view
  and allow to change the sorting, I never got to that but i think this
  would be a good idea
  sometimes you want to see the latest bug, sometimes the most frequent
  one
  the details thing is almost perfect, i just do not like that it jumps
  on opening, fixed width for the table columns would be nice
 
  anyways I think it is s cool that you guy act so fast on new ideas
 
  On Oct 26, 4:03 am, mdipierro mdipie...@cs.depaul.edu wrote:
 
 
 
   Thanks to Thadeus and Selecta we have a new ticket reporting system
 in
   trunk.
 
   Tickets are listed grouped by error traceback. So if there are
   multiple tickets caused by the same problem, you see only one of
 them
   with a number indicated how many occurrences. This allows you to
   easily identify recurrent problems.
 
   Please check it out.
 
   Massimo







[web2py] Janrain Engage is now active on web2pyslices.com

2010-10-26 Thread mr.freeze
It took a while but I finally got around to adding Janrain Engage
(formerly RPX) login on web2pyslices.com. Please give it a try when
you get a chance. Your normal login still works too. If you login with
a provider that is configured with the same email address as your
normal login, it will log you in as that user. If the email is
different, it will create a new user.

Later,
Nathan



[web2py] Best way to update schedule with multiple users/locations?

2010-10-26 Thread Tom Campbell
I'm writing a scheduling system in web2py. It can be used by multiple
users in multiple locations. If one user adds an appointment, I'd like
other users to see it within 10 seconds or so. What is the preferred
mechanism for this? My poorly educated guess is:

1. An updater runs as a single background process as in section 4.19,
checking the database for new or changed appointments at all locations
and enqueues them
2. Each client schedule running in browser runs a cron job to check
the queue for matching appointments
3. If any appointments in the queue satisfy the search criteria (i.e.
appointments at that location), the calendar gets redrawn

Any feedback would be greatly appreciated.


[web2py] opposite of belongs ?

2010-10-26 Thread Andrew Thompson

Is there a way to get 'NOT IN' via DAL?

I believe it should be a negative/opposite of the belongs operator.

--
Andrew Thompson
http://aktzero.com/



Re: [web2py] opposite of belongs ?

2010-10-26 Thread Thadeus Burgess
db(~db.table.field.belongs(list)).select()

--
Thadeus




On Wed, Oct 27, 2010 at 12:44 AM, Andrew Thompson andre...@aktzero.comwrote:

 Is there a way to get 'NOT IN' via DAL?

 I believe it should be a negative/opposite of the belongs operator.

 --
 Andrew Thompson
 http://aktzero.com/