On Tue, 5 Jul 2005, Jeremy Sanders wrote:

On Tue, 5 Jul 2005, James Graham wrote:

Veusz let me save a file with a period "." in a descriptor (specifically in a field name) but wouldn't let me open the same file. Obviously this is a bug... Is there any actual non-fixable reason for this limitation on characters?

Hmmm... I'm trying to remember whether there are any assumptions here that the name is a valid python variable name...

I think we should disallow dots, as this breaks things like the create dataset dialog which uses eval to evaluate datasets. Dots aren't valid in python variable names.

How was the dataset created? Presumably not using import.

I thought I created it using the create dataset dialog, based on an existing dataset. I could be wrong though... In general dots are useful because you can give things names like 0.5FooData. It's not critical in the short term but long term it's the kind of arbitary limitation that makes so many programs hard to use.

There's probably a larger issue to do with any non python variable name names. The importer may even allow numerical names...

Yeah, somewhere we should have a CheckDatasetName function (or somesuch) so that everything uses the same rules...

Répondre à