lastdance: (Default)
[personal profile] lastdance posting in [community profile] memewidth
If this isn't the right place, I'd be happy to be directed elsewhere. I'm looking for any documentation or examples around Dreamwidth's S2 style interface.

I know LJ has a few pages about it in their S2 manual. I can see that http://www.dreamwidth.org/interface/s2/layerid correctly retrives S2 layers, so it's available on Dreamwidth as well.

Are there any existing clients that use this interface for retrieving/uploading layers? Does Dreamwidth's implementation differ from LJ (for example, is it still required to send "application/x-danga-s2-layer" as Content-Type)?

I'd like to be able to use this interface to dynamically change my style layer, so I thought I'd check if any guidelines/best practices/documentation existed before I resorted to the trial-and-error method.

(no subject)

Date: 2009-09-16 12:23 am (UTC)
foxfirefey: A guy looking ridiculous by doing a fashionable posing with a mouse, slinging the cord over his shoulders. (geek)
From: [personal profile] foxfirefey
This isn't the wrong place or even a bad place, although [site community profile] dw_dev might be better.

I don't know of any existing clients using this interface. Currently, DW's implementation only differs in that it appears to have been updated to work with Apache2--which is good. And yeah, looks like the content type is as you remember it. However, if you want it to be changed, it'd be an easy fix. The code behind the S2 interface is here:

http://hg.dwscoalition.org/dw-free/file/5cf6a90a3700/cgi-bin/Apache/LiveJournal/Interface/S2.pm

If that helps you any. And if you need any help deciphering, I'm willing to help.
Edited Date: 2009-09-16 12:23 am (UTC)

(no subject)

Date: 2009-09-16 02:42 am (UTC)
foxfirefey: Look at this wee octopus! LOOK AT IT! (squee)
From: [personal profile] foxfirefey
Glad to be of service! Keep us posted about your project!

April 2011

S M T W T F S
     12
3456789
10111213 141516
17181920212223
24252627282930

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags