I just run the test and you are right. It does not work.

I also checked the original problem reported on this thread that
started the discussion and I fail to reproduce it.

>>> writer=csv.writer(s,quoting=csv.QUOTE_MINIMAL)
>>> writer.writerow(['this','is\na','test',12])
>>> print s.getvalue()
this,"is
a",test,12
>>> reader=csv.reader(s,quoting=csv.QUOTE_MINIMAL)
>>> s.seek(0)
>>> for line in reader: print line
...
['this', 'is\x07', 'test', '12']
['this', 'is\na', 'test', '12']


On Jan 27, 11:36 pm, Thadeus Burgess <thade...@thadeusb.com> wrote:
> We can't have it exporting qoutes and then the import expecting the
> qoutes to be minimal. Then the export/import functionality is broken
> between itself =/
>
> I still say, sql.py should stay QOUTE_MINIMAL and dal.py should be
> QOUTE_NONNUMERIC. This way it keeps a sense of backwards-compatibility
> with the option of better use-case in the new dal.
>
> Either way both import/export need to be the same.
>
> -Thadeus
>
> On Wed, Jan 27, 2010 at 11:16 PM, mdipierro <mdipie...@cs.depaul.edu> wrote:
> > Oops. I was wrong. I did not do what I said. I just changed trunk so
> > that import on import requires QUOTE_MINIMAL but on export applies
> > QUOTE_NONNUMERIC.
>
> > So import does not change but new export should still be compatible
> > with input. Am I wrong again?
> > I did not try it yet. I am making a guess.
>
> > Massimo
>
> > On Jan 27, 11:01 pm, Thadeus Burgess <thade...@thadeusb.com> wrote:
> >> Are you saying that from the csv module point of view, or from web2py
> >> point of view?
>
> >> I just attempted a simple test attempting to export one of my old
> >> files... it failed.
>
> >> Its no biggie, I just will specify my qoute type if I ever need to use
> >> one of these old csv files.
>
> >> My only request is make an official changelog, and make a note about this!
>
> >> -Thadeus
>
> >> On Wed, Jan 27, 2010 at 10:55 PM, mdipierro <mdipie...@cs.depaul.edu> 
> >> wrote:
> >> > ill not be a problem since this parameter only affects export
> >> > not import. Because of the way it work
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "web2py-users" group.
> > To post to this group, send email to web...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > web2py+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/web2py?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.

Reply via email to