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
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
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
/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
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
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
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
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
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
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
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:
>
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
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
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:
> >
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:
>
&
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
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 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
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'
--~--~-~--~~~---~--~--
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,
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
21 matches
Mail list logo