Re: [web2py] Re: int() argument must be a string or a number, not 'list'

2012-09-19 Thread Andrew Evans
I upgraded to the nightly build and it still doesn't fix my issue :-(
Version 2.0.9 (2012-09-18 20:11:26) stable (Taken from Nightly)
MySQL 5.1.63-0+squeeze1

Any ideas

and ty for the help

Traceback (most recent call last):
  File /var/www/web2py/gluon/restricted.py, line 209, in restricted
exec ccode in environment
  File /var/www/web2py/applications/sc_coast/controllers/edit.py
https://85.25.242.165/admin/default/edit/sc_coast/controllers/edit.py,
line 57, in module
  File /var/www/web2py/gluon/globals.py, line 186, in lambda
self._caller = lambda f: f()
  File /var/www/web2py/gluon/tools.py, line 2832, in f
return action(*a, **b)
  File /var/www/web2py/applications/sc_coast/controllers/edit.py
https://85.25.242.165/admin/default/edit/sc_coast/controllers/edit.py,
line 35, in listing
form = 
crud.update(db.listing,int(listing_id),next=URL('control_panel','listing'))
  File /var/www/web2py/gluon/tools.py, line 3422, in update
detect_record_change = self.settings.detect_record_change):
  File /var/www/web2py/gluon/sqlhtml.py, line 1368, in accepts
fields[fieldname] = safe_int(value)
  File /var/www/web2py/gluon/sqlhtml.py, line 63, in safe_int
return int(x)
TypeError: int() argument must be a string or a number, not 'list'




On Tue, Sep 18, 2012 at 5:38 AM, Massimo Di Pierro 
massimo.dipie...@gmail.com wrote:

 You should always consider the nightly built. It usually contains most of
 the fixes as trunk but is a snapshot that we think relatively stable.


 On Monday, 17 September 2012 22:13:48 UTC-5, Andrew Evans wrote:

 Will do I saw it was fixed in Trunk

 Does Trunk mean the not released version?

 *cheers

 Andrew

  --





-- 





Re: [web2py] Re: int() argument must be a string or a number, not 'list'

2012-09-19 Thread Andrew Evans
yea I just tried trunk and does not work for me either...

Maybe I am writing my code wrong?

Any ideas?



On Wed, Sep 19, 2012 at 10:47 AM, Andrew Evans ade.ca...@gmail.com wrote:

 I upgraded to the nightly build and it still doesn't fix my issue :-(
 Version 2.0.9 (2012-09-18 20:11:26) stable (Taken from Nightly)
 MySQL 5.1.63-0+squeeze1

 Any ideas

 and ty for the help

 Traceback (most recent call last
 ):

   File /var/www/web2py/gluon/restricted.py, line 209, in restricted

 exec ccode in environment
   File /var/www/web2py/applications/sc_coast/controllers/edit.py 
 https://85.25.242.165/admin/default/edit/sc_coast/controllers/edit.py, line 
 57, in module

   File /var/www/web2py/gluon/globals.py, line 186, in lambda

 self._caller = lambda f: f
 ()

   File /var/www/web2py/gluon/tools.py, line 2832, in f

 return action(*a, **b)
   File /var/www/web2py/applications/sc_coast/controllers/edit.py 
 https://85.25.242.165/admin/default/edit/sc_coast/controllers/edit.py, line 
 35, in listing

 form = 
 crud.update(db.listing,int(listing_id),next=URL('control_panel','listing'))

   File /var/www/web2py/gluon/tools.py, line 3422, in update

 detect_record_change = self.settings.detect_record_change):

   File /var/www/web2py/gluon/sqlhtml.py, line 1368, in accepts

 fields[fieldname] = safe_int(value)
   File /var/www/web2py/gluon/sqlhtml.py, line 63, in safe_int


 return int(x)
 TypeError: int() argument must be a string or a number, not 'list'




 On Tue, Sep 18, 2012 at 5:38 AM, Massimo Di Pierro 
 massimo.dipie...@gmail.com wrote:

 You should always consider the nightly built. It usually contains most of
 the fixes as trunk but is a snapshot that we think relatively stable.


 On Monday, 17 September 2012 22:13:48 UTC-5, Andrew Evans wrote:

 Will do I saw it was fixed in Trunk

 Does Trunk mean the not released version?

 *cheers

 Andrew

  --







-- 





Re: [web2py] Re: int() argument must be a string or a number, not 'list'

2012-09-19 Thread Andrew Evans
Also the Python Version I am using is 2.6.6

On Wed, Sep 19, 2012 at 10:56 AM, Andrew Evans ade.ca...@gmail.com wrote:

 yea I just tried trunk and does not work for me either...

 Maybe I am writing my code wrong?

 Any ideas?




 On Wed, Sep 19, 2012 at 10:47 AM, Andrew Evans ade.ca...@gmail.comwrote:

 I upgraded to the nightly build and it still doesn't fix my issue :-(
 Version 2.0.9 (2012-09-18 20:11:26) stable (Taken from Nightly)
 MySQL 5.1.63-0+squeeze1

 Any ideas

 and ty for the help

 Traceback (most recent call last
 ):

   File /var/www/web2py/gluon/restricted.py, line 209, in restricted


 exec ccode in environment
   File /var/www/web2py/applications/sc_coast/controllers/edit.py 
 https://85.25.242.165/admin/default/edit/sc_coast/controllers/edit.py, 
 line 57, in module


   File /var/www/web2py/gluon/globals.py, line 186, in lambda


 self._caller = lambda f: f
 ()

   File /var/www/web2py/gluon/tools.py, line 2832, in f


 return action(*a, **b)
   File /var/www/web2py/applications/sc_coast/controllers/edit.py 
 https://85.25.242.165/admin/default/edit/sc_coast/controllers/edit.py, 
 line 35, in listing


 form = 
 crud.update(db.listing,int(listing_id),next=URL('control_panel','listing'))


   File /var/www/web2py/gluon/tools.py, line 3422, in update


 detect_record_change = self.settings.detect_record_change):


   File /var/www/web2py/gluon/sqlhtml.py, line 1368, in accepts


 fields[fieldname] = safe_int(value)
   File /var/www/web2py/gluon/sqlhtml.py, line 63, in safe_int


 return int(x)
 TypeError: int() argument must be a string or a number, not 'list'




 On Tue, Sep 18, 2012 at 5:38 AM, Massimo Di Pierro 
 massimo.dipie...@gmail.com wrote:

 You should always consider the nightly built. It usually contains most
 of the fixes as trunk but is a snapshot that we think relatively stable.


 On Monday, 17 September 2012 22:13:48 UTC-5, Andrew Evans wrote:

 Will do I saw it was fixed in Trunk

 Does Trunk mean the not released version?

 *cheers

 Andrew

  --








-- 





Re: [web2py] Re: int() argument must be a string or a number, not 'list'

2012-09-19 Thread Andrew Evans
Also updating web2py to Nightly seems to have caused a serious load on SSL

caused 100% CPU load and raised up to 40% RAM usage until I reverted back
to 1.99.7

and 1.99.7 didn't cause any load.

Anyway

My Report






On Wed, Sep 19, 2012 at 11:38 AM, Andrew Evans ade.ca...@gmail.com wrote:

 Also the Python Version I am using is 2.6.6


 On Wed, Sep 19, 2012 at 10:56 AM, Andrew Evans ade.ca...@gmail.comwrote:

 yea I just tried trunk and does not work for me either...

 Maybe I am writing my code wrong?

 Any ideas?




 On Wed, Sep 19, 2012 at 10:47 AM, Andrew Evans ade.ca...@gmail.comwrote:

 I upgraded to the nightly build and it still doesn't fix my issue :-(
 Version 2.0.9 (2012-09-18 20:11:26) stable (Taken from Nightly)
 MySQL 5.1.63-0+squeeze1

 Any ideas

 and ty for the help

 Traceback (most recent call last

 ):

   File /var/www/web2py/gluon/restricted.py, line 209, in restricted



 exec ccode in environment
   File /var/www/web2py/applications/sc_coast/controllers/edit.py 
 https://85.25.242.165/admin/default/edit/sc_coast/controllers/edit.py, 
 line 57, in module



   File /var/www/web2py/gluon/globals.py, line 186, in lambda



 self._caller = lambda f: f

 ()

   File /var/www/web2py/gluon/tools.py, line 2832, in f



 return action(*a, **b)
   File /var/www/web2py/applications/sc_coast/controllers/edit.py 
 https://85.25.242.165/admin/default/edit/sc_coast/controllers/edit.py, 
 line 35, in listing



 form = 
 crud.update(db.listing,int(listing_id),next=URL('control_panel','listing'))



   File /var/www/web2py/gluon/tools.py, line 3422, in update



 detect_record_change = self.settings.detect_record_change):



   File /var/www/web2py/gluon/sqlhtml.py, line 1368, in accepts



 fields[fieldname] = safe_int(value)
   File /var/www/web2py/gluon/sqlhtml.py, line 63, in safe_int



 return int(x)
 TypeError: int() argument must be a string or a number, not 'list'




 On Tue, Sep 18, 2012 at 5:38 AM, Massimo Di Pierro 
 massimo.dipie...@gmail.com wrote:

 You should always consider the nightly built. It usually contains most
 of the fixes as trunk but is a snapshot that we think relatively stable.


 On Monday, 17 September 2012 22:13:48 UTC-5, Andrew Evans wrote:

 Will do I saw it was fixed in Trunk

 Does Trunk mean the not released version?

 *cheers

 Andrew

  --









-- 





Re: [web2py] Re: int() argument must be a string or a number, not 'list'

2012-09-18 Thread Massimo Di Pierro
You should always consider the nightly built. It usually contains most of 
the fixes as trunk but is a snapshot that we think relatively stable.

On Monday, 17 September 2012 22:13:48 UTC-5, Andrew Evans wrote:

 Will do I saw it was fixed in Trunk 

 Does Trunk mean the not released version?

 *cheers

 Andrew


-- 





[web2py] Re: int() argument must be a string or a number, not 'list'

2012-09-17 Thread Massimo Di Pierro
This is probably fixed in trunk. You should upgrade.

On Monday, 17 September 2012 19:50:38 UTC-5, Andrew Evans wrote:

 Hello I am running into issues updating records in my MySQL database after 
 adding multiple=True like so

 Field('region', db.region, label='Region *', requires=IS_IN_DB(db,
 db.region.id,'%(title)s', multiple=True)),

 Any ideas how to fix this I am using web2py 1.99.7

 *cheers

 and ty ;-)




-- 





Re: [web2py] Re: int() argument must be a string or a number, not 'list'

2012-09-17 Thread Andrew Evans
Will do I saw it was fixed in Trunk

Does Trunk mean the not released version?

*cheers

Andrew

-- 





Re: [web2py] Re: int() argument must be a string or a number, not 'list'

2012-09-17 Thread Bruno Rocha
Trunk means the most recent devel version from git or hg, it is unstable
but issues are fixed very quickly

git clone https://github.com/web2py/web2py

hg clone https://code.google.com/p/web2py

--