Could you explain again what is does?

On Dec 1, 1:48 am, Thadeus Burgess <thade...@thadeusb.com> wrote:
> Since dreamhost insists on trying to run .py files instead of just serve
> them, here is a working link
>
> http://static.thadeusb.com/wordpress2python.txt
>
> -Thadeus
>
> On Tue, Dec 1, 2009 at 1:36 AM, Thadeus Burgess <thade...@thadeusb.com>wrote:
>
> > Here ya go, hope this helps convince you to migrate from wordpress to
> > web2py :)
>
> > import, pass it an open file to the wordpress exported xml/rss. And get
> > back a python dictionary with everything you should need :)
>
> > Then it is only a matter of inserting the data into your database.
>
> >http://static.thadeusb.com/wordpress2python.py
>
> > Here is the dict structure returned by the function
>
> >     db {
> >         title
> >         link
> >         description
> >         pub_date
> >         language
> >         categories ->
> >             name
> >             slug
> >             parent
> >             description (if available)
> >         tags ->
> >             name
> >             slug
> >         posts ->
> >             id
> >             title
> >             slug
> >             status
> >             type
> >             link
> >             pub_date
> >             description
> >             content
> >             post_date
> >             post_date_gmt
> >             categories -> flat array
> >             tags -> flat array
> >             comments ->
> >                 id
> >                 author
> >                 author_email
> >                 author_url
> >                 author_ip
> >                 date
> >                 date_gmt
> >                 content
> >                 approved
> >     }
>
> > Cheers,
>
> > -Thadeus
>
>

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.


Reply via email to