Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Динамически создавать классы моделей из xml, yaml файла
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Виталий Попов  
View profile   Translate to Translated (View Original)
 More options Nov 14 2012, 1:17 am
From: Виталий Попов <sk1f....@gmail.com>
Date: Tue, 13 Nov 2012 22:17:19 -0800 (PST)
Local: Wed, Nov 14 2012 1:17 am
Subject: Динамически создавать классы моделей из xml, yaml файла

Привет Всем! Подскажите пожалуйсто как можно реализовать а то я совсем
зашел в тупик. Пытался сделать черех десерелиз но не получилось.
вот кусок кода десерилизации:
input = open("base.xml", "r")
    for ds in serializers.deserialize("xml", input.read()):
        ds.object

Буду очень благодарен!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mikhail Kashkin  
View profile   Translate to Translated (View Original)
 More options Nov 14 2012, 2:44 am
From: Mikhail Kashkin <mkash...@gmail.com>
Date: Wed, 14 Nov 2012 14:44:32 +0700
Local: Wed, Nov 14 2012 2:44 am
Subject: Re: Динамически создавать классы моделей из xml, yaml файла

Мы тут потихоньку пилим свой джванго с блекждеком, yaml и вложенными
интерфейсами. Вот, можно посмотреть код того как мы это для себя
метаклассовую магию сделали https://github.com/xen/formgear/

2012/11/14 Виталий Попов <sk1f....@gmail.com>

> Привет Всем! Подскажите пожалуйсто как можно реализовать а то я совсем
> зашел в тупик. Пытался сделать черех десерелиз но не получилось.
> вот кусок кода десерилизации:
> input = open("base.xml", "r")
>     for ds in serializers.deserialize("xml", input.read()):
>         ds.object

> Буду очень благодарен!

> --

--
Mikhail Kashkin
http://comfort.ly/
http://www.vurt.ru/

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »