Quoting Vito Falco <[email protected]>:
1) è possibile con un bello sbattimento, se il sito web NON CONTIENE già
oggetti istanziati
ok; in effetti speravo fosse solo una questione di mettere un
folderish=True :(
2) hai letto quello che c'è scritto sul sito plone a proposito di quel
widget?
ReferenceBrowserWidget
A sophisticated widget for browsing, adding and deleting references.
Standard in Plone 2.5+, available for earlier versions as an add-on
product.
Import from Products.ATReferenceBrowserWidget.ATReferenceBrowserWidget in
Plone 2.5 and 3. In Plone 4, this widget has been improved and now lives
inarchetypes.referencebrowserwidget.ReferenceBrowserWidget.
ehm, si lo avevo letto, ma evidentemente non ne avevo colto le
implicazioni. Quindi nel mio contenttype importo:
referencebrowserwidget da archetypes, e nello schema metto:
widget=referencebrowserwidget.ReferenceBrowserWidget, o c'è dell'altro?
Grazie,
Massimiliano.
Vito
Il giorno 01 giugno 2012 18:05, Massimiliano De Ruosi
<[email protected]>ha scritto:
ciao lista,
ho un paio di domande su archetypes:
1) Se definisco un nuovo portal type come non-folderish, poi posso
trasformarlo in folderish "impunemente" modificando lo schema?
2) Stavo definendo un nuovo portal type (folderish), usando paster e i
local commands. Ho aggiunto un paio di TextField, ed è andato tutto bene.
Ho provato ad aggiungere un ReferenceField con ReferenceBrowserWidget, e il
riavvio del server è fallito con il messaggio:
...
AttributeError: 'module' object has no attribute 'ReferenceBrowserWidget'
Usando il ReferenceWidget invece funziona. Cosa sto sbagliando?
Grazie in anticipo,
Massimiliano
------------------------------**------------------------------**----------
SEMEL (SErvizio di Messaging ELettronico) - AINF, Universita' di Udine
______________________________**_________________
Plone-IT mailing list
[email protected]
https://lists.plone.org/**mailman/listinfo/plone-plone-**it<https://lists.plone.org/mailman/listinfo/plone-plone-it>
http://plone-regional-forums.**221720.n2.nabble.com/Plone-**
Italy-f221721.html<http://plone-regional-forums.221720.n2.nabble.com/Plone-Italy-f221721.html>
--
Plone: web sounds better.
http://appuntiplone.wordpress.com (Bari, IT) -
http://notasdeplone.wordpress.com (ES)
Massimiliano De Ruosi
---------------------
AINF (Area servizi informatici e multimediali)
Universita' degli Studi di Udine
Via delle Scienze, 208
33100, Udine (UD) ITALY
Tel. +39 (0)432 55 8893
Cell. +39 320 4350861
Fax: +39 (0)432 55 8911 (segr. AINF)
email: [email protected]
----------------------------------------------------------------------
SEMEL (SErvizio di Messaging ELettronico) - AINF, Universita' di Udine
_______________________________________________
Plone-IT mailing list
[email protected]
https://lists.plone.org/mailman/listinfo/plone-plone-it
http://plone-regional-forums.221720.n2.nabble.com/Plone-Italy-f221721.html