Re: [web2py] Re: administrator controller

2010-12-15 Thread Branko Vukelic
Wasn't Thadeus working on this, though? With a public API so it can
integrate into admin, and all the bells and whistles.

On Wed, Dec 15, 2010 at 5:28 AM, mdipierro mdipie...@cs.depaul.edu wrote:
 If we can repurpose Martin's app and he is willing to maintain it,
 that would be the best solution.

 I can also split appliances. Not hard to do but we need a way to vote
 and keep track of versions.


 Massimo

 On Dec 14, 9:48 pm, Bruno Rocha rochacbr...@gmail.com wrote:
 2010/12/15 mdipierro mdipie...@cs.depaul.edu

  I think we need a better public repository for plugins so that people
  can contribute.

 web2py.com/appliances can be splited in categories
 ['Applications','modules','plugins']

 or

 @martin created an application for WAE (http://w2pexhibition.appspot.com/)
 source is here:http://bitbucket.org/mulonemartin/exhibition

 Someone can publish it in GAE to host applications, plugins, modules etc.
 and that could replace /appliances [or if you prefer host it under
 web2py.com/something]

 What about?

 Bruno Rochahttp://about.me/rochacbruno/bio



-- 
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] Re: passing width and height args to download controller from image

2010-12-15 Thread Martin.Mulone
It's a security issue that can be exploided if you allow public to manage 
width and height. 

Google in appengine for serving image the size has to be in: 

IMG_SERVING_SIZES = [
  32, 48, 64, 72, 80, 90, 94, 104, 110, 120, 128, 144,
  150, 160, 200, 220, 288, 320, 400, 512, 576, 640, 720,
  800, 912, 1024, 1152, 1280, 1440, 1600]


[web2py] plugin_wiki search widget problem

2010-12-15 Thread Johann Spies
Using the following definition:

``
name: search
table: artikel
fields: titel, opsomming, sleutelwoorde, publikasiejaar, joernaal_id,
outeur_id, instansie_id,  isi_indeks, isap_indeks
``:widget

I get this error:

Traceback (most recent call last):
  File /home/js/web2py/applications/init/models/plugin_wiki.py, line
592, in render_widget
html = getattr(PluginWikiWidgets,name)(**args)
  File /home/js/web2py/applications/init/models/plugin_wiki.py, line
228, in search
fields=['%s.%s' % (table,f.spritp()) for f in fields.split(',')]
AttributeError: 'str' object has no attribute 'spritp'

My mistake or a bug?

Johann
-- 
 May grace and peace be yours in abundance through the full knowledge of God
and of Jesus our Lord!  His divine power has given us everything we need for
life and godliness through the full knowledge of the one who called us by
his own glory and excellence.
2 Pet. 1:2b,3a


Re: [web2py] Re: administrator controller

2010-12-15 Thread Martín Mulone
I have no problem.

2010/12/15 mdipierro mdipie...@cs.depaul.edu:
 If we can repurpose Martin's app and he is willing to maintain it,
 that would be the best solution.

 I can also split appliances. Not hard to do but we need a way to vote
 and keep track of versions.


 Massimo

 On Dec 14, 9:48 pm, Bruno Rocha rochacbr...@gmail.com wrote:
 2010/12/15 mdipierro mdipie...@cs.depaul.edu

  I think we need a better public repository for plugins so that people
  can contribute.

 web2py.com/appliances can be splited in categories
 ['Applications','modules','plugins']

 or

 @martin created an application for WAE (http://w2pexhibition.appspot.com/)
 source is here:http://bitbucket.org/mulonemartin/exhibition

 Someone can publish it in GAE to host applications, plugins, modules etc.
 and that could replace /appliances [or if you prefer host it under
 web2py.com/something]

 What about?

 Bruno Rochahttp://about.me/rochacbruno/bio



-- 
My blog: http://martin.tecnodoc.com.ar
My portfolio *spanish*: http://www.tecnodoc.com.ar
Checkout my last proyect instant-press: http://www.instant2press.com


[web2py] Re: web2py entry on wikipedia needs to be updated

2010-12-15 Thread Luther Goh Lu Feng
I see. There are some pages that I think might be suitable:

http://en.wikipedia.org/wiki/Comparison_of_web_application_framework
http://en.wikipedia.org/wiki/Web_application_framework

To which page should the content be added?

On Dec 15, 11:11 am, mdipierro mdipie...@cs.depaul.edu wrote:
 I think the comparisong should be in a public wiki, also accessible to
 authors of other frameworks but not on the web2py page because people
 are going to complain.

 On Dec 14, 3:13 am, Luther Goh Lu Feng elf...@yahoo.com wrote:







  I do not know how updated are the comparisons 
  here:http://www.web2py.com/examples/static/web2py_vs_others.pdf

  But I wonder if it will be useful to have it on the wikipedia page so
  that it is more easily updated by those using other frameworks. I
  believe it also helps the understanding of the framework.


[web2py] Re: administrator controller

2010-12-15 Thread Luther Goh Lu Feng
I wonder if the plugins will be better hosted on services like github
and bitbucket? Will it be easier to fork and contribute?

On Dec 15, 7:27 pm, Martín Mulone mulone.mar...@gmail.com wrote:
 I have no problem.

 2010/12/15 mdipierro mdipie...@cs.depaul.edu:









  If we can repurpose Martin's app and he is willing to maintain it,
  that would be the best solution.

  I can also split appliances. Not hard to do but we need a way to vote
  and keep track of versions.

  Massimo

  On Dec 14, 9:48 pm, Bruno Rocha rochacbr...@gmail.com wrote:
  2010/12/15 mdipierro mdipie...@cs.depaul.edu

   I think we need a better public repository for plugins so that people
   can contribute.

  web2py.com/appliances can be splited in categories
  ['Applications','modules','plugins']

  or

  @martin created an application for WAE (http://w2pexhibition.appspot.com/)
  source is here:http://bitbucket.org/mulonemartin/exhibition

  Someone can publish it in GAE to host applications, plugins, modules etc.
  and that could replace /appliances [or if you prefer host it under
  web2py.com/something]

  What about?

  Bruno Rochahttp://about.me/rochacbruno/bio

 --
 My blog: http://martin.tecnodoc.com.ar
 My portfolio *spanish*: http://www.tecnodoc.com.ar
 Checkout my last proyect instant-press:http://www.instant2press.com


Re: [web2py] Re: NameError: name 'db' is not defined.

2010-12-15 Thread Johann Spies
On 8 December 2010 17:03, mdipierro mdipie...@cs.depaul.edu wrote:

 Is opdateerxartikels a model? If so, it cannot be imported, it must be
 executed.

 Instead of

 from opdateerxartikels import *

 do

 execfile('opdateerxartikels.py')


No , it is not a model.

Thanks for answer.  In the mean time I used a workaround: copy and paste.

Regards
Johann

-- 
 May grace and peace be yours in abundance through the full knowledge of God
and of Jesus our Lord!  His divine power has given us everything we need for
life and godliness through the full knowledge of the one who called us by
his own glory and excellence.
2 Pet. 1:2b,3a


Re: [web2py] Re: it case you missed it...

2010-12-15 Thread Wikus van de Merwe
Why GPL is discouraging users? Is it the case that Drupal, Wordpress
or Joomla have no users? They are all released on GPL terms. Moreover,
they consider themes and plugins to be derivative work and as such
they have to be released on GPL terms if distributed. Still, thousands
of plugins and themes have been made.

Pay close attention here, *if* distributed. In common web development
scenario where expected end product is the working web application
deployed on some server, the application code is not distributed but
simply used and doesn't have to be released on GPL terms. In those
rare cases where client specifically require the source code as she
wants to deploy the application on her own, you release the code on
GPL terms but to her only. She paid for it's creation anyway right?

And with web2py, thanks to exceptions, you don't even have to do that.
Application code is not considered to be a derivative work. But
changes to the framework and works build on top of it are (that is,
*if* distributed). So again, you can have your own specialised version
of web2py running on some servers, but you cannot make a proprietary
fork of web2py. And this will be allowed by non-copyleft licences such
as modified BSD licence or X11 licence.

Now, those who would benefit from a proprietary fork are not the
users. And in that sense, by not allowing the community fragmentation
around a number of different less or more commercial oriented forks
the GPL helps to create a good framework, as it keeps the community
together.

So as I just showed to you, GPL is a non-issue for the users and
protects the freedom of the framework much better than non-copyleft
licences would. Your only argument being the other Python frameworks
use non-copyleft licences is not convincing. Statistic != merit.


Re: [web2py] Re: it case you missed it...

2010-12-15 Thread Branko Vukelic
Don't start this discussion again. :) It's already soft-of decided
that web2py will remain GPL.

On Wed, Dec 15, 2010 at 1:36 PM, Wikus van de Merwe
dupakrop...@googlemail.com wrote:
 Why GPL is discouraging users? Is it the case that Drupal, Wordpress
 or Joomla have no users? They are all released on GPL terms. Moreover,
 they consider themes and plugins to be derivative work and as such
 they have to be released on GPL terms if distributed. Still, thousands
 of plugins and themes have been made.

 Pay close attention here, *if* distributed. In common web development
 scenario where expected end product is the working web application
 deployed on some server, the application code is not distributed but
 simply used and doesn't have to be released on GPL terms. In those
 rare cases where client specifically require the source code as she
 wants to deploy the application on her own, you release the code on
 GPL terms but to her only. She paid for it's creation anyway right?

 And with web2py, thanks to exceptions, you don't even have to do that.
 Application code is not considered to be a derivative work. But
 changes to the framework and works build on top of it are (that is,
 *if* distributed). So again, you can have your own specialised version
 of web2py running on some servers, but you cannot make a proprietary
 fork of web2py. And this will be allowed by non-copyleft licences such
 as modified BSD licence or X11 licence.

 Now, those who would benefit from a proprietary fork are not the
 users. And in that sense, by not allowing the community fragmentation
 around a number of different less or more commercial oriented forks
 the GPL helps to create a good framework, as it keeps the community
 together.

 So as I just showed to you, GPL is a non-issue for the users and
 protects the freedom of the framework much better than non-copyleft
 licences would. Your only argument being the other Python frameworks
 use non-copyleft licences is not convincing. Statistic != merit.



-- 
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] Re: administrator controller

2010-12-15 Thread Martín Mulone
+1. It's a must for developers, to register an account is less than a
minute and the basic are simple and easy to learn.

2010/12/15 Luther Goh Lu Feng elf...@yahoo.com:
 I wonder if the plugins will be better hosted on services like github
 and bitbucket? Will it be easier to fork and contribute?

 On Dec 15, 7:27 pm, Martín Mulone mulone.mar...@gmail.com wrote:
 I have no problem.

 2010/12/15 mdipierro mdipie...@cs.depaul.edu:









  If we can repurpose Martin's app and he is willing to maintain it,
  that would be the best solution.

  I can also split appliances. Not hard to do but we need a way to vote
  and keep track of versions.

  Massimo

  On Dec 14, 9:48 pm, Bruno Rocha rochacbr...@gmail.com wrote:
  2010/12/15 mdipierro mdipie...@cs.depaul.edu

   I think we need a better public repository for plugins so that people
   can contribute.

  web2py.com/appliances can be splited in categories
  ['Applications','modules','plugins']

  or

  @martin created an application for WAE (http://w2pexhibition.appspot.com/)
  source is here:http://bitbucket.org/mulonemartin/exhibition

  Someone can publish it in GAE to host applications, plugins, modules etc.
  and that could replace /appliances [or if you prefer host it under
  web2py.com/something]

  What about?

  Bruno Rochahttp://about.me/rochacbruno/bio

 --
 My blog: http://martin.tecnodoc.com.ar
 My portfolio *spanish*: http://www.tecnodoc.com.ar
 Checkout my last proyect instant-press:http://www.instant2press.com



-- 
My blog: http://martin.tecnodoc.com.ar
My portfolio *spanish*: http://www.tecnodoc.com.ar
Checkout my last proyect instant-press: http://www.instant2press.com


Re: [web2py] Re: it case you missed it...

2010-12-15 Thread Wikus van de Merwe
The discussion was started by the advocates of non-copyleft licences. I'm 
perfectly fine with web2py on GPL terms (even without exceptions), besides 
maybe I would like to see it upgraded to GPLv3. However, it is too often we 
see the attempts to frame the GPL as deterrent scary licence that limits the 
project adoption and nobody takes a strong stance against such unfair 
claims. Then this false image of what GPL is and how it works is spread, 
because people are lazy and they will rather accept anonymous comment on the 
Internet as true rather than check the GPL faq or the licence itself. This 
is why I replied. Who knows, maybe sombody will learn from it something new.


[web2py] Re: tags and tag cloud

2010-12-15 Thread James M.
Create a tag cloud...

db.define_table('article', Field('content'))
db.define_table('tag', Field('name'))
db.define_table('article_tag',
Field('article',db.article),Field('tag',db.tag))

On Dec 12, 1:45 pm, Carlos carlosgali...@gmail.com wrote:
 Hi,

 This is not a question specific to web2py, but it's more a generic
 inquiry.

 How does 'tags' usually work in a regular website (e.g. for articles/
 blogs)?.

 I mean:

 Should tags be managed (create/update/delete tags) only by the admin
 or also by end users?.

 Should tags be used (tagging specific articles) only by the admin or
 also by end users?.

 And then how to create and manage a tag cloud?.

 Thanks for your input,

    Carlos


[web2py] Web2py Application Exhibition ( Final Day! )

2010-12-15 Thread NetAdmin

 Hello All,

 THIS IS THE FINAL DAY!

 The deadline for submissions for the
 Web2py Application Exhibition is December 15th 2010

 You can start submitting and voting for the entries
 for the Web2py Application Exhibition Version 2.0

 To get started, go to the following link...
 http://w2pexhibition.appspot.com/

 There is a sample application entry by Martin Mulone
 that will give you an idea of how to use the
 voting application.

 Many thanks to Martin Mulone for coding the app
 to handle submission and voting!

 Good Luck!

 Mr.NetAdmin


[web2py] Re: administrator controller

2010-12-15 Thread Anthony
On Wednesday, December 15, 2010 7:03:54 AM UTC-5, Luther Goh Lu Feng wrote: 

 I wonder if the plugins will be better hosted on services like github and 
 bitbucket? Will it be easier to fork and contribute? 

 
 Good idea for code hosting, but it would probably still be helpful to have 
a web2py specific site (or section of web2py.com) to list, categorize, rate, 
search, etc. -- the listing on the web2py site could then point to the 
github/bitbucket/Google code repository for the app/plugin.
 


[web2py] Re: Strange behaviour on SQLFORM update

2010-12-15 Thread DenesL

Neither works, same problem.

On Dec 14, 10:19 pm, mdipierro mdipie...@cs.depaul.edu wrote:
 Try replace

 form.accepts (request.vars,session)

 with

 form.accepts (request.post_vars,session)

 or simply

 form.accepts (request,session)


[web2py] Re: Strange behaviour on SQLFORM update

2010-12-15 Thread DenesL

Massimo's suggestion seems to work for other integer fields but not
for id.


On Dec 15, 10:57 am, Seamon seamon.l...@gmail.com wrote:
 Changing the id to e_id solved the problem pretty well and it's a
 nicer
 solution than type checking the id if it is a list. :) The funny thing
 is
 that this code actually worked on an older web2py server and the
 problem
 started after the update. Thanks for help.

 On 14. Dec., 17:11 h., DenesL denes1...@yahoo.ca wrote:

  The problem is the use of 'id' in the vars.
  What happens is that the form already has an 'id' field, although it
  is hidden it is still being sent back on submit, and then you add
  another 'id' in the vars so you end up with two, hence '|1|1|'.

  To fix just use a variable name that is not in the form.

  On Dec 13, 5:38 pm, Seamon seamon.l...@gmail.com wrote:

   Hi,

   I've just experienced strage behaviour while using SQLFORM to update
   records
   in MySQL DB. The code is pretty basic (see below), just a little
   cookbook application
   and this part was ment to edit the recipe. First all seemed ok - the
   form was displayed
   as specified, but after submitting the changes I kept getting error
   like this:
   ValueError: invalid literal for int() with base 10: '|1|1|'

   Where the |1|1| was clearly connected to the record id. For some
   reason the form.accept
   was ignored and the whole result from the form submit came in as an
   request (so it contained an id
   but it was '|1|1|') and that was the problem. Apparently it can be
   fixed with some type checking, but
   it shouldn't by working like this as far as I know. Any idea why this
   happens?

   DB Table:
   cbook.define_table ('recipe',
                       Field ('Food_Name','string',length = 40),
                       Field ('id_author','integer',default = -1),
                       Field ('creation_date','date'),
                       Field ('suroviny','text'),    #resources
                       Field ('popis','text'),        #info
                       Field ('postup','text'),      #recipe
                       Field ('verejny','boolean') #public
                       )
   Code:
   def edit_recipe():
       if session.authorized:

           id = request.vars.id
           record=cbook(cbook.recipe.id==id).select()

           form = SQLFORM (cbook.recipe,submit_button='Uloz
   zmeny',record=record[0],showid=False,fields =
   ['Food_Name','popis','suroviny','postup','verejny'] )

           if form.accepts (request.vars,session):
               response.flash = 'Recipe updated'
               redirect(URL(r=request,c='recipes',f='edit_recipe',vars =
   {'id':id}))

           return dict (form=form,id=id)




[web2py] Problem with basic auth

2010-12-15 Thread Adi
Hi,

I'm trying to set up a function for authenticating users over a service.

This is my method:

def authenticate():

is_loggedin = auth and auth.user

if not is_loggedin:

auth.allow_basic_login = True 

is_loggedin = auth.basic()

return is_loggedin 

 

This is how I call it: curl -u a%40b.com:test 
http://127.0.0.1:8000/app/default/authenticate

 

 a...@b.com is the username, test is the password. This is returning False when 
I expected True. What am I missing?


[web2py] Re: Strange behaviour on SQLFORM update

2010-12-15 Thread Seamon
Changing the id to e_id solved the problem pretty well and it's a
nicer
solution than type checking the id if it is a list. :) The funny thing
is
that this code actually worked on an older web2py server and the
problem
started after the update. Thanks for help.

On 14. Dec., 17:11 h., DenesL denes1...@yahoo.ca wrote:
 The problem is the use of 'id' in the vars.
 What happens is that the form already has an 'id' field, although it
 is hidden it is still being sent back on submit, and then you add
 another 'id' in the vars so you end up with two, hence '|1|1|'.

 To fix just use a variable name that is not in the form.

 On Dec 13, 5:38 pm, Seamon seamon.l...@gmail.com wrote:



  Hi,

  I've just experienced strage behaviour while using SQLFORM to update
  records
  in MySQL DB. The code is pretty basic (see below), just a little
  cookbook application
  and this part was ment to edit the recipe. First all seemed ok - the
  form was displayed
  as specified, but after submitting the changes I kept getting error
  like this:
  ValueError: invalid literal for int() with base 10: '|1|1|'

  Where the |1|1| was clearly connected to the record id. For some
  reason the form.accept
  was ignored and the whole result from the form submit came in as an
  request (so it contained an id
  but it was '|1|1|') and that was the problem. Apparently it can be
  fixed with some type checking, but
  it shouldn't by working like this as far as I know. Any idea why this
  happens?

  DB Table:
  cbook.define_table ('recipe',
                      Field ('Food_Name','string',length = 40),
                      Field ('id_author','integer',default = -1),
                      Field ('creation_date','date'),
                      Field ('suroviny','text'),    #resources
                      Field ('popis','text'),        #info
                      Field ('postup','text'),      #recipe
                      Field ('verejny','boolean') #public
                      )
  Code:
  def edit_recipe():
      if session.authorized:

          id = request.vars.id
          record=cbook(cbook.recipe.id==id).select()

          form = SQLFORM (cbook.recipe,submit_button='Uloz
  zmeny',record=record[0],showid=False,fields =
  ['Food_Name','popis','suroviny','postup','verejny'] )

          if form.accepts (request.vars,session):
              response.flash = 'Recipe updated'
              redirect(URL(r=request,c='recipes',f='edit_recipe',vars =
  {'id':id}))

          return dict (form=form,id=id)


Re: [web2py] Problem with basic auth

2010-12-15 Thread Martín Mulone
This is my method:

def is_user_logged_in():
logged_in=False
if 'auth' in globals():
if auth.is_logged_in():
logged_in=True

return logged_in

2010/12/15 Adi aditya.sa...@gmail.com:
 Hi,
 I'm trying to set up a function for authenticating users over a service.
 This is my method:
 def authenticate():

 is_loggedin = auth and auth.user

 if not is_loggedin:

 auth.allow_basic_login = True

 is_loggedin = auth.basic()

 return is_loggedin



 This is how I call it: curl -u a%40b.com:test
 http://127.0.0.1:8000/app/default/authenticate



 �...@b.com is the username, test is the password. This is returning False when
 I expected True. What am I missing?



-- 
My blog: http://martin.tecnodoc.com.ar
My portfolio *spanish*: http://www.tecnodoc.com.ar
Checkout my last proyect instant-press: http://www.instant2press.com


[web2py] Re: Problem with basic auth

2010-12-15 Thread mdipierro
you can also do:

logged_in = 'auth' in globals() and auth.user



On Dec 15, 11:12 am, Martín Mulone mulone.mar...@gmail.com wrote:
 This is my method:

 def is_user_logged_in():
     logged_in=False
     if 'auth' in globals():
         if auth.is_logged_in():
             logged_in=True

     return logged_in

 2010/12/15 Adi aditya.sa...@gmail.com:



  Hi,
  I'm trying to set up a function for authenticating users over a service.
  This is my method:
  def authenticate():

  is_loggedin = auth and auth.user

  if not is_loggedin:

  auth.allow_basic_login = True

  is_loggedin = auth.basic()

  return is_loggedin

  This is how I call it: curl -u a%40b.com:test
 http://127.0.0.1:8000/app/default/authenticate

   a...@b.com is the username, test is the password. This is returning False 
  when
  I expected True. What am I missing?

 --
 My blog: http://martin.tecnodoc.com.ar
 My portfolio *spanish*: http://www.tecnodoc.com.ar
 Checkout my last proyect instant-press:http://www.instant2press.com


Re: [web2py] Re: Problem with basic auth

2010-12-15 Thread Aditya Sahay
But these methods will not log in a user if provided with username and 
password. The objective is to log in.


On 15-Dec-2010, at 10:55 PM, mdipierro wrote:

 you can also do:
 
 logged_in = 'auth' in globals() and auth.user
 
 
 
 On Dec 15, 11:12 am, Martín Mulone mulone.mar...@gmail.com wrote:
 This is my method:
 
 def is_user_logged_in():
 logged_in=False
 if 'auth' in globals():
 if auth.is_logged_in():
 logged_in=True
 
 return logged_in
 
 2010/12/15 Adi aditya.sa...@gmail.com:
 
 
 
 Hi,
 I'm trying to set up a function for authenticating users over a service.
 This is my method:
 def authenticate():
 
 is_loggedin = auth and auth.user
 
 if not is_loggedin:
 
 auth.allow_basic_login = True
 
 is_loggedin = auth.basic()
 
 return is_loggedin
 
 This is how I call it: curl -u a%40b.com:test
 http://127.0.0.1:8000/app/default/authenticate
 
  a...@b.com is the username, test is the password. This is returning False 
 when
 I expected True. What am I missing?
 
 --
 My blog: http://martin.tecnodoc.com.ar
 My portfolio *spanish*: http://www.tecnodoc.com.ar
 Checkout my last proyect instant-press:http://www.instant2press.com

If you do this in an email, I hate you - http://theoatmeal.com/comics/email



[web2py] Re: Problem with basic auth

2010-12-15 Thread mdipierro
Hmmm... look into gluon/tools.py

def basic(self):
if not self.settings.allow_basic_login:
return False
basic = self.environment.request.env.http_authorization
if not basic or not basic[:6].lower() == 'basic ':
return False
(username, password) = base64.b64decode(basic[6:]).split(':')
return self.login_bare(username, password)


