[storm] BoundReferenceSet limiting results
Михаил
eternalurlin at googlemail.com
Mon Feb 1 17:58:05 GMT 2010
Hello there!
I have a table like
class Servers(Storm):
__storm_table__ = 'servers'
id = Int(primary = True)
ip = Int()
hostname = Unicode()
path = Unicode()
comment = Unicode()
wait = Int()
disk_available = Int()
disk_used = Int()
priority = Float()
files = ReferenceSet(id, 'Files.server_id')
How I can limit result of BoundReferenceSet object (Servers.files)? I tried
s = store.get(Servers, 1)
s.files[0:10]
but got the error:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: 'BoundReferenceSet' object is unsubscriptable
More information about the storm
mailing list