Re: Frage zu FileSystemStorage

Hanno Schulz <[email protected]>
Newsgroups gmane.comp.web.zope.german
Message-ID <[email protected]>
Hi,

für eigene typen muss das Schema, speziell der Storage Type geändert werden.
http://pypi.python.org/pypi/iw.fss#using-fss-in-your-content-types

Beispiel aus der Doku
---------------------

# Usual Zope/CMF/Plone/Archetypes imports
...
from iw.fss.FileSystemStorage import FileSystemStorage
...
my_schema = Schema((
    FileField('file',
              ...
              storage=FileSystemStorage(),
              widget=FileWidget(...)
              ),
    ...
    ))
 ...

Gruß
Hanno

Am 10.03.2011 14:26, schrieb Viktor Errath:
> Hallo
> 
> Ich versuche gerade aus dem Produkt iw.fss schlau zu werden. Das habe ich via Buildout installiert und so konfiguriert, dass es nur Files ins Dateisystem auslagert. Das funktioniert auch soweit ganz gut. Ich habe jedoch ein großes Problem/Phänomen:
> 
> Bei "normalen" ATFiles funktioniert es von Beginn an. Bei einem eigenen Produkt (das das ATFile-Schema um ein BooleanWidget, ein Imagewidget sowie ein RichWidget erweitert) funktioniert es erst, wenn ich das Produkt nach einem Neustart der Instanz 1x "refresht" habe.
> Im Log-File kommen werden keine Fehlermeldungen mitgeloggt. Das File wird halt einfach anstatt im Dateisystem in der ZODB gespeichert. 
> 
> Hat hier vielleicht jemand einen Tipp für mich?
> 
> Mit freundlichen Grüßen
> Errath Viktor
> 
> 
> 
> _______________________________________________
> zope mailing list
> [email protected]
> https://mail.dzug.org/mailman/listinfo/zope
> 

-
Diese Information ist ausschliesslich fuer den Adressaten bestimmt und kann 
vertraulich oder gesetzlich geschuetzte Informationen enthalten. Wenn Sie nicht 
der bestimmungsgemaesse Adressat sind, unterrichten Sie bitte den Absender und 
vernichten Sie diese Mail.
Anderen als dem bestimmungsgemaessen Adressaten ist es untersagt, diese E-Mail 
weiterzuleiten oder ihren Inhalt auf welche Weise auch immer zu verwenden. Wir 
verwenden aktuelle Virenschutzprogramme und Content-Filter.
Fuer Schaeden, die dem Empfaenger gleichwohl durch von uns zugesandte mit Viren 
befallene E-Mails entstehen, schliessen wir jede Haftung aus.
-         
This e-mail and any attachments is confidential and solely intended for the 
indicated addressee. If you are not the intended recipient or an authorized 
person, please note, that any form of notice, disclosure, reproduction or 
circulation of the contents of this mail is prohibited. In this case, please 
immediately inform the sender of the e-mail an destroy this e-mail. We use 
updated antivirus protection software. We do not accept any responsibility for 
damages caused anyhow by viruses.
-
catWorkX GmbH: Sitz der Gesellschaft in Hamburg, HRB: 71494, USt-IdNr.: 
DE201625856, Geschaeftsfuehrung: Dipl. Kfm. Andreas Girnuweit, Dipl.-Ing. Oliver 
Groht, Dr. Wolfgang Tank


_______________________________________________
zope mailing list
[email protected]
https://mail.dzug.org/mailman/listinfo/zope
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.