Posted by cweagans on January 16, 2010 at 6:32pm
4 followers
Jump to:
| Project: | Blog API |
| Version: | 7.x-2.x-dev |
| Component: | Code |
| Category: | task |
| Priority: | normal |
| Assigned: | cweagans |
| Status: | closed (fixed) |
Issue Summary
We should split out the different methods of blog api into abstracted backends. So, blog api would be the core, required module. Then we'd have something like Blogger Backend, MovableType Backend, etc. for each of the different communication methods
Comments
#1
the core of blogapi_rsd should also be changed, because this is the way clients are informed about available interfaces.
Also, I'd suggest that even if blogapi will be the required core module, it also provides some minimal stuff, like the current implemented APIs.. what do you think?
#2
Yeah, so in the blogapi_xmlrpc function, I'd kind of envisioned a sub hook that the backends could implement to add their entries (and also alter the blogapi_rsd at the same time)
#3
My concerns..
This is a great idea, as good as difficult to acomplish. The reason? important actor here is the client software used, that one does not understand of API separation, it may use one or other, or some of them at the same time. E.g. Zoundry raven, I'm using, uses the three of them, moveabletype for uploads, blogger to get user information and metaweblog to post the entries.
So, what I think are key points in this:
So we split the module into several:
blogapi core module to provide what? permissions? a default settings page of what? The only one thing that looks reasonable to centralize here is the RSD generation, it is: make this module the one taking care about CLIENT software, NO MORE NO LESS. How can we deal here with permissions about functionality not being enabled? why take care of upload restrictions when there is no API enabling upload functionality? I'd say, this module that will end up doing just a few things is going to be the core required module.
submodules Providing different API and its own settings page, also each submodule should define its own services and menu handlers (therefore its own permissions). Yeah, I totally agree with this approach, but the problem here is that a site administrator needs to know wich APIs must be enabled depending on the client software in use.
However, as I said, I totally agree with the splitting, so we can just start splitting API and providing that RSD hook for the modules. Also, as pointed by jrglasgow, the manifest stuff could be included into the blogapi module to allow wlw software use this module.
so.. do we have a plan?
So, three main issues: split the submodules (this one), the infamous hook and the wlw support..
#4
Yeah, thanks for the summary ilo. I think that plan is a good way to go. I think the core module should provide some default settings, such as what content types can be posted, as well as some file upload defaults (file types, size limits, etc.). Then, the API modules can have their own settings to override the default if needed.
#5
yoink! Just one try.. if I can't I'll give even faster than I assigned to myself! lol
#6
Sorry cweagans, I have already started, but these days I'm really busy and I can't stale this issue, so unassigned for now..
#7
I may have some time for this on the weekend.
#8
So.. cweagans, any update on this one? I guess no.. :(
#9
Yeah, there's some progress. It's going slow, though. I should have a patch ready to go soon though.
Also: This patch will -only- be splitting Blog API into separate modules (blog api core + backends). New functionality can be added incrementally in other issues.
Maybe I can get this wrapped up this weekend...
#10
Oh, great!! I'll be on devel this weekend, let's see if we can arrange an irc meeting again.
#11
Maybe. I won't be available until tomorrow at the earliest, so maybe we can touch base then. My first priority is getting Blog API ready to roll, so I may stay off IRC until this patch is done, in which case, you'll get a notification when we're ready to go. Also, if you have a few spare moments over the next few days, it would be really really really really awesome if you could talk to somebody about getting Blog API on the contrib testing list as kind of a late include. Maybe it's still possible? I dunno...but it would really help with getting this ready to go, I think.
#12
Ok, I'll try to put this one into the testbot list in the time you finish the patch.
#13
Looks like I just missed the issue and write in the wrong one.. TTestbot issue follow up at: http://drupal.org/node/689990#comment-2621680
#14
Patch will be available in approximately 12-13 hours (my Sunday got a little hectic =/ )
#15
Take your time cweagans, this one is a little bit complex.
#16
Looking forward to this! If you need any support specific to Windows Live Writer, please let me know: jleonar at microsoft
#18
This is tied at the hips with #728198: Update to work with Drupal 7 beta 3.
#19
This is done, but still will probably need work. See current code @ Github.
#20
This is done in the 7.x-2.x branch.
#21
Automatically closed -- issue fixed for 2 weeks with no activity.