On 11/5/05, Jan Gottschick <[EMAIL PROTECTED]> wrote:
> I ported my application from webware 0.8 to 0.9rc1 and get the above
> error message only when I add new records. So changing and deleting
> records works fine. It looks like that the model can be read. But why do
> I get this error, if the rest is working?
>
> using webware 0.9rc1, python 2.3, mysql 4, apache 2, cheetahtemplates
> under Debian Sarge (uptodate).
>
>        store = MySQLObjectStore(user='db', passwd='geheim')
>        store.readModelFileNamed('app/Middle/app')
>
>        #
>        # create transfer object
>        #
>        transfer = Transfers()
>   ...
>        transfer.setChangedOn(self.getSite())
>        #
>        # calculate the rest
>        #
>
>        #
>        # store transfer in database
>        #
>        store.addObject(transfer)
>        ^^^^^^^^^^^^^^^^^^^^^^^^^^
>
> Can someone give me a hint, how to find the bug?
>
> Thanks,
>
> Jan

Hi Jan,

Your message to the list got temporarily held because you're not a
subscriber--this is how we prevent spam. You may wish to subscribe at
least for the time being.

Some things about MiddleKit have changed. For a "legacy" project
coming from an older MiddleKit you'll want some settings in
your.mkmodel/Settings.config. One of my legacy projects running on
MySQL uses:

{
        'DoNotSortSQLCreateStatementsByDependency': 1,
        'SQLSerialColumnName': '%(className)sId',
        'UseBigIntObjRefColumns': 1,
}

Also, did you rerun the Generate.py program out of MiddleKit/Design
after upgrading? Even if you did, if you change your settings then you
should run it again.

Let me know how it goes.

-Chuck


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Webware-discuss mailing list
Webware-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to