Terfin / pyodata-old

An OData framework for Python. It will include a full (as much as possible) implementation of the OData Protocol v4.0
MIT License
0 stars 0 forks source link

Create a metadata representation for entity types #6

Open Terfin opened 10 years ago

Terfin commented 10 years ago

This is the part where we need to create a reasonable API. What will we be using for this?

  1. Create the entity type metaclass which will be used to expose a comfortable API for creating entity types.
  2. Implement the metadata XML representation according to the CSDL described in the OData protocol, at the Entity Type level currently (http://docs.oasis-open.org/odata/odata/v4.0/os/part3-csdl/odata-v4.0-os-part3-csdl.html)

    2.a. Use lxml to create the XML tree.

    2.b. For every attribute that is available for an XML tag, make sure that there exists an implementation in the relevant type (Entity types and property types) If there is no implementation available, point it out. If the attribute is of Entity Type, please implement it on the way. If it is about property types (EDM Types) which are not listed under this issue, a separate issue will be created and assigned.