[web2py:16202] Re: error when import

2009-02-11 Thread INeedHelp
False > >     exceptTypeError: > >         return False > >     return True > > > Massimo > > > On Feb 10, 1:01 am, INeedHelp wrote: > > > > sorry. should be this one > > > > Traceback (most recent call last):  File "/Users/mdipierro

[web2py:16134] Re: TypeError: coercing to Unicode: need string or buffer, list found

2009-02-09 Thread INeedHelp
pm, mdipierro wrote: > please post code and traceback else it is hard to figure out what the > issue is. > > Massimo > > On Feb 9, 11:52 pm, INeedHelp wrote: > > > > > I want to zip a file in a folder. > > but with this error > > > TypeError: coercing

[web2py:16133] Re: error when import

2009-02-09 Thread INeedHelp
t;/Users/ mdipierro/web2py/gluon/sql.py", line 1318, in import_from_csv_file File "/Users/mdipierro/web2py/gluon/sql.py", line 968, in __getitem__ File "/Users/mdipierro/web2py/gluon/sql.py", line 914, in is_integerTypeError: long() argument must be a string or a number, not

[web2py:16132] Re: error when import

2009-02-09 Thread INeedHelp
/globals.py", line 74, in File "C:/Documents and Settings/__/Desktop/web2py_win/web2py/applications/cynoteDup/ controllers/zip.py", line 10, in zipTypeError: coercing to Unicode: need string or buffer, list found On Feb 10, 2:39 pm, INeedHelp wrote: > what do you mean? > > O

[web2py:16130] Re: error when import

2009-02-09 Thread INeedHelp
what do you mean? On Feb 10, 1:58 pm, mdipierro wrote: > Do you have the traceback from the ticket? > > Massimo > > On Feb 9, 11:51 pm, INeedHelp wrote: > > > > > def import_file(): > >    form=FORM(INPUT(_type='file',_name='data'),INPUT

[web2py:16129] Re: TypeError: coercing to Unicode: need string or buffer, list found

2009-02-09 Thread INeedHelp
f.close() return dict(form=form) return unicode On Feb 10, 1:59 pm, mdipierro wrote: > please post code and traceback else it is hard to figure out what the > issue is. > > Massimo > > On Feb 9, 11:52 pm, INeedHelp wrote: > > > > > I want to zip a fil

[web2py:16126] TypeError: coercing to Unicode: need string or buffer, list found

2009-02-09 Thread INeedHelp
I want to zip a file in a folder. but with this error TypeError: coercing to Unicode: need string or buffer, list found --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this gr

[web2py:16125] error when import

2009-02-09 Thread INeedHelp
def import_file(): form=FORM(INPUT(_type='file',_name='data'),INPUT (_type='submit')) if form.accepts(request.vars): db.import_from_csv_file(form.vars.data.file) # for every table for table in db.tables: # for every uuid, delete all but the most items = db(db

[web2py:15945] Re: Database Synchronization Howto and UUID

2009-02-05 Thread INeedHelp
i have this error also after i using the latest web2py TypeError: long() argument must be a string or a number, not 'list' On Feb 6, 2:34 pm, INeedHelp wrote: > HI > i using the code provide above and try to run but when i try to import > back the exported file. i have this

[web2py:15944] Zip a folder (not a file) and move a file/directory

2009-02-05 Thread INeedHelp
1st I know how to zip a file but is there a way to zip a folder (with files contain inside).??? 2nd Is there a way to move a file and folder after zip that folder and file? thanks in advance cheers --~--~-~--~~~---~--~~ You received this message because you are

[web2py:15943] Re: import and sync

2009-02-05 Thread INeedHelp
i solved this prob On Feb 5, 3:39 pm, INeedHelp wrote: > I also have an error with "items" > i have tried to solve but still cant solve > > db.import_from_csv_file(form.vars.data.file) >            # for every table >             for table in db.tables: >  

[web2py:15942] Re: Database Synchronization Howto and UUID

2009-02-05 Thread INeedHelp
HI i using the code provide above and try to run but when i try to import back the exported file. i have this error ValueError: Mixing iteration and read methods would lose data can help please and is it possibel to set the file exported in notepad/text doc/ms excel format?? thank in advance O

[web2py:15895] Re: export table

2009-02-04 Thread INeedHelp
and db.export_to_csv_file(s) is it possible to specify which table to export? i have tried db.table1.export_to_csv_file(s) but key error with export_to_csv_file(s) On Feb 5, 3:06 pm, INeedHelp wrote: > then how to put >   s=StringIO.StringIO() >   records.export_to_c

[web2py:15894] Re: import and sync

2009-02-04 Thread INeedHelp
mdipierro wrote: > looks like you have a space between ! and = in !=. > > Massimo > > On Feb 4, 9:22 pm, INeedHelp wrote: > > > > > I have an syntac error(invalid syntec) at "!" after  (db[table].id > > > for item in items: > >    

[web2py:15893] Re: export table

2009-02-04 Thread INeedHelp
owner']) On Feb 5, 1:16 pm, mdipierro wrote: > http://www.hanselman.com/blog/TheContentDispositionSagaControllingThe... > > in web2py-ese > > response.headers['Content-Dispotion']='filename=%s' % filename > > On Feb 4, 9:50 pm, INeedHelp wrote: > &

[web2py:15887] export table

2009-02-04 Thread INeedHelp
I have this fucntion which will drop down list all owner name and a submit button. after i click on e submit button, e screen will display all dogs below to e selected owner (from dropdownlist) def index(): records=db(db.dog.owner==request.vars.owner)\ .select(orderby=db.dog.tit

[web2py:15886] import and sync

2009-02-04 Thread INeedHelp
I have an syntac error(invalid syntec) at "!" after (db[table].id for item in items: db((db[table].uuid==item.uuid)&(db[table].id! = item.id)).delete() return dict(form=form) anyone can help? --~--~-~--~~~---~--~~ You received this message becaus

[web2py:15854] Re: key error with export_to_csv_file

2009-02-04 Thread INeedHelp
web2py are you using? > > Massimo > > On Feb 4, 12:00 am, INeedHelp wrote: > > > > > i am doing > > def export(): > >         s=StringIO.StringIO() > >         db.export_to_csv_file(s) > >         response.headers['Content-Type']='text/c

[web2py:15847] key error with export_to_csv_file

2009-02-03 Thread INeedHelp
i am doing def export(): s=StringIO.StringIO() db.export_to_csv_file(s) response.headers['Content-Type']='text/csv' return s.getvalue() when run it, i have an error KeyError: 'export_to_csv_file' --~--~-~--~~~---~--~--

[web2py:15839] Re: synchronisation

2009-02-03 Thread INeedHelp
o > > On Jan 30, 1:11 pm, mdipierro wrote: > > > > > Sorry, there is no short answer to this one. There was a xml-rpc > > applicance but I cannot find it. I thought was posted on appliances. I > > will look for it. > > > Massimo > > > On Jan 29, 7:36 pm,

[web2py:15611] synchronisation

2009-01-29 Thread INeedHelp
i am currently working on synchronisation. I have 2 or more "projectA" in different computers and i would like to synchronise all the entries in the database from different computers when few entries are added into database. so at the end, all the computer would have the same entries in the datab