[geeklog-devel] Webservices API in CVS (was: About the "internal" and Webservices APIs)

Dirk Haun dirk at haun-online.de
Mon Aug 13 13:55:37 EDT 2007

Dirk Haun wrote:

>So apparently it's expecting an Atom service document (whatever that
>is ...), not the introspection I tried to feed it with. Oh well.

Okay, cleared up that confusion (thanks, Ramnath): The introspection
_is_ the service document. This was apparently renamed quite late in the
process so different folks use different names for the same thing now.
And the content type was also wrong.

So let's try that again (slightly censored):

dirk at pandora:~> mkdir geeklog
dirk at pandora:~> ./appfs.rb geeklog --svc-url http://www.example.com/
webservices/atom/?introspection --user Dirk --password *censored* &
[1] 11491
dirk at pandora:~> ll geeklog/
total 0
dr-xr-xr-x 1 dirk dirk 4096 Aug 13 19:46 Geeklog_CVS/

Sweet! That's the name of my Geeklog site here.

dirk at pandora:~> ll geeklog/Geeklog_CVS/
total 0
dr-xr-xr-x 1 dirk dirk 4096 Aug 13 19:46 Entries/
dirk at pandora:~> ll geeklog/Geeklog_CVS/Entries/
total 0
dr-xr-xr-x 1 dirk dirk 4096 Aug 13 19:46 drafts/
dr-xr-xr-x 1 dirk dirk 4096 Aug 13 19:46 published/

That's the appfs separating content into drafts and visible things.
Since the static pages don't have a draft flag, that directory is empty.

dirk at pandora:~> ll geeklog/Geeklog_CVS/Entries/published/
total 0
-rw-rw-rw- 1 dirk dirk 0 Aug 13 19:46 Anonymous_CVS_Access
-rw-rw-rw- 1 dirk dirk 0 Aug 13 19:46 Bounties!

... and those are my static pages!

Editing doesn't seem to work yet (haven't checked why), but deletion
works (just remove the file and the page is gone from Geeklog). And you
can view the content.

Now imagine to open those files in your favourite word processor. Or
just drop new files in that directory and have them appear on your website.

Can everybody see now why I'm so excited about this? This is not only
cool, this could actually become damn useful.

bye, Dirk

Geeklog Day at FrOSCon: August 25, 2007 - See you there!

More information about the geeklog-devel mailing list