Ciao a tutti,<br>ho recentemente installato Plone 3 su un PC con S.O. Fedora Core 6.<br><br>Purtroppo ho 2 problemi che non riesco a risolvere:<br><br>il primo riguarda ArchGenXML:<br>sto leggendo il tutorial presente in <a href="http://plone.org">
plone.org</a><br><a href="http://plone.org/documentation/tutorial/archgenxml-getting-started/intro">http://plone.org/documentation/tutorial/archgenxml-getting-started/intro</a><br><br>ho installato la versione 1.6 beta1 utilizzando il python di Plone3
<br>durante l'installazione mi da alcuni errori:<br><br>byte-compiling build/bdist.linux-i686/egg/archgenxml/templates/widget.py to widget.pyc<br> File "build/bdist.linux-i686/egg/archgenxml/templates/widget.py", line 12
<br> from Products.<dtml-var "klass.getPackage().getProduct().getName()"> import config<br> ^<br>SyntaxError: invalid syntax<br>byte-compiling build/bdist.linux-i686/egg/archgenxml/templates/view_class.py to view_class.pyc
<br> File "build/bdist.linux-i686/egg/archgenxml/templates/view_class.py", line 1<br> <dtml-let assocs="klass.getFromAssociations(aggtypes=['none','aggregation','composite'])"
<br> ^(...)<br><br>poi ancora:<br>Extracting archgenxml-1.6.b1-py2.4.egg to /opt/Plone-3.0/Python-2.4.4/lib/python2.4/site-packages<br> File "/opt/Plone-3.0/Python-2.4.4/lib/python2.4/site-packages/archgenxml-1.6.b1-py2.4.egg
/archgenxml/templates/widget.py", line 12<br> from Products.<dtml-var "klass.getPackage().getProduct().getName()"> import config<br> ^<br>SyntaxError: invalid syntax<br>(...)<br><br>
ma alla fine completa comunque l'installazione.<br>Poi con Umbrello UML Modeler (1.5.71) creo il content-type esattemente come spiegato nel tutorial e poi eseguo il comando "archgenxml nomecontenttype.xmi",<br>
copio la cartella ottenuta in Products e riavvio Plone, installo il prodotto tramite portal setup/AddRemove products.<br>Fino a qui tutto sembra andar bene ma quando vado nella mia cartella personale non posso aggiungere il content type da me creato (non è presente nella lista);
<br>se provo ad aggiungerlo dalla ZMI mi appare un messaggio d'errore, se vado a vedere il log ottengo questo:<br><pre>Traceback (innermost last):<br> Module ZPublisher.Publish, line 119, in publish<br> Module ZPublisher.mapply
, line 83, in mapply<br> Module ZPublisher.Publish, line 47, in missing_name<br> Module ZPublisher.HTTPResponse, line 694, in badRequestError<br>BadRequest: <h2>Site Error</h2><br> <p>An error was encountered while publishing this resource.
<br> </p><br> <p><strong>Invalid request</strong></p><br><br> The parameter, <em>type</em>, was omitted from the request.<p>Make sure to specify all required parameters, and try the request again.</p>
<br> <hr noshade="noshade"/><br><br> <p>Troubleshooting Suggestions</p><br><br> <ul><br> <li>The URL may be incorrect.</li><br> <li>The parameters passed to this resource may be incorrect.</li>
<br> <li>A resource that this resource relies on may be<br> encountering an error.</li><br> </ul><br><br> <p>For more detailed information about the error, please<br> refer to the error log.
<br> </p><br><br> <p>If the error persists please contact the site maintainer.<br> Thank you for your patience.<br><br> </p></pre>Come posso risolvere il problema?<br><br>Il secondo invece riguarda la posta:
<br><br>in Plone i settaggi della mail sono:<br>Mail Server:<br> SMTP server: localhost<br> SMTP port: 25<br> ESMTP username e password vuoti<br>Mail Sender:<br> <label for="form.email_from_name">Site 'From' name
</label>: luigi<br> <label for="form.email_from_address">Site 'From' address</label>
<span class="fieldRequired" title="Required">: luigi@marcusii</span><span class="fieldRequired" title="Required"></span><br><br>questo è il messaggio di errore in /var/log/maillog:<br>Sep 6 16:42:24 marcusII sendmail[31760]: l86EgN4V031760:
to=<<a href="mailto:luigi@marcusII.it">luigi@marcusII.it</a>>, delay=00:00:01, xdelay=00:00:00,
mailer=esmtp, pri=31818, relay=<a href="http://marcusii.it">marcusii.it</a>., dsn=4.0.0, stat=Deferred:
Name server: <a href="http://marcusii.it">marcusii.it</a>.: host name lookup failure<br><br>questo è il file /etc/hosts:<br># Do not remove the following line, or various programs<br># that require network functionality will fail.
<br>::1 marcusII localhost.localdomain localhost<br> <a href="http://127.0.0.1">127.0.0.1</a> localhost marcusII<br><a href="http://192.168.2.84">192.168.2.84</a> marcusII.it<br><a href="http://192.168.2.84">192.168.2.84
</a> <a href="http://marcusii.it">marcusii.it</a><br><br>Grazie in anticipo<br>Alessandro<br>