1
我使用pyamf谷歌應用程序引擎。我試圖從pyamf編碼中排除一個屬性。這是我使用的語法:pyamf排除屬性不工作db.ReferenceProperty
class Comment(db.Model):
class __amf__:
exclude = ('article')
article = db.ReferenceProperty(Article)
comment = db.TextProperty()
這不會對工作的ReferenceProperty,但如果我嘗試用「評論」排除屬性屬性它的工作原理。我注意到exclude屬性在一個ReferenceProperty上工作,它沒有包含另一個ReferenceProperty屬性的類。在這種情況下,Article類將另一個ReferenceProperty保存到另一個類中。任何想法可能是什麼問題?
在此先感謝
謝謝,我添加了逗號。但它不能解決pyamf的問題。 – doorman 2011-03-06 11:10:29