Can you add some print debug statements as see where it fails?

On Dec 15, 10:23 am, Adi aditya.sa...@gmail.com wrote:
 Hi,

 I'm trying to set up a function for authenticating users over a service.

 This is my method:

 def authenticate():

 is_loggedin = auth and auth.user

 if not is_loggedin:

 auth.allow_basic_login = True

 is_loggedin = auth.basic()

 return is_loggedin

 This is how I call it: curl -u 
 a%40b.com:testhttp://127.0.0.1:8000/app/default/authenticate

  a...@b.com is the username, test is the password. This is returning False 
 when
 I expected True. What am I missing?


[web2py] error list:reference table

2010-12-15 Thread Luis Díaz
is't code:


db.define_table('tag',
Field('nombre', 'string', length=32, ondelete='CASCADE'),
format='%(nombre)s'
)


db.define_table('producto',
Field('nombre', 'string', length=64, ondelete='CASCADE'),
Field('codigo', 'string', length=10),
Field('tag', 'list:reference tag'),
Field('descripcion', 'text', length=512),
Field('faq', 'text', length=256),
Field('precio', 'decimal(6,2)'),
Field('user', db.auth_user, default=id_user, writable=False,
readable=False),
format = '%(nombre)s'
)

db.producto.tag.widget = SQLFORM.widgets.checkboxes.widget


error:
'int' object has no attribute 'split'

Version 1.89.5 (2010-11-21 22:12:54)


-- 
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


[web2py] Re: Web2py Application Exhibition ( Final Day! )

2010-12-15 Thread GoldenTiger
Yes, I remember, I'm short of time. I do not know if I will have time
to finish my app for tonight. It would be a pity, I like how my app
looks like , I'll try to do it tonight, but the rush is not funny, and
enjoying it is a rule.
anyway if the application does not end today, I can upload some small
applications that I have made, if only for participar.

How many submitted apps are?


Re: [web2py] Re: it case you missed it...

2010-12-15 Thread pbreit
Sorry but this requires a response.

Django and Rails (frameworks!!) are *far* better examples than the CMSs you 
point out.

BSD/MIT are definitionally better for users than GPL because they are more 
permissive. You'd have to prove some sort of unintended circumstance to 
dispute that for which there is no evidence.

Django and Rails have not suffered whatever Massimo is worried about. Quite 
the opposite, they have very large and active user bases.


[web2py] Re: Displaying Uploaded PDF Documents

2010-12-15 Thread azarkowsky
Thanks everybody for your suggestions!  I went with what Bruno
suggested and it worked like a champ!   I figured I wouldn't be able
to bypass the upload security mechanism, but the uploadfolder
parameter was the key piece I needed to get the desired behavior.

On Dec 14, 11:57 am, Bruno Rocha rochacbr...@gmail.com wrote:
 For security reasons, web2py does not expose the 'uploads' folder to the
 user, this folder can be accessed only by the 'download' function.

 You can do that:

 change the upload folder with 'uploadfolder' parameter.

 model
 db.define_table('pdfs',

 Field('file','upload',uploadfolder=request.folder+'static/pdfs')
                        )
 /model

 Create a viewer function wich redirects the user direct to the file, then,
 if the user has adobe acrobat plugin to view the file in browser, this file
 will be shown in the browser, else, will be downloaded.

 controller
 def viewer():
     row = db(db.pdfs.id==request.args(0)).select(db.pdfs.file).first()
     redirect(URL('static','pdfs',args=row.file))
 /controller

 Now you can call this as:

 http://127.0.0.1:8000/pdfs/default/viewer/3#record id

 which redirects the user 
 to:http://127.0.0.1:8000/pdfs/static/pdfs/pdfs.file.aaf5d3f7779841d0.6e6...

 --

 Bruno Rochahttp://about.me/rochacbruno/bio

 2010/12/14 azarkowsky azarkow...@gmail.com







  In my web2py application I'm allowing users to upload PDF documents
  (via an upload field) and then on another page I provide a download
  link, however, I think because of the file renaming security feature
  these PDF documents are truly being downloaded again (saved locally to
  each user's desktop) instead of just displayed in a new browser window
  as is the case with most other PDFs I encounter on other websites.  Is
  there any way to provide a link directly to a file that was uploaded
  so the browser can display it without having to download the file
  again?

  Thanks,
  Adam


Re: [web2py] Re: it case you missed it...

2010-12-15 Thread Branko Vukelic
On Wed, Dec 15, 2010 at 7:25 PM, pbreit pbreitenb...@gmail.com wrote:
 Sorry but this requires a response.

I was kind of hoping it did not, but there you go...

 You'd have to prove some sort of unintended circumstance to

No! YOU would have to give us a CONCRETE case where GPL+exception
setup may prevent someone adopting and using web2py. Otherwise, this
discussions previous conclusion (and that's that GPLv2 or GPLv3 will
be used in conjunction with a clearer, more precise exception clause)
still stands, and you may contribute usefully by answering Massimo's
request:

If you guys can come up with a better way to phrase the [exception
clause], and there is consensus, I will probably adopt it. I think we
all agree with the intended intentions.If you guys can come up with a
better way to phrase the license, and there is consensus, I will
probably adopt it. I think we all agree with the intended intentions.

That's the new topic right now, and please do not try to divert it
back to what's been already discussed for probably too long.

-- 
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: error list:reference table

2010-12-15 Thread mdipierro
Sorry you cannod use the SQLFORM.widgets.checkboxes.widget  with a
list:reference

On Dec 15, 12:11 pm, Luis Díaz diazluis2...@gmail.com wrote:
 is't code:

 db.define_table('tag',
     Field('nombre', 'string', length=32, ondelete='CASCADE'),
     format='%(nombre)s'
 )

 db.define_table('producto',
     Field('nombre', 'string', length=64, ondelete='CASCADE'),
     Field('codigo', 'string', length=10),
     Field('tag', 'list:reference tag'),
     Field('descripcion', 'text', length=512),
     Field('faq', 'text', length=256),
     Field('precio', 'decimal(6,2)'),
     Field('user', db.auth_user, default=id_user, writable=False,
 readable=False),
     format = '%(nombre)s'
 )

 db.producto.tag.widget = SQLFORM.widgets.checkboxes.widget

 error:
 'int' object has no attribute 'split'

 Version 1.89.5 (2010-11-21 22:12:54)

 --
 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=ar...


[web2py] Re: error list:reference table

2010-12-15 Thread mdipierro
... but you can use jquery plugin multiselect which comes by default
if you install plugin_wiki.

On Dec 15, 12:38 pm, mdipierro mdipie...@cs.depaul.edu wrote:
 Sorry you cannod use the SQLFORM.widgets.checkboxes.widget  with a
 list:reference

 On Dec 15, 12:11 pm, Luis Díaz diazluis2...@gmail.com wrote:

  is't code:

  db.define_table('tag',
      Field('nombre', 'string', length=32, ondelete='CASCADE'),
      format='%(nombre)s'
  )

  db.define_table('producto',
      Field('nombre', 'string', length=64, ondelete='CASCADE'),
      Field('codigo', 'string', length=10),
      Field('tag', 'list:reference tag'),
      Field('descripcion', 'text', length=512),
      Field('faq', 'text', length=256),
      Field('precio', 'decimal(6,2)'),
      Field('user', db.auth_user, default=id_user, writable=False,
  readable=False),
      format = '%(nombre)s'
  )

  db.producto.tag.widget = SQLFORM.widgets.checkboxes.widget

  error:
  'int' object has no attribute 'split'

  Version 1.89.5 (2010-11-21 22:12:54)

  --
  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=ar...




Re: [web2py] Re: error list:reference table

2010-12-15 Thread Luis Díaz
eliminating SQLFORM.widgets.checkboxes.widget

I still get the error

2010/12/15 mdipierro mdipie...@cs.depaul.edu

 ... but you can use jquery plugin multiselect which comes by default
 if you install plugin_wiki.

 On Dec 15, 12:38 pm, mdipierro mdipie...@cs.depaul.edu wrote:
  Sorry you cannod use the SQLFORM.widgets.checkboxes.widget  with a
  list:reference
 
  On Dec 15, 12:11 pm, Luis Díaz diazluis2...@gmail.com wrote:
 
   is't code:
 
   db.define_table('tag',
   Field('nombre', 'string', length=32, ondelete='CASCADE'),
   format='%(nombre)s'
   )
 
   db.define_table('producto',
   Field('nombre', 'string', length=64, ondelete='CASCADE'),
   Field('codigo', 'string', length=10),
   Field('tag', 'list:reference tag'),
   Field('descripcion', 'text', length=512),
   Field('faq', 'text', length=256),
   Field('precio', 'decimal(6,2)'),
   Field('user', db.auth_user, default=id_user, writable=False,
   readable=False),
   format = '%(nombre)s'
   )
 
   db.producto.tag.widget = SQLFORM.widgets.checkboxes.widget
 
   error:
   'int' object has no attribute 'split'
 
   Version 1.89.5 (2010-11-21 22:12:54)
 
   --
   Díaz Luis
   TSU Analisis de Sistemas
   Universidad de Carabobo
 
  http://web2pyfacil.blogspot.com/
   Facultad de Odontología
 http://www.odontologia.uc.edu.ve/index.php?option=com_contentview=ar...
 
 




-- 
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


[web2py] Result: None and I cannot figure out why

2010-12-15 Thread Johann Spies
Certain users may view data of the service providers in their provinces -
that is of tables with a service_provider field.

When I run this code on the command line all works as expected (data
contains a SQLTABLE).  However when I run it in the web-interface the result
is a page with

html
head
/head
body
None
/body
/html

This happens only when I log in as one of the provincial managers (using the
if...  in the controller below).
Other users with different permissions do not have the same problem.

Controller:

@auth.requires_login()
def show_data():
   tabel = request.vars.tabel #requested tablename in uppercase.
   tb = tabel.lower()
   isps = provinsiaal() # a function returning a list of isp-id's the
manager is supposed to see.
   if isps:
  # provincial manager
  if tb in tabelle_met_sp:   # tabelle_met_sp = tables using
the normal fieldname: 'service_provider'
 data =
SQLTABLE(db(db[tb].service_provider.belongs(isps)).select())
  else:
 if tb in tabelle_met_sp_onder_ander_naam.keys():
spnaam = tabelle_met_sp_onder_ander_naam[tb]
#tables using other fieldnames for the same data
data =
SQLTABLE(db(db[tb][spnaam].belongs(isps)).select())
 else:
data = 'Something is wrong'
   else:

  wie = db(db.auth_user.id ==
auth.user_id).select(db.auth_user.username).first()['username']
  try:
 sp = db(db.service_provider.name== wie).select(
db.service_provider.id).first()['id']
 if tb in tabelle_met_sp:
data=
plugin_wiki.widget('jqgrid',col_width=130,table=tabel.lower(),
 fieldname =
'service_provider',
 fieldvalue = sp,
 width=950)
 elif tb in tabelle_met_sp_onder_ander_naam.keys():
data=
plugin_wiki.widget('jqgrid',col_width=130,table=tabel.lower(),
 fieldname =
tabelle_met_sp_onder_ander_naam[tb],
 fieldvalue = sp,
 width=950)
 else:
data =
plugin_wiki.widget('jqgrid',col_width=130,table=tabel.lower(),
  width=950)
  except:
 data =
plugin_wiki.widget('jqgrid',col_width=130,table=tabel.lower(),
   width=950)
  return dict(data=data,tabel=tabel)

Regards
Johann

-- 
 May grace and peace be yours in abundance through the full knowledge of God
and of Jesus our Lord!  His divine power has given us everything we need for
life and godliness through the full knowledge of the one who called us by
his own glory and excellence.
2 Pet. 1:2b,3a


[web2py] Re: it case you missed it...

2010-12-15 Thread VP
I do not think that GPL is the determining factor of why Django or
Rails are popular.

It is not clear that GPL scares off potential users.   I will go out
on the limp to say that most potential users of web2py will be in the
capacity of app developers, not framework developers. They might be
scared if they don't understand it as intended, which is why some said
it needs to be clarified.   Once the licensing is clear, they have
nothing to be scared about.

As for framework developers, sure GPL is not permissive for commercial
intentions.  So, if you want to branch of web2py, customizing the
framework, possibly improving it, and want to close source, then no
you can't do that with GPL.   But those cases are few, and arguably
not what most potential users care about.


On Dec 15, 1:07 pm, pbreit pbreitenb...@gmail.com wrote:
 It's not worthwhile fiddling around with the exception since the GPL stigma
 will remain.

 It's clear that GPL scares off potential users.

 I come from a background of relentlessly lowering barriers to adoption. I
 would very much like to see Web2py usage go way up.


[web2py] Resize images using PIL

2010-12-15 Thread Andrew Evans
I have been looking into how to resize images on the fly. For some reason my
code isn't working

my controller consists of the following code

def myImage():
if len(request.args) == 1:
return response.download(request, db)
else:
im = request.args(0)
im = os.path.join(request.folder, uploads, im)
width = request.args(1)
height = request.args(2)
size = width, height
myImage = Image.open(im)

resized_image = myImage.thumbnail((size), Image.ANTIALIAS)
resized_image.save(myImage.format)
return resized_image

The width and height I am passing as arguments from view what am I doing
wrong with my image resize code


Any ideas

*cheers


Re: [web2py] Re: it case you missed it...

2010-12-15 Thread pbreit
It's not worthwhile fiddling around with the exception since the GPL stigma 
will remain.

It's clear that GPL scares off potential users.

I come from a background of relentlessly lowering barriers to adoption. I 
would very much like to see Web2py usage go way up.


Re: [web2py] Re: it case you missed it...

2010-12-15 Thread Thadeus Burgess
An excerpt: I think this sums it up.

---

GPL is a tool that uses copyright to enforce software freedom, but… in order
to be able to enforce that there must be a copyright holder that can take
action. The FSF is aware of this and is carefully requiring contributors and
their employers (!) to sign legal papers of copyright transfer:
http://www.fsf.org/licensing/licenses/why-assign.html

The problem is that most GPL projects can not afford to force potential
contributors to get their employers to sign legal papers as it will reduce
the number of contributions to 0 and therefore the copyright to their
projects is either dispersed among the different contributors or even worse,
is questionably held by a single person or entity (with emphasis on
questionably).

-


Thadeus




On Wed, Dec 15, 2010 at 1:21 PM, VP vtp2...@gmail.com wrote:

 I do not think that GPL is the determining factor of why Django or
 Rails are popular.

 It is not clear that GPL scares off potential users.   I will go out
 on the limp to say that most potential users of web2py will be in the
 capacity of app developers, not framework developers. They might be
 scared if they don't understand it as intended, which is why some said
 it needs to be clarified.   Once the licensing is clear, they have
 nothing to be scared about.

 As for framework developers, sure GPL is not permissive for commercial
 intentions.  So, if you want to branch of web2py, customizing the
 framework, possibly improving it, and want to close source, then no
 you can't do that with GPL.   But those cases are few, and arguably
 not what most potential users care about.


 On Dec 15, 1:07 pm, pbreit pbreitenb...@gmail.com wrote:
  It's not worthwhile fiddling around with the exception since the GPL
 stigma
  will remain.
 
  It's clear that GPL scares off potential users.
 
  I come from a background of relentlessly lowering barriers to adoption. I
  would very much like to see Web2py usage go way up.



Re: [web2py] Re: error list:reference table

2010-12-15 Thread Luis Díaz
empty database
and the error disappears.

may be in the tests were corrupted data

could show me how to do what I need without having to install plugin_wiki?


2010/12/15 Luis Díaz diazluis2...@gmail.com

 eliminating SQLFORM.widgets.checkboxes.widget

 I still get the error

 2010/12/15 mdipierro mdipie...@cs.depaul.edu

 ... but you can use jquery plugin multiselect which comes by default
 if you install plugin_wiki.

 On Dec 15, 12:38 pm, mdipierro mdipie...@cs.depaul.edu wrote:
  Sorry you cannod use the SQLFORM.widgets.checkboxes.widget  with a
  list:reference
 
  On Dec 15, 12:11 pm, Luis Díaz diazluis2...@gmail.com wrote:
 
   is't code:
 
   db.define_table('tag',
   Field('nombre', 'string', length=32, ondelete='CASCADE'),
   format='%(nombre)s'
   )
 
   db.define_table('producto',
   Field('nombre', 'string', length=64, ondelete='CASCADE'),
   Field('codigo', 'string', length=10),
   Field('tag', 'list:reference tag'),
   Field('descripcion', 'text', length=512),
   Field('faq', 'text', length=256),
   Field('precio', 'decimal(6,2)'),
   Field('user', db.auth_user, default=id_user, writable=False,
   readable=False),
   format = '%(nombre)s'
   )
 
   db.producto.tag.widget = SQLFORM.widgets.checkboxes.widget
 
   error:
   'int' object has no attribute 'split'
 
   Version 1.89.5 (2010-11-21 22:12:54)
 
   --
   Díaz Luis
   TSU Analisis de Sistemas
   Universidad de Carabobo
 
  http://web2pyfacil.blogspot.com/
   Facultad de Odontología
 http://www.odontologia.uc.edu.ve/index.php?option=com_contentview=ar...
 
 




 --
 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




-- 
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: it case you missed it...

2010-12-15 Thread Branko Vukelic
On Wed, Dec 15, 2010 at 8:07 PM, pbreit pbreitenb...@gmail.com wrote:
 It's clear that GPL scares off potential users.

That bug is already marked invalid. You'd have to give us a stack
trace if you want to reopen it, and preferably attach a working patch.
Please also note the version of web2py that you are using.


-- 
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: Resize images using PIL

2010-12-15 Thread villas
Hi Andrew,

I don't know whether you saw this:

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

Some of that code was definitely working OK,  so you might be able to
learn from it.  Anyhow,  I hope it helps.

-David

On Dec 15, 7:44 pm, Andrew Evans randra...@gmail.com wrote:
 I have been looking into how to resize images on the fly. For some reason my
 code isn't working

 my controller consists of the following code

 def myImage():
     if len(request.args) == 1:
         return response.download(request, db)
     else:
         im = request.args(0)
         im = os.path.join(request.folder, uploads, im)
         width = request.args(1)
         height = request.args(2)
         size = width, height
         myImage = Image.open(im)

     resized_image = myImage.thumbnail((size), Image.ANTIALIAS)
     resized_image.save(myImage.format)
     return resized_image

 The width and height I am passing as arguments from view what am I doing
 wrong with my image resize code

 Any ideas

 *cheers


[web2py] Re: auth model

2010-12-15 Thread Rick
Thanks for the advice. This code seems to work:

**
from gluon.settings import settings
from gluon.tools import *

# if running on Google App Engine
if settings.web2py_runtime_gae:
from gluon.contrib.gql import *
# connect to Google BigTable
db = DAL('gae')
# and store sessions there
session.connect(request, response, db=db)
else:
# if not, use SQLite or other DB
db = DAL(sqlite://db.db)

db.define_table('todo',
Field('time'),
Field('thing'))

auth = Auth(globals(), db)

db.define_table(
auth.settings.table_user_name,
Field('name'),
Field('password'))


auth.define_tables()

custom_auth_table = db[auth.settings.table_user_name] # get the
custom_auth_table
**

...but now I try to write a kind of log in/out interface in views/
layout.html. I don't know how it should look like in the case of
custom auth. I tried with this that that gave an error mesage:

{{if not auth.user and not request.function=='user':}}
{{=atuh.login(next=URL(r=request,args=args))}}
{{pass}}

Any ideas?


On Dec 15, 2:37 am, pbreit pbreitenb...@gmail.com wrote:
 To customize auth, have a look 
 at:http://web2py.com/book/default/chapter/08#Customizing-Auth

 For one thing, the table definitely needs to be placed between auth =
 Auth(globals(), db) and auth.define_tables()


[web2py] Re: problem with request_reset_password?

2010-12-15 Thread kevski
I found the problem. I think someone broke backward compatibility. A
new field was added to auth_user after I started the project. I think
the field was added to improve the security of the reset password
process so that's a good thing. Why this broken compatibility wasn't
disclosed and explained is a mystery. I discovered it by creating a
new project with the latest code and comparing the auth_user table to
what I had.

Anyway, for anyone experiencing this issue you need to add a field to
auth_user:

  Field('reset_password_key', length=512, default='', writable=False,
readable=False)


On Dec 14, 9:02 am, DenesL denes1...@yahoo.ca wrote:
 As you suspect, the error is caused by the missing arguments **b, but
 it is hard to tell why without seeing your code.

 On Dec 13, 5:58 pm, kevski corbett.ke...@gmail.com wrote:



  I snipped a lot of the intermediate stuff out but basically I try to
  use the lost_password link on the login page and get the following
  traceback. Looking at the sql statement it appears that the parameters
  for SET are missing.

  from below: Function argument list: (*a=('UPDATE auth_user SET WHERE
  auth_user.id=806;',), **b={})

  I have a custom auth_user table in that I added some fields.

  Other data: I can set a new password by using change_password after
  logging in.

  Let me know what kind of additional information might help.

  Pieces of the traceback information.

  ***

  web2py Version 1.89.5 (2010-11-21 22:12:54)

  Error traceback:

  Traceback (most recent call last):
    File gluon/restricted.py, line 188, in restricted
    File E:/web2py/applications/psc/controllers/default.py, line 55,
  in module
    File gluon/globals.py, line 96, in lambda
    File E:/web2py/applications/psc/controllers/default.py, line 34,
  in user
    File gluon/tools.py, line 1038, in __call__
    File gluon/tools.py, line 1998, in request_reset_password
    File gluon/sql.py, line 3416, in lambda
    File gluon/sql.py, line 3551, in update_record
    File gluon/sql.py, line 3506, in update
    File gluon/sql.py, line 965, in lambda
  OperationalError: near WHERE: syntax error

  Error snapshot
  Detailed traceback description

      * Exception: class 'sqlite3.OperationalError'(near WHERE:
  syntax error)
      * Python 2.5.4: E:\web2py\web2py.exe

  File E:\web2py\gluon\sql.py in lambda at line 965
  [ code | arguments | variables ]
  Function argument list: (*a=('UPDATE auth_user SET WHERE
  auth_user.id=806;',), **b={})- Hide quoted text -

 - Show quoted text -


[web2py] RMS about Chrome OS and Cloud Computing

2010-12-15 Thread Michele Comitini
RMS being quite rough as usual, but in the end he has some good
points... think twice before using web2py on GAE!! :-D

http://www.guardian.co.uk/technology/blog/2010/dec/14/chrome-os-richard-stallman-warning


Re: [web2py] Re: error list:reference table

2010-12-15 Thread Bruno Rocha

 could show me how to do what I need without having to install plugin_wiki?


http://web2py.com/plugins/default/multiselect


Re: [web2py] RMS about Chrome OS and Cloud Computing

2010-12-15 Thread Branko Vukelic
On Wed, Dec 15, 2010 at 9:56 PM, Michele Comitini
michele.comit...@gmail.com wrote:
 RMS being quite rough as usual, but in the end he has some good
 points... think twice before using web2py on GAE!! :-D

 http://www.guardian.co.uk/technology/blog/2010/dec/14/chrome-os-richard-stallman-warning


He's been saying that ever since Google announced Chrome OS.

-- 
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] Re: Unable to create application on WebFaction

2010-12-15 Thread Bruno Rocha
I solved the problem.

I dont know why, but web2py in webfaction does not creates the 'deposit'
folder.

I just create myself.

on ssh:
cd webapps/app/web2py
mkdir deposit

Problem solved!

2010/12/13 annet annet.verm...@gmail.com

 Hi Dave,

 I don't know what causes this problem either, I always use the
 procedure you describe above, it works, that's why I didn't bother the
 find out why the standard procedure doesn't work.

 Annet




-- 

Bruno Rocha
http://about.me/rochacbruno/bio


Re: [web2py] Re: Unable to create application on WebFaction

2010-12-15 Thread Jonathan Lundell
On Dec 15, 2010, at 1:11 PM, Bruno Rocha wrote:
 I solved the problem.
 
 I dont know why, but web2py in webfaction does not creates the 'deposit' 
 folder.
 
 I just create myself.
 
 on ssh:  
 cd webapps/app/web2py
 mkdir deposit
 
 Problem solved!

web2py will create deposit/ for you, but only when it's started from the 
command line. 

Likewise creating site-packages *and* adding it to sys.path. Indeed, grep the 
source for site-packages; the logic definitely needs work.

Perhaps this and some of the other startup logic ought to be factored out and 
then also called by wsgihandler and the other handlers. I don't see why one 
wouldn't want the same sequence everywhere (though the cgi and gae handlers 
probably want to have a more efficient test for whether the standard folders 
have been created, rather than testing each one) (since they run on every 
request).



Re: [web2py] Re: error list:reference table

2010-12-15 Thread Luis Díaz
thanks for the help Massimo Di Pierro and Bruno Rocha

2010/12/15  rochacbr...@gmail.com



 could show me how to do what I need without having to install plugin_wiki
 ?


 http://web2py.com/plugins/default/multiselect




-- 
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: it case you missed it...

2010-12-15 Thread Anthony

On Wednesday, December 15, 2010 3:11:27 PM UTC-5, Branko Vukelic wrote: 

 On Wed, Dec 15, 2010 at 8:07 PM, pbreit wrote:

 

  It's clear that GPL scares off potential users.

 

 That bug is already marked invalid. You'd have to give us a stack trace if 
 you want to reopen it, and preferably attach a working patch. Please also 
 note the version of web2py that you are using.

 
I like GPL plus a (clarified) exception, but I wouldn't exactly say pbreit's 
concerns are invalid. There clearly is some history of confusion and concern 
among web2py users/developers and their clients:
 
https://groups.google.com/group/web2py/msg/ba5277320933a72a
https://groups.google.com/group/web2py/msg/de8b75aa2efe2fa5
http://groups.google.com/group/django-users/msg/87b5cfc637c55433
http://www.reddit.com/r/Python/comments/ddg79/can_web2py_applications_be_provided_to_end_users
http://www.reddit.com/r/Python/comments/ej0p1/new_standalone_web2py_database_abstraction_layer/c18grty
http://jacobian.org/writing/gpl-questions/ (not web2py-specific)
 
And of course, there's no telling how many potential users saw GPL and 
just moved on, without asking a question on the list, reddit, etc. Although 
the precise empirical impact of the GPL on adoption has not been 
established, nor has the real risk of a commercial fork (mitigation of which 
appears to be a primary motivation for using GPL).
 
Another consideration is the ability to use individual components of web2py 
within commercial apps. For example, the new standalone DAL is GPL'ed. If 
someone uses the DAL in an application that does not otherwise use the rest 
of the web2py framework, would they have to GPL the application (the current 
web2py license exception doesn't appear to cover that case)?
 
Of course, once we go more permissive (e.g., LGPL, BSD, MIT), it will be 
hard to go back, so we should be cautious with any change. Trying to improve 
the clarity of the current exceptions and the way we communicate them (e.g., 
explicitly and prominently stating it is dual licensed) is probably a good 
first step. Maybe that will be enough to resolve the concerns without 
resorting to a more permissive license.
 
Anthony
 
 


[web2py] Re: administrator controller

2010-12-15 Thread Christopher Steel
I agree 100%

On Dec 14, 10:15 pm, mdipierro mdipie...@cs.depaul.edu wrote:
 I think we need a better public repository for plugins so that people
 can contribute.

 On Dec 13, 11:52 am, Christopher Steel chris.st...@gmail.com wrote:

  it is literally the same plugin but with a menu item... I was going to
  add some more features but had to move on to other projects...

  On Dec 13, 2:01 am, mdipierro mdipie...@cs.depaul.edu wrote:

   can you tell us more? What does it do?

   Massimo

   On Dec 13, 12:20 am, Christopher Steel chris.st...@gmail.com wrote: 
   Here is the same one, I added a menu item. but I have not touched it
in a while

   http://code.google.com/p/uc-admin/

I would be interested in any updates etc. as well..

Chris


[web2py] Re: administrator controller

2010-12-15 Thread Christopher Steel
Awesome, Thanks Martin!

On Dec 15, 6:27 am, Martín Mulone mulone.mar...@gmail.com wrote:
 I have no problem.

 2010/12/15 mdipierro mdipie...@cs.depaul.edu:



  If we can repurpose Martin's app and he is willing to maintain it,
  that would be the best solution.

  I can also split appliances. Not hard to do but we need a way to vote
  and keep track of versions.

  Massimo

  On Dec 14, 9:48 pm, Bruno Rocha rochacbr...@gmail.com wrote:
  2010/12/15 mdipierro mdipie...@cs.depaul.edu

   I think we need a better public repository for plugins so that people
   can contribute.

  web2py.com/appliances can be splited in categories
  ['Applications','modules','plugins']

  or

  @martin created an application for WAE (http://w2pexhibition.appspot.com/)
  source is here:http://bitbucket.org/mulonemartin/exhibition

  Someone can publish it in GAE to host applications, plugins, modules etc.
  and that could replace /appliances [or if you prefer host it under
  web2py.com/something]

  What about?

  Bruno Rochahttp://about.me/rochacbruno/bio

 --
 My blog: http://martin.tecnodoc.com.ar
 My portfolio *spanish*: http://www.tecnodoc.com.ar
 Checkout my last proyect instant-press:http://www.instant2press.com


[web2py] Creating database tables tutorial?

2010-12-15 Thread Hybride
Hi everyone,

Am currently using SQLite3 but have no issues moving over to MySQL,
whichever is easier I guess. I've been trying to create the database
tables using the examples on web2py (like the whole pets/dog example),
copying and pasting the code from that example into my own
application, then trying to generate the tables. I've also tried to
create my own tables, with the code:

db.define_table('person',Field('person'))

Placing that in the controller, and letting it go free. I think you
can guess that it was unsuccessful. Is there any tutorial on web2py
that shows how to step-by-step create the tables? Do you have to first
create the tables in the database itself, then use define_table (I've
tried, unsuccessful)?

In any case, if anyone could point me in the right direction to said
tutorials (or give me the gist of it themselves, in MySQL preferably),
that would be greatly appreciated.


[web2py] Re: administrator controller

2010-12-15 Thread Christopher Steel
People can (and will) still host code elsewhere, Martins app allows
for a snap shot of a working application along with links to
wherever the code is hosted.

C

On Dec 15, 7:03 am, Luther Goh Lu Feng elf...@yahoo.com wrote:
 I wonder if the plugins will be better hosted on services like github
 and bitbucket? Will it be easier to fork and contribute?

 On Dec 15, 7:27 pm, Martín Mulone mulone.mar...@gmail.com wrote:

  I have no problem.

  2010/12/15 mdipierro mdipie...@cs.depaul.edu:

   If we can repurpose Martin's app and he is willing to maintain it,
   that would be the best solution.

   I can also split appliances. Not hard to do but we need a way to vote
   and keep track of versions.

   Massimo

   On Dec 14, 9:48 pm, Bruno Rocha rochacbr...@gmail.com wrote:
   2010/12/15 mdipierro mdipie...@cs.depaul.edu

I think we need a better public repository for plugins so that people
can contribute.

   web2py.com/appliances can be splited in categories
   ['Applications','modules','plugins']

   or

   @martin created an application for WAE 
   (http://w2pexhibition.appspot.com/)
   source is here:http://bitbucket.org/mulonemartin/exhibition

   Someone can publish it in GAE to host applications, plugins, modules etc.
   and that could replace /appliances [or if you prefer host it under
   web2py.com/something]

   What about?

   Bruno Rochahttp://about.me/rochacbruno/bio

  --
  My blog: http://martin.tecnodoc.com.ar
  My portfolio *spanish*: http://www.tecnodoc.com.ar
  Checkout my last proyect instant-press:http://www.instant2press.com


[web2py] Re: Creating database tables tutorial?

2010-12-15 Thread JmiXIII
I suggest you to have a look there :
http://web2py.com/examples/default/examples
= go to example 29

Your first try is a bit 'curious' and I dont think it this what you
want to do.
Another easy way to experiment web2py is using the wizard:
_ Launch the wizard
_ Create tables (read the comments)
_ Create the fields

= generate and have a look to db_wizard.py



On 15 déc, 23:02, Hybride mshybr...@gmail.com wrote:
 Hi everyone,

 Am currently using SQLite3 but have no issues moving over to MySQL,
 whichever is easier I guess. I've been trying to create the database
 tables using the examples on web2py (like the whole pets/dog example),
 copying and pasting the code from that example into my own
 application, then trying to generate the tables. I've also tried to
 create my own tables, with the code:

 db.define_table('person',Field('person'))

 Placing that in the controller, and letting it go free. I think you
 can guess that it was unsuccessful. Is there any tutorial on web2py
 that shows how to step-by-step create the tables? Do you have to first
 create the tables in the database itself, then use define_table (I've
 tried, unsuccessful)?

 In any case, if anyone could point me in the right direction to said
 tutorials (or give me the gist of it themselves, in MySQL preferably),
 that would be greatly appreciated.


Re: [web2py] Web2py Application Exhibition ( Final Day! )

2010-12-15 Thread Bruno Rocha
powerTable plugin sent!

Vote here: http://w2pexhibition.appspot.com/exhibition/default/index/329001

Live demo and download here: http://powertable.blouweb.com/

ALPHA 0.0.0.0.0.0 Version (too much working in progress), I've been working
on this on my free time for 5 days, Tests and suggestions needed.





2010/12/15 NetAdmin mr.netad...@gmail.com


  Hello All,

  THIS IS THE FINAL DAY!

  The deadline for submissions for the
  Web2py Application Exhibition is December 15th 2010

  You can start submitting and voting for the entries
  for the Web2py Application Exhibition Version 2.0

  To get started, go to the following link...
  http://w2pexhibition.appspot.com/

  There is a sample application entry by Martin Mulone
  that will give you an idea of how to use the
  voting application.

  Many thanks to Martin Mulone for coding the app
  to handle submission and voting!

  Good Luck!

  Mr.NetAdmin




-- 

Bruno Rocha
http://about.me/rochacbruno/bio


[web2py] Re: Web2py Application Exhibition ( Version 2.0 )

2010-12-15 Thread selecta
I sure hope you got my mail o_O

If not here the most important thing
hg clone http://tlc2.hg.sourceforge.net:8000/hgroot/tlc2/tlc2


On Nov 16, 4:32 pm, NetAdmin mr.netad...@gmail.com wrote:
 Rahul,

 Applications without source code will not be accepted.

 Maybe in the future we can have a closed source exhibition.

 Mr.NetAdmin

 On Nov 14, 11:29 pm, Rahul rahul.dhak...@gmail.com wrote:



  Hi,
      Can we submit closed w2p applications without source code? Any
  specific rules if one does not want to expose the code?

  Rahul

  On Nov 12, 5:23 pm, selecta gr...@delarue-berlin.de wrote:

   How do I submit? Should I just send you (NetAdmin) the code by email?
   I am working on the project constantly, will you accept updates after
   the first submission? Or should I wait till the deadline and submit
   what I got until then?

   On Nov 11, 9:21 pm, GoldenTiger goldenboy...@gmail.com wrote:

I'll be there, actually I am devoting most of my time studyingweb2py.
I hope to do a niceapplication.
:)

On 8 nov, 20:20, Mr admin mr.netad...@gmail.com wrote:

 Sure!

 Plugins are just miniature applications right?  :-)

 Mr.NetAdmin

 On Mon, Nov 8, 2010 at 1:13 PM, mr.freeze nat...@freezable.com 
 wrote:
  Can we submit be a plugin?

  On Nov 3, 3:18 pm, NetAdmin mr.netad...@gmail.com wrote:
  Web2pyApplicationExhibitionVersion2.0

   Do you have aWeb2pyapp that you'd like to show the world?
   If so, you may be interested in theWeb2pyApplicationExhibition.

   The WAE is a way to...
   1. Demonstrate what can be done withWeb2py.
   2. Share and learn about usefulweb2py, python, Javascript, jQuery
   etc. techniques.
   3. Earn some money toward that new  you've been craving.

   Projects will be judged in the following areas.

   Ease of use
   Usefulness
   Visual Appeal

   The Rules
   1. Applications must be submitted no later than December 15, 2010
   2. Source must be included with your submissions.
   3. If theapplicationis written by a team, Massimo can NOT be part 
   of
   the team.
   4. After a 2 week review period, on December 31, 2010, the winners
   will
   be announced on theweb2py-users list.
   5. The 1st place winner will receive $100 US Dollars, 2nd place 
   will
   receive $50
   6. You must enjoy usingWeb2py!
   7. Previous winners must wait 365 days before being eligible to 
   win
   again.

   Martin Mulone, the winner of the lastExhibitionwith his entry 
   titled
   Instant Press, has volunteered to help tally your votes using an
  application
   he wrote. ( UsingWeb2pyof course! )

   Submissions must be mailed to mr.netad...@gmail.com

   Good Luck!

   Mr.NetAdmin at gmail.com


Re: [web2py] grid

2010-12-15 Thread Bruno Rocha
Live demo and download here: http://powertable.blouweb.com/

ALPHA 0.0.0.0.0.0 Version (too much working in progress),

Tests and suggestions needed, something can broke, fails or whatever, this
is teh first plugin I wrote, and I have too much to enable on this.

I am going to publish it to BitBucket and I'll need contributors to work
with aesthetics and server side data processing JSON/XML

-- 

Bruno Rocha
http://about.me/rochacbruno/bio


[web2py] Re: Web2py Application Exhibition ( Final Day! )

2010-12-15 Thread selecta
waaah i send you a mail with the link to the source and a description,
do i also need to login to  http://w2pexhibition.appspot.com/ and
upload it? I tried it but it does not work for me, I only have a
google account and that wont redirect or do anything :( I hope you
also accept the email like you said in the original post o_O

On Dec 15, 3:45 pm, NetAdmin mr.netad...@gmail.com wrote:
  Hello All,

  THIS IS THE FINAL DAY!

  The deadline for submissions for the
  Web2py Application Exhibition is December 15th 2010

  You can start submitting and voting for the entries
  for the Web2py Application Exhibition Version 2.0

  To get started, go to the following link...
  http://w2pexhibition.appspot.com/

  There is a sample application entry by Martin Mulone
  that will give you an idea of how to use the
  voting application.

  Many thanks to Martin Mulone for coding the app
  to handle submission and voting!

  Good Luck!

  Mr.NetAdmin


[web2py] Re: grid

2010-12-15 Thread JmiXIII
I'm just discovering it ...
Just a remark : here = http://powertable.blouweb.com/products ,
shouldn't category field render a represent (category.name) instead of
category.id ?
Not enough time to test a local instance but seems promising...

On 15 déc, 23:52, Bruno Rocha rochacbr...@gmail.com wrote:
 Live demo and download here:http://powertable.blouweb.com/

 ALPHA 0.0.0.0.0.0 Version (too much working in progress),

 Tests and suggestions needed, something can broke, fails or whatever, this
 is teh first plugin I wrote, and I have too much to enable on this.

 I am going to publish it to BitBucket and I'll need contributors to work
 with aesthetics and server side data processing JSON/XML

 --

 Bruno Rochahttp://about.me/rochacbruno/bio


[web2py] Re: Web2py Application Exhibition ( Version 2.0 )

2010-12-15 Thread JmiXIII
Hello ,

I've tried to install your tlc2 on 1.89.5,
here is the error I get :
url : http://127.0.0.1:8080/tlc2/default/index

Traceback (most recent call last):
  File /home/sylvain/web2py/gluon/restricted.py, line 188, in
restricted
exec ccode in environment
  File /home/sylvain/web2py/applications/tlc2/models/
db_booleannet.py, line 23, in module
Field('rule', db.booleannet_updaterule, requires = IS_IN_DB(db,
'booleannet_updaterule.id', '%(name)s')),
  File /home/sylvain/web2py/gluon/validators.py, line 380, in
__init__
fields = [self.dbset.db[ktable][k] for k in ks]
  File /home/sylvain/web2py/gluon/dal.py, line 3644, in __getitem__
return dict.__getitem__(self, str(key))
KeyError: 'name'


On 15 déc, 23:51, selecta gr...@delarue-berlin.de wrote:
 I sure hope you got my mail o_O

 If not here the most important thing
 hg clonehttp://tlc2.hg.sourceforge.net:8000/hgroot/tlc2/tlc2

 On Nov 16, 4:32 pm, NetAdmin mr.netad...@gmail.com wrote:

  Rahul,

  Applications without source code will not be accepted.

  Maybe in the future we can have a closed source exhibition.

  Mr.NetAdmin

  On Nov 14, 11:29 pm, Rahul rahul.dhak...@gmail.com wrote:

   Hi,
       Can we submit closed w2p applications without source code? Any
   specific rules if one does not want to expose the code?

   Rahul

   On Nov 12, 5:23 pm, selecta gr...@delarue-berlin.de wrote:

How do I submit? Should I just send you (NetAdmin) the code by email?
I am working on the project constantly, will you accept updates after
the first submission? Or should I wait till the deadline and submit
what I got until then?

On Nov 11, 9:21 pm, GoldenTiger goldenboy...@gmail.com wrote:

 I'll be there, actually I am devoting most of my time studyingweb2py.
 I hope to do a niceapplication.
 :)

 On 8 nov, 20:20, Mr admin mr.netad...@gmail.com wrote:

  Sure!

  Plugins are just miniature applications right?  :-)

  Mr.NetAdmin

  On Mon, Nov 8, 2010 at 1:13 PM, mr.freeze nat...@freezable.com 
  wrote:
   Can we submit be a plugin?

   On Nov 3, 3:18 pm, NetAdmin mr.netad...@gmail.com wrote:
   Web2pyApplicationExhibitionVersion2.0

Do you have aWeb2pyapp that you'd like to show the world?
If so, you may be interested in theWeb2pyApplicationExhibition.

The WAE is a way to...
1. Demonstrate what can be done withWeb2py.
2. Share and learn about usefulweb2py, python, Javascript, 
jQuery
etc. techniques.
3. Earn some money toward that new  you've been craving.

Projects will be judged in the following areas.

Ease of use
Usefulness
Visual Appeal

The Rules
1. Applications must be submitted no later than December 15, 
2010
2. Source must be included with your submissions.
3. If theapplicationis written by a team, Massimo can NOT be 
part of
the team.
4. After a 2 week review period, on December 31, 2010, the 
winners
will
be announced on theweb2py-users list.
5. The 1st place winner will receive $100 US Dollars, 2nd place 
will
receive $50
6. You must enjoy usingWeb2py!
7. Previous winners must wait 365 days before being eligible to 
win
again.

Martin Mulone, the winner of the lastExhibitionwith his entry 
titled
Instant Press, has volunteered to help tally your votes using 
an
   application
he wrote. ( UsingWeb2pyof course! )

Submissions must be mailed to mr.netad...@gmail.com

Good Luck!

Mr.NetAdmin at gmail.com




Re: [web2py] Re: it case you missed it...

2010-12-15 Thread Branko Vukelic
 - Original Message -
 From: Anthony
 Sent: 12/15/10 10:54 PM
 To: web2py@googlegroups.com
 Subject: Re: [web2py] Re: it case you missed it...

 I like GPL plus a (clarified) exception, but I wouldn't exactly say pbreit's 
 concerns are invalid. There clearly is some history of confusion and concern 
 among web2py users/developers and their clients:

Point is, it's been discussed over and over, and over, and over... in a more-or 
less the same manner, too. Just saying BSD! won't make it BSD. I think that's 
become clear. And it's become painfully obvious that we are all divided between 
GPL and anything-but-GPL, and we have come to the conclusion that it's 
Massimo's call. Massimo called GPL, because we have also clarified that there 
isn't a technical threat to the end users. TECHNICALLY speaking, nobody should 
really be concerned as long as they are aware of the exception and agree to it. 
So, repeating discussion, using Gplophobia or Gnuphobia as the pivot is not 
productive, and it would go on like this forever.

Branko

p.s. Yes I've finally fully switched to my GMX account. It's the same me. :)


[web2py] Re: Web2py Application Exhibition ( Version 2.0 )

2010-12-15 Thread selecta
thanks, i fixed it, strangely this never resulted in an error at my
side

anyway you will need to link/move everything form the site-packages
directory into the /web2py/site-packages directory
the app is not inteded to be installed from source, but rather as a
complete package with web2py included
you will find a build script that creates these packages in
make_release

On Dec 16, 12:36 am, JmiXIII sylvn.p...@gmail.com wrote:
 Hello ,

 I've tried to install your tlc2 on 1.89.5,
 here is the error I get :
 url :http://127.0.0.1:8080/tlc2/default/index

 Traceback (most recent call last):
   File /home/sylvain/web2py/gluon/restricted.py, line 188, in
 restricted
     exec ccode in environment
   File /home/sylvain/web2py/applications/tlc2/models/
 db_booleannet.py, line 23, in module
     Field('rule', db.booleannet_updaterule, requires = IS_IN_DB(db,
 'booleannet_updaterule.id', '%(name)s')),
   File /home/sylvain/web2py/gluon/validators.py, line 380, in
 __init__
     fields = [self.dbset.db[ktable][k] for k in ks]
   File /home/sylvain/web2py/gluon/dal.py, line 3644, in __getitem__
     return dict.__getitem__(self, str(key))
 KeyError: 'name'

 On 15 déc, 23:51, selecta gr...@delarue-berlin.de wrote:



  I sure hope you got my mail o_O

  If not here the most important thing
  hg clonehttp://tlc2.hg.sourceforge.net:8000/hgroot/tlc2/tlc2

  On Nov 16, 4:32 pm, NetAdmin mr.netad...@gmail.com wrote:

   Rahul,

   Applications without source code will not be accepted.

   Maybe in the future we can have a closed source exhibition.

   Mr.NetAdmin

   On Nov 14, 11:29 pm, Rahul rahul.dhak...@gmail.com wrote:

Hi,
    Can we submit closed w2p applications without source code? Any
specific rules if one does not want to expose the code?

Rahul

On Nov 12, 5:23 pm, selecta gr...@delarue-berlin.de wrote:

 How do I submit? Should I just send you (NetAdmin) the code by email?
 I am working on the project constantly, will you accept updates after
 the first submission? Or should I wait till the deadline and submit
 what I got until then?

 On Nov 11, 9:21 pm, GoldenTiger goldenboy...@gmail.com wrote:

  I'll be there, actually I am devoting most of my time 
  studyingweb2py.
  I hope to do a niceapplication.
  :)

  On 8 nov, 20:20, Mr admin mr.netad...@gmail.com wrote:

   Sure!

   Plugins are just miniature applications right?  :-)

   Mr.NetAdmin

   On Mon, Nov 8, 2010 at 1:13 PM, mr.freeze nat...@freezable.com 
   wrote:
Can we submit be a plugin?

On Nov 3, 3:18 pm, NetAdmin mr.netad...@gmail.com wrote:
Web2pyApplicationExhibitionVersion2.0

 Do you have aWeb2pyapp that you'd like to show the world?
 If so, you may be interested in 
 theWeb2pyApplicationExhibition.

 The WAE is a way to...
 1. Demonstrate what can be done withWeb2py.
 2. Share and learn about usefulweb2py, python, Javascript, 
 jQuery
 etc. techniques.
 3. Earn some money toward that new  you've been 
 craving.

 Projects will be judged in the following areas.

 Ease of use
 Usefulness
 Visual Appeal

 The Rules
 1. Applications must be submitted no later than December 15, 
 2010
 2. Source must be included with your submissions.
 3. If theapplicationis written by a team, Massimo can NOT be 
 part of
 the team.
 4. After a 2 week review period, on December 31, 2010, the 
 winners
 will
 be announced on theweb2py-users list.
 5. The 1st place winner will receive $100 US Dollars, 2nd 
 place will
 receive $50
 6. You must enjoy usingWeb2py!
 7. Previous winners must wait 365 days before being eligible 
 to win
 again.

 Martin Mulone, the winner of the lastExhibitionwith his entry 
 titled
 Instant Press, has volunteered to help tally your votes 
 using an
application
 he wrote. ( UsingWeb2pyof course! )

 Submissions must be mailed to mr.netad...@gmail.com

 Good Luck!

 Mr.NetAdmin at gmail.com


[web2py] Re: Web2py Application Exhibition ( Version 2.0 )

2010-12-15 Thread selecta
btw I was finally able to login to WAE 2.0 app
here is the link to my contribution (which is called pyMantis btw)
http://w2pexhibition.appspot.com/exhibition/default/index/311002

packaged releases can be found here
http://jaguar.biologie.hu-berlin.de/~fkrause/pyMantis.src.r167.tar.gz
(linux)
http://jaguar.biologie.hu-berlin.de/~fkrause/pyMantis.win.r167.zip
(windows)


[web2py] Re: Web2py Application Exhibition ( Final Day! )

2010-12-15 Thread selecta
i finally was able to login using google as openid provider :)
http://w2pexhibition.appspot.com/exhibition/default/index/311002

