Python Openimmo Ansatz

Vladislav Vorobiev <[email protected]>
Newsgroups gmane.comp.web.zope.german
Message-ID <[email protected]>
Hallo,

ich möchte für Openimmo Eingabemasken erstellen, also Formulare generieren.
Bei Openimmo handelt es sich um eine umfangreiche XMLSchema Datei. Ich
habe die angehängt.

Mir fallen zwei ansetze ein:

Interfaces für die Klassen zu erstellen mit Attributen und Methoden ala

class IImmobilie(interface)
  energietyp= Choice( title=_(u"energieausweistyp"),
                      values={„PASSIVHAUS“, „NIEDRIGENERGIE“, …. },
                      required=True,
                      )

  objekttitel = TextLine(
        title=u"customer comment",
        description=u"",
        required=True
        )
......

Und die Datei manuell abklappern. Es ist natürlich ein Riesen Aufwand
und bei neuen Versionen von Openimmo geht alles von vorne los.

Der Zweite Ansatz ist die Datei dynamisch auszulesen und Interfaces zu
generieren um danach mit formlib Formulare zu erstellen. Ich frage
mich ob nicht jemand daran arbeiten bzw. schon implementiert hat. Gibt
es vielleicht Hilfsbibliotheken?  Welche XML Bibliothek ist dafür mehr
geigten?

Vielleicht gibt es auch andere Ansetze wie würdet Ihr vorgehen?

Gruß
Vlad

-- 
Best Regards
Vlad Vorobiev



_______________________________________________
zope mailing list
[email protected]
https://mail.dzug.org/mailman/listinfo/zope
openimmo-feedback_123.xsd (application/octet-stream, 7.4 KB) - not displayed
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.