[web2py] How to use YAML fixturing with web2py

37 views
Skip to first unread message

Thadeus Burgess

unread,
Apr 22, 2010, 11:18:44 AM4/22/10
to web2py-users
I wrote a blog post on fixutres and pre-loading your database with default data.

http://thadeusb.com/weblog/archive/2010/4/21/using_fixtures_in_web2py/36

I am looking for an implementation to load YAML files that consists of
one file (it only has to perform loading on the most basic YAML
objects). PyYaml is a massive library for the purposes of
redistributing as a plugin.

--
Thadeus


--
Subscription settings: http://groups.google.com/group/web2py/subscribe?hl=en

Yarko Tymciurak

unread,
Apr 22, 2010, 12:28:30 PM4/22/10
to web2py-users
On Apr 22, 10:18 am, Thadeus Burgess <thade...@thadeusb.com> wrote:
> I wrote a blog post on fixutres and pre-loading your database with default data.
>
> http://thadeusb.com/weblog/archive/2010/4/21/using_fixtures_in_web2py/36

Nice - thanks!

Patrick

unread,
Apr 22, 2010, 2:57:10 PM4/22/10
to web2py-users


On Apr 22, 10:18 am, Thadeus Burgess <thade...@thadeusb.com> wrote:
> I wrote a blog post on fixutres and pre-loading your database with default data.
>
> http://thadeusb.com/weblog/archive/2010/4/21/using_fixtures_in_web2py/36
>
> I am looking for an implementation to load YAML files that consists of
> one file (it only has to perform loading on the most basic YAML
> objects). PyYaml is a massive library for the purposes of
> redistributing as a plugin.
>
> --
> Thadeus
>
> --

Wow thanks! I was just discussing with a friend the idea of preloading
data from a file, we were thinking that we would have to put it into a
SQL file. A great read.
Reply all
Reply to author
Forward
0 new messages