On Dec 16, 12:00 am, selecta gr...@delarue-berlin.de wrote:
 waaah i send you a mail with the link to the source and a description,
 do i also need to login to  http://w2pexhibition.appspot.com/and
 upload it? I tried it but it does not work for me, I only have a
 google account and that wont redirect or do anything :( I hope you
 also accept the email like you said in the original post o_O

 On Dec 15, 3:45 pm, NetAdmin mr.netad...@gmail.com wrote:



   Hello All,

   THIS IS THE FINAL DAY!

   The deadline for submissions for the
   Web2py Application Exhibition is December 15th 2010

   You can start submitting and voting for the entries
   for the Web2py Application Exhibition Version 2.0

   To get started, go to the following link...
   http://w2pexhibition.appspot.com/

   There is a sample application entry by Martin Mulone
   that will give you an idea of how to use the
   voting application.

   Many thanks to Martin Mulone for coding the app
   to handle submission and voting!

   Good Luck!

   Mr.NetAdmin


[web2py] Re: auth model

2010-12-15 Thread Rick
Now I've changed a little, but it still doesn't work:


from db.py

auth = Auth(globals(), db)

db.define_table(
auth.settings.table_user_name,
Field('username'),
Field('password'))

auth.define_tables()

custom_auth_table = db[auth.settings.table_user_name] # get the
custom_auth_table
custom_auth_table.requires = IS_NOT_IN_DB(db,
custom_auth_table.username)




from layout.html

{{if not custom_auth_table.username and not
request.function=='username':}}
{{=custom_auth_table.login (next=URL(r=request,args=args))}}
{{pass}}
{{include}}






On Dec 15, 9:55 pm, Rick sababa.sab...@gmail.com wrote:
 Thanks for the advice. This code seems to work:

 **
 from gluon.settings import settings
 from gluon.tools import *

 # if running on Google App Engine
 if settings.web2py_runtime_gae:
     from gluon.contrib.gql import *
     # connect to Google BigTable
     db = DAL('gae')
     # and store sessions there
     session.connect(request, response, db=db)
 else:
     # if not, use SQLite or other DB
         db = DAL(sqlite://db.db)

 db.define_table('todo',
     Field('time'),
     Field('thing'))

 auth = Auth(globals(), db)

 db.define_table(
     auth.settings.table_user_name,
     Field('name'),
     Field('password'))

 auth.define_tables()

 custom_auth_table = db[auth.settings.table_user_name] # get the
 custom_auth_table
 **

 ...but now I try to write a kind of log in/out interface in views/
 layout.html. I don't know how it should look like in the case of
 custom auth. I tried with this that that gave an error mesage:

 {{if not auth.user and not request.function=='user':}}
 {{=atuh.login(next=URL(r=request,args=args))}}
 {{pass}}

 Any ideas?

 On Dec 15, 2:37 am, pbreit pbreitenb...@gmail.com wrote:







  To customize auth, have a look 
  at:http://web2py.com/book/default/chapter/08#Customizing-Auth

  For one thing, the table definitely needs to be placed between auth =
  Auth(globals(), db) and auth.define_tables()


[web2py] DAL select cache, and update

2010-12-15 Thread Dragonfyre13
I see some discussion from back in 2008 on the subject, but hoping
something might have changed.

Is there any way that I can cache a select, and then on update,
automatically remove any cached selects on this table/field?

I see that I can remove cache for a specific query like this:
cache.ram(db._uri+'/'+db()._select(),None,0)
or clear all cached selects like this: cache.ram.clear(db._uri + '/
SELECT')
but I'm doing updates to a particular row, and all sorts of selects on
that table that have many types of different select statements (and
return data in that row). Is there a way that I can cache the select,
and then either remove the cache for any select statements that target
that row, or even (more intensive, but possibly doable) remove all
selects that are cached for that table?

Seems (from the outside looking in) that this should somehow be part
of the update statement. Something like:

db(...).update(..., cache=(cache.ram, 3600))

of course this should also work on:

db(...).select(..., cache=(cache.ram,
3600)).first().update_record(...)

but I don't find any info on that in slices, book, or this mailing
list.

Feedback? Questions? Flames? Answers? All accepted.


Re: [web2py] Re: Web2py Application Exhibition ( Final Day! )

2010-12-15 Thread Mr admin
Selecta,

I'm glad you were able to login!

Good Luck!

Mr.NetAdmin

On Wed, Dec 15, 2010 at 6:01 PM, selecta gr...@delarue-berlin.de wrote:

 i finally was able to login using google as openid provider :)
 http://w2pexhibition.appspot.com/exhibition/default/index/311002

 On Dec 16, 12:00 am, selecta gr...@delarue-berlin.de wrote:
  waaah i send you a mail with the link to the source and a description,
  do i also need to login to  http://w2pexhibition.appspot.com/and
  upload it? I tried it but it does not work for me, I only have a
  google account and that wont redirect or do anything :( I hope you
  also accept the email like you said in the original post o_O
 
  On Dec 15, 3:45 pm, NetAdmin mr.netad...@gmail.com wrote:
 
 
 
Hello All,
 
THIS IS THE FINAL DAY!
 
The deadline for submissions for the
Web2py Application Exhibition is December 15th 2010
 
You can start submitting and voting for the entries
for the Web2py Application Exhibition Version 2.0
 
To get started, go to the following link...
http://w2pexhibition.appspot.com/
 
There is a sample application entry by Martin Mulone
that will give you an idea of how to use the
voting application.
 
Many thanks to Martin Mulone for coding the app
to handle submission and voting!
 
Good Luck!
 
Mr.NetAdmin



Re: [web2py] Re: Web2py Application Exhibition ( Version 2.0 )

2010-12-15 Thread Mr admin
Selecta,

I have the link and will download it now!

Thanks!

Mr.NetAdmin


On Wed, Dec 15, 2010 at 5:59 PM, selecta gr...@delarue-berlin.de wrote:

 btw I was finally able to login to WAE 2.0 app
 here is the link to my contribution (which is called pyMantis btw)
 http://w2pexhibition.appspot.com/exhibition/default/index/311002

 packaged releases can be found here
 http://jaguar.biologie.hu-berlin.de/~fkrause/pyMantis.src.r167.tar.gzhttp://jaguar.biologie.hu-berlin.de/%7Efkrause/pyMantis.src.r167.tar.gz
 (linux)
 http://jaguar.biologie.hu-berlin.de/~fkrause/pyMantis.win.r167.ziphttp://jaguar.biologie.hu-berlin.de/%7Efkrause/pyMantis.win.r167.zip
 (windows)


[web2py] Re: it case you missed it...

2010-12-15 Thread Anthony
On Dec 15, 6:25 pm, Branko Vukelic branko.vuke...@gmx.com wrote:
  I like GPL plus a (clarified) exception, but I wouldn't exactly say pbreit's
  concerns are invalid. There clearly is some history of confusion and concern
  among web2py users/developers and their clients:

 Point is, it's been discussed over and over, and over, and over... in a 
 more-or less the same manner, too. Just saying BSD! won't make it BSD. I 
 think that's become clear. And it's become painfully obvious that we are all 
 divided between GPL and anything-but-GPL, and we have come to the conclusion 
 that it's Massimo's call. Massimo called GPL, because we have also clarified 
 that there isn't a technical threat to the end users. TECHNICALLY speaking, 
 nobody should really be concerned as long as they are aware of the exception 
 and agree to it. So, repeating discussion, using Gplophobia or Gnuphobia as 
 the pivot is not productive, and it would go on like this forever.

Yes, I agree, but all I said was that the concerns are not invalid (I
also pointed out an issue that has not thus far been addressed --
standalone DAL). I think we can decide to stick with GPL while still
recognizing it may present a barrier for some (possibly simply due to
confusion or risk aversion rather than a real legal threat). This
issue is both complex and important, so a long discussion should not
be surprising. I, for one, have learned a lot, and assuming we follow
through, I believe the result of this long thread will be an
improvement in the license and therefore the comfort of prospective
users. Those uninterested in the topic can easily ignore the thread.

Cheers,
Anthony


[web2py] bug? - list:string widget changes from multiple select to separate option list

2010-12-15 Thread Carlos
Hi,

I've noticed that a list:string field, after a failed submit (with
validation errors) and when at least one value is selected, changes
from multiple select widget to the separate options list widget.

   Field('test', 'list:string', requires=IS_IN_SET(['a','b','c'],
multiple=True))

This occurs with new (create) and existing (update) records.

Is this a bug?.

Thanks,

   Carlos


[web2py] Re: Web2py Application Exhibition ( Final Day! )

2010-12-15 Thread Anthony
There's an error in the Application Exhibition 2.0 index.html view:

div class=url_proyectstrongProject (URL):/strong
{{=A(app.url,_href=app.url)}}/div
div class=url_downloadstrongDownload (URL):/strong
{{=A(app.url_download, _href=app.url)}}/div
div class=url_demostrongDemo (URL):/strong {{=A(app.url_demo,
_href=app.url)}}/div

The download and demo href's are both set to app.url instead of
app.url_download and app.url_demo. So, the correct URL text is
displayed, but the actual hyperlinks point to the wrong URL.

Anthony

On Dec 15, 9:45 am, NetAdmin mr.netad...@gmail.com wrote:
  Hello All,

  THIS IS THE FINAL DAY!

  The deadline for submissions for the
  Web2py Application Exhibition is December 15th 2010

  You can start submitting and voting for the entries
  for the Web2py Application Exhibition Version 2.0

  To get started, go to the following link...
  http://w2pexhibition.appspot.com/

  There is a sample application entry by Martin Mulone
  that will give you an idea of how to use the
  voting application.

  Many thanks to Martin Mulone for coding the app
  to handle submission and voting!

  Good Luck!

  Mr.NetAdmin


[web2py] Re: Web2py Application Exhibition ( Final Day! )

2010-12-15 Thread Anthony
Excellent work. Thanks for sharing this.

Note, for me, in IE8 on Windows 7, the Categories demo isn't working
properly -- once I expand a row to see the details table, I cannot
then collapse it or expand the other row (i.e., the table just gets
stuck).

Also, I notice that one of the DataTables features listed is Ajax
auto loading of data. Do you know if that allows for continuous
scrolling without the need to paginate (i.e., more rows are
dynamically loaded as you scroll -- like the new Google Groups
discussion topic list)? I think some other jQuery grid plugins have
that feature, but not sure if DataTables can do it.

Regards,
Anthony

On Dec 15, 5:49 pm, Bruno Rocha rochacbr...@gmail.com wrote:
 powerTable plugin sent!

 Vote here:http://w2pexhibition.appspot.com/exhibition/default/index/329001

 Live demo and download here:http://powertable.blouweb.com/

 ALPHA 0.0.0.0.0.0 Version (too much working in progress), I've been working
 on this on my free time for 5 days, Tests and suggestions needed.

 2010/12/15 NetAdmin mr.netad...@gmail.com







   Hello All,

   THIS IS THE FINAL DAY!

   The deadline for submissions for the
   Web2py Application Exhibition is December 15th 2010

   You can start submitting and voting for the entries
   for the Web2py Application Exhibition Version 2.0

   To get started, go to the following link...
   http://w2pexhibition.appspot.com/

   There is a sample application entry by Martin Mulone
   that will give you an idea of how to use the
   voting application.

   Many thanks to Martin Mulone for coding the app
   to handle submission and voting!

   Good Luck!

   Mr.NetAdmin

 --

 Bruno Rochahttp://about.me/rochacbruno/bio- Hide quoted text -

 - Show quoted text -


Re: [web2py] Re: Web2py Application Exhibition ( Final Day! )

2010-12-15 Thread Mr admin
Anthony,

Thanks for the info. I've forwarded the message to Martin.

Mr.NetAdmin


On Wed, Dec 15, 2010 at 8:49 PM, Anthony abasta...@gmail.com wrote:

 There's an error in the Application Exhibition 2.0 index.html view:

 div class=url_proyectstrongProject (URL):/strong
 {{=A(app.url,_href=app.url)}}/div
 div class=url_downloadstrongDownload (URL):/strong
 {{=A(app.url_download, _href=app.url)}}/div
 div class=url_demostrongDemo (URL):/strong {{=A(app.url_demo,
 _href=app.url)}}/div

 The download and demo href's are both set to app.url instead of
 app.url_download and app.url_demo. So, the correct URL text is
 displayed, but the actual hyperlinks point to the wrong URL.

 Anthony

 On Dec 15, 9:45 am, NetAdmin mr.netad...@gmail.com wrote:
   Hello All,
 
   THIS IS THE FINAL DAY!
 
   The deadline for submissions for the
   Web2py Application Exhibition is December 15th 2010
 
   You can start submitting and voting for the entries
   for the Web2py Application Exhibition Version 2.0
 
   To get started, go to the following link...
   http://w2pexhibition.appspot.com/
 
   There is a sample application entry by Martin Mulone
   that will give you an idea of how to use the
   voting application.
 
   Many thanks to Martin Mulone for coding the app
   to handle submission and voting!
 
   Good Luck!
 
   Mr.NetAdmin



Re: [web2py] Re: grid

2010-12-15 Thread Bruno Rocha
Format missing in models, now its ok.

I added the Theme Roller switcher http://powertable.blouweb.com/products

2010/12/15 JmiXIII sylvn.p...@gmail.com

 I'm just discovering it ...
 Just a remark : here = http://powertable.blouweb.com/products ,
 shouldn't category field render a represent (category.name) instead of
 category.id ?
 Not enough time to test a local instance but seems promising...

 On 15 déc, 23:52, Bruno Rocha rochacbr...@gmail.com wrote:
  Live demo and download here:http://powertable.blouweb.com/
 
  ALPHA 0.0.0.0.0.0 Version (too much working in progress),
 
  Tests and suggestions needed, something can broke, fails or whatever,
 this
  is teh first plugin I wrote, and I have too much to enable on this.
 
  I am going to publish it to BitBucket and I'll need contributors to work
  with aesthetics and server side data processing JSON/XML
 
  --
 
  Bruno Rochahttp://about.me/rochacbruno/bio




-- 

Bruno Rocha
http://about.me/rochacbruno/bio


[web2py] Re: Web2py Application Exhibition ( Final Day! )

2010-12-15 Thread Anthony
Also, looks like 4 people have voted for Application Exhibition 2.0,
though it says it's just a test and not in the competition (I believe
because Martin is ineligible due to winning the last time). Maybe you
can disable voting for that one so people don't mistakenly waste their
votes.

On Dec 15, 9:58 pm, Mr admin mr.netad...@gmail.com wrote:
 Anthony,

 Thanks for the info. I've forwarded the message to Martin.

 Mr.NetAdmin



 On Wed, Dec 15, 2010 at 8:49 PM, Anthony abasta...@gmail.com wrote:
  There's an error in the Application Exhibition 2.0 index.html view:

  div class=url_proyectstrongProject (URL):/strong
  {{=A(app.url,_href=app.url)}}/div
  div class=url_downloadstrongDownload (URL):/strong
  {{=A(app.url_download, _href=app.url)}}/div
  div class=url_demostrongDemo (URL):/strong {{=A(app.url_demo,
  _href=app.url)}}/div

  The download and demo href's are both set to app.url instead of
  app.url_download and app.url_demo. So, the correct URL text is
  displayed, but the actual hyperlinks point to the wrong URL.

  Anthony

  On Dec 15, 9:45 am, NetAdmin mr.netad...@gmail.com wrote:
    Hello All,

    THIS IS THE FINAL DAY!

    The deadline for submissions for the
    Web2py Application Exhibition is December 15th 2010

    You can start submitting and voting for the entries
    for the Web2py Application Exhibition Version 2.0

    To get started, go to the following link...
    http://w2pexhibition.appspot.com/

    There is a sample application entry by Martin Mulone
    that will give you an idea of how to use the
    voting application.

    Many thanks to Martin Mulone for coding the app
    to handle submission and voting!

    Good Luck!

    Mr.NetAdmin- Hide quoted text -

 - Show quoted text -


[web2py] Re: it case you missed it...

2010-12-15 Thread pbreit
Anthony, thanks for keeping your posts reasonable and considerate.

Re: [web2py] Re: Web2py Application Exhibition ( Final Day! )

2010-12-15 Thread Bruno Rocha
2010/12/16 Anthony abasta...@gmail.com

 Excellent work. Thanks for sharing this.

 Note, for me, in IE8 on Windows 7, the Categories demo isn't working
 properly -- once I expand a row to see the details table, I cannot
 then collapse it or expand the other row (i.e., the table just gets
 stuck).


Damn I.E, I did not test in I.E or windows yet, I just have a Ubuntu and
MacOs at home and just Macs at Office, I have to install some VirtualMachine
to test it in windows.


 Also, I notice that one of the DataTables features listed is Ajax
 auto loading of data. Do you know if that allows for continuous
 scrolling without the need to paginate (i.e., more rows are
 dynamically loaded as you scroll -- like the new Google Groups
 discussion topic list)? I think some other jQuery grid plugins have
 that feature, but not sure if DataTables can do it.


I dont know, but guess it can be done extending datatables, there is too
much feature to enable in plugin.




 Regards,
 Anthony

-- 

Bruno Rocha
http://about.me/rochacbruno/bio


Re: [web2py] Re: Web2py Application Exhibition ( Final Day! )

2010-12-15 Thread Bruno Rocha
Anthony, can you test if it works in I.E 8 -
http://www.datatables.net/examples/server_side/row_details.html

Thanks

-- 

Bruno Rocha
http://about.me/rochacbruno/bio


[web2py] Re: it case you missed it...

2010-12-15 Thread Anthony
:)

