Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Management of nested StorageObj is not working #319

Open
yolandab opened this issue Apr 8, 2020 · 0 comments
Open

Management of nested StorageObj is not working #319

yolandab opened this issue Apr 8, 2020 · 0 comments
Labels

Comments

@yolandab
Copy link
Collaborator

yolandab commented Apr 8, 2020

Given the following class definitions

class SO1 (StorageObj):
'''
@ClassField attr1 __main__.SO2
'''
class SO2 (StorageObj):
'''
@ClassField attr2 int
'''

If we set the values with the following code that assigns a persistent object to the nested StorageObj :

o=SO1("name_of_SO1")
a=SO2("name_of_SO2")
o.attr1=a
o.attr1.attr2=4

And we try to use it from a different application:

o=SO1("name_of_SO1")
print(o.attr1.attr2)

Throws the exception "Value not found".
If the assigned StorageObj is not persistent this code works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant