~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/soyuz/model/binarypackagepath.py

  • Committer: Steve Kowalik
  • Date: 2011-06-21 01:00:53 UTC
  • mto: (7675.1045.510 db-devel)
  • mto: This revision was merged to the branch mainline in revision 13402.
  • Revision ID: stevenk@ubuntu.com-20110621010053-u67xo7dmd0x8kus4
Switch from text to bytea, allowing us to store non-UTF8 data.

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
 
10
10
from storm.locals import (
11
11
    Int,
 
12
    RawStr,
12
13
    Storm,
13
 
    Unicode,
14
14
    )
15
15
from zope.interface import implements
16
16
 
23
23
    implements(IBinaryPackagePath)
24
24
    __storm_table__ = 'BinaryPackagePath'
25
25
    id = Int(primary=True)
26
 
    path = Unicode(name='path', allow_none=False)
 
26
    path = RawStr(name='path', allow_none=False)
27
27
 
28
28
    def getOrCreate(self, path):
29
29
        """See `IBinaryPackagePathSet`."""