On Dec 15, 10:11 pm, pbreit pbreitenb...@gmail.com wrote:
 Anthony, thanks for keeping your posts reasonable and considerate.


[web2py] Re: bug? - list:string widget changes from multiple select to separate option list

2010-12-15 Thread weheh
I've seen the list:string present as the separate options list widget
if multiple=True is missing from the requires. Could it be that after
a failed submit you are somehow changing the requires statement?

On Dec 15, 9:41 pm, Carlos carlosgali...@gmail.com wrote:
 Hi,

 I've noticed that a list:string field, after a failed submit (with
 validation errors) and when at least one value is selected, changes
 from multiple select widget to the separate options list widget.

    Field('test', 'list:string', requires=IS_IN_SET(['a','b','c'],
 multiple=True))

 This occurs with new (create) and existing (update) records.

 Is this a bug?.

 Thanks,

    Carlos


[web2py] Vote in web2py for PyCon 2011 Tutorials

2010-12-15 Thread Bruno Rocha
PyCon is made up of a number of different parts, each with its own goals.
For the talks presented during the conference portion of PyCon, we go for
both breadth and quality. There are enough different sessions and different
tracks that each person can customize their PyCon experience according to
their interests. For tutorials, the goal is slightly different. We want to
present tutorials that help developers deal effectively with their most
common day-to-day challenges. Accordingly, the following topics have been
generally proposed for tutorials at PyCon 2011. Which of these topics would
be the most useful for you? If tutorials were held on all these topics,
which ones would you or your organization pay to attend?

https://spreadsheets0.google.com/viewform?formkey=dF9wdHV0SHhMLWVKV1MzX0hpYW9XZnc6MQ#gid=0

-- 

Bruno Rocha
http://about.me/rochacbruno/bio


[web2py] Re: bug? - list:string widget changes from multiple select to separate option list

2010-12-15 Thread Carlos
Hi weheh,

No, I'm not changing the requires statement.

It's weird because it only changes widget when I select at least one
option.

If I don't select any option and the submit fails with validation
errors, then the widget stays the same (without changing to the
separate options list).

Thanks,

   Carlos


On Dec 15, 9:52 pm, weheh richard_gor...@verizon.net wrote:
 I've seen the list:string present as the separate options list widget
 if multiple=True is missing from the requires. Could it be that after
 a failed submit you are somehow changing the requires statement?

 On Dec 15, 9:41 pm, Carlos carlosgali...@gmail.com wrote:







  Hi,

  I've noticed that a list:string field, after a failed submit (with
  validation errors) and when at least one value is selected, changes
  from multiple select widget to the separate options list widget.

     Field('test', 'list:string', requires=IS_IN_SET(['a','b','c'],
  multiple=True))

  This occurs with new (create) and existing (update) records.

  Is this a bug?.

  Thanks,

     Carlos


[web2py] How to fetch already exiting table data with out defining new table

2010-12-15 Thread sushanth
Hi,

I already have few tables with data in mysql.i want to fetch that with
out defining in model.py.
can you please help me.

Thanks in advance

Regards,
sushanth


Re: [web2py] Re: it case you missed it...

2010-12-15 Thread Branko Vukelic
 - Original Message -
 From: Anthony
 Sent: 12/16/10 03:01 AM
 To: web2py-users
 Subject: [web2py] Re: it case you missed it...
 Yes, I agree, but all I said was that the concerns are not invalid (I
 also pointed out an issue that has not thus far been addressed --
 standalone DAL). I think we can decide to stick with GPL while still
 recognizing it may present a barrier for some (possibly simply due to
 confusion or risk aversion rather than a real legal threat). This
 issue is both complex and important, so a long discussion should not
 be surprising. I, for one, have learned a lot, and assuming we follow
 through, I believe the result of this long thread will be an
 improvement in the license and therefore the comfort of prospective
 users. Those uninterested in the topic can easily ignore the thread.

You are missing the main point here, and that's software freedom and two 
incompatible views regarding that. It's not by conincidence that there is a 
commercial EXCEPTION to GPL in web2py. The reason it's called an exception is 
that it is incompatible with the intent of GPL. Now consider that Massimo has 
_chosen_ GPL with an intent, and that GPL aligns with that intent. Do I need to 
go on?


--
Branko Vukelic

branko.vuke...@gmx.com

http://www.brankovukelic.com/
http://flickr.com/photos/foxbunny


[web2py] Re: bug? - list:string widget changes from multiple select to separate option list

2010-12-15 Thread mdipierro
which version? I remember fixing this bug some time ago.

On Dec 15, 11:04 pm, Carlos carlosgali...@gmail.com wrote:
 Hi weheh,

 No, I'm not changing the requires statement.

 It's weird because it only changes widget when I select at least one
 option.

 If I don't select any option and the submit fails with validation
 errors, then the widget stays the same (without changing to the
 separate options list).

 Thanks,

    Carlos

 On Dec 15, 9:52 pm, weheh richard_gor...@verizon.net wrote:

  I've seen the list:string present as the separate options list widget
  if multiple=True is missing from the requires. Could it be that after
  a failed submit you are somehow changing the requires statement?

  On Dec 15, 9:41 pm, Carlos carlosgali...@gmail.com wrote:

   Hi,

   I've noticed that a list:string field, after a failed submit (with
   validation errors) and when at least one value is selected, changes
   from multiple select widget to the separate options list widget.

      Field('test', 'list:string', requires=IS_IN_SET(['a','b','c'],
   multiple=True))

   This occurs with new (create) and existing (update) records.

   Is this a bug?.

   Thanks,

      Carlos