Discussion:
IronPython anyone?
Patrick K. O'Brien
2006-11-21 15:39:51 UTC
Permalink
I'm still working out the kinks, but the following might interest some
of you:

C:\IronPython>schevo db create --app=schevo.example.todo -p todo.db
Schevo 3.0b3dev-r2694 :: Database Activities :: Create Database

Creating new database...
Evolving database...
Database is already at latest version.
Importing icons...
Populating with sample data...
Packing the database...
Database version is now at 1.
Database created.

C:\IronPython>ipy.exe -X:TabCompletion -X:ColorfulConsole
IronPython 1.0 (1.0.61005.1977) on .NET 2.0.50727.42
Copyright (c) Microsoft Corporation. All rights reserved.
import schevo.database
Using Python base classes for persistence.
db = schevo.database.open('todo.db')
... print gender.name
...
Female
Male
Unknown
person = db.execute(db.Person.t.create(name='John Doe',
gender=db.Gender.findone(code='M')))
person.name
'John Doe'
person.gender
<Gender entity oid:2 rev:0>
person.gender.name
'Male'
Can you say Schevo.NET? :-)
--
Patrick K. O'Brien
Orbtech http://www.orbtech.com
Schevo http://www.schevo.org
Louie http://www.pylouie.org
Patrick K. O'Brien
2006-11-21 15:49:09 UTC
Permalink
Post by Patrick K. O'Brien
I'm still working out the kinks, but the following might interest some
<snip>
Post by Patrick K. O'Brien
Can you say Schevo.NET? :-)
If anyone wants to help with our IronPython efforts, please create an
account on CodePlex and vote for the following support tickets so that
MS fixes things in IronPython that we need for Schevo (and Durus):

Class with slots and getattr not compatible
http://www.codeplex.com/WorkItem/View.aspx?ProjectName=IronPython&WorkItemId=5801

Unpickler.persistent_load needs to be supported
http://www.codeplex.com/WorkItem/View.aspx?ProjectName=IronPython&WorkItemId=5799

Import in exec doesn't publish into provided dictionary
http://www.codeplex.com/WorkItem/View.aspx?ProjectName=IronPython&WorkItemId=5755

Since this also effects Durus, I'm sending this to their list as well.

Thanks!
--
Patrick K. O'Brien
Orbtech http://www.orbtech.com
Schevo http://www.schevo.org
Louie http://www.pylouie.org
Loading...