[Schevo-devel] major svn changes?
joseph schlesinger
joes at alt2254.org
Fri Aug 5 20:03:09 EDT 2005
Matthew Scott wrote:
>Entity classes must inherit from E.Entity (instead of not inheriting
>from anything as in the past). Transaction classes must inherit from
>T.Transaction.
>
>
I was able to convert a schevo schema to a rebel schema by making these
adjustments (as well as quoting entity names as described in a
subsequent email). I also had to eliminate the _icon and _plurals from
the entity descriptions. But when I tried to import xml data from a
rebelized schevo xml export, I got a long series of errors. The
traceback is below.
By they way, thanks for the win-qt installer. Before it would work I
had to get rid of some of the prior schevo-related installation and fix
some environment variables that had "import qt" calling the wrong
version of qt-mt3.dll. I think had to put a copy of that dll in the
python24 root directory for some reason, even though I think I have all
the environment variables right.
---------------------------------------------------------
Importing data from 'schevo_xml\\rebelized.xml'...
Traceback (most recent call last):
File "C:\code\rebel\bin\\create_db", line 88, in ?
sys.exit(main(sys.argv[1:], sys.argv[0]))
File "C:\code\rebel\bin\\create_db", line 77, in main
db.execute(tx)
File "C:\code\rebel\schevo\database\duru.py", line 161, in execute
retval = tx._execute(self)
File "C:\code\rebel\schevo_xml\importer.py", line 31, in _execute
importer.import_from(self._input)
File "C:\code\rebel\schevo_xml\importer.py", line 53, in import_from
self._final_pass()
File "C:\code\rebel\schevo_xml\importer.py", line 86, in _final_pass
db.execute(tx, strict=False)
File "C:\code\rebel\schevo\database\duru.py", line 161, in execute
retval = tx._execute(self)
File "C:\code\rebel\schevo_xml\transaction.py", line 31, in _execute
db.execute(tx)
File "C:\code\rebel\schevo\database\duru.py", line 165, in execute
self._validate_changes(tx._changes_made)
File "C:\code\rebel\schevo\database\duru.py", line 860, in
_validate_changes
field.validate(field._value)
File "C:\code\rebel\schevo\field.py", line 794, in validate
Field.validate(self, value)
File "C:\code\rebel\schevo\field.py", line 373, in validate
self._raise(
File "C:\code\rebel\schevo\field.py", line 399, in _raise
raise exctype(msg)
AttributeError: myEntity value is required
More information about the Schevo-devel
mailing list