
david at kineticode
Feb 9, 2002, 6:44 PM
Post #2 of 22
(5182 views)
Permalink
|
|
Re: [Bricolage-Devel] A few questions [LONG]
[In reply to]
|
|
On Sat, 2002-02-09 at 15:43, Darren Graves wrote: > Firstly a big thanks for putting together Bricolage, I had just about > given up looking for a usable Perl based CMS. Cool -- glad to have you joining us! > * The media publishing mechanism seems to break if you have a media item > with an unknown content type (I tried to publish a .gz file). <snip /> I believe I fixed this problem with the 1.2.0 release. See the DEF_MEDIA_TYPE directive as documented in Bric::Admin. I'm aware that the media type management could use an interface for adding media types, however. I'll add that to the To Do list. > * There a a few typos in Bric::Biz::Asset::Business. Briefly, put > get_all_keywords() only returned the assets keywords and it's > get_source__id() no get_source_id(). I've attached a patch fixing this. Thanks -- good catch! I've added the patch. > Also, the patch contains a modification to enable a slug to be specified > for a "fixed" page (I can't see any good reason as to why you can't > specify one - though I might be missing something). Well, the original idea was that Fixed stories wouldn't have slugs. But with the proposed addition of a preference specifying how story URIs are built, it will become something we'll want. Right now, slugs aren't used for anything for fixed stories, but in anticipation of the preference, I'll go ahead and apply your patch so that they're at least stored in the database for future use. > * Why can't a subelement of an element be the element again. For > instance I want to define nested section containers recursively i.e <snip /> Because one should not be able to make top-level elements (i.e., story and media types) be subelements. Actually, I think it'd be cool to allow this eventually, but I think it'd cause more problems than it's worth at this point. But I don't see why non-top-level elements can't contain themselves. In that case, the change would be $excl_sub = sub { $_->[0]->get_top_level || ! chk_authz($_[0], READ, 1) }; What does everybody think? > * Why are elements tied to a specific burner? I can't quite see the > logic behind this. Surely, you should just assign a burner to an output > channel, thus enabling element reuse if you ever decide to use a > different burner (or want to mix and match). I'm not sure about this. Sam would know better, I think. > * I'm not sure that the user/group authorisation mechanism is 100% > correct. At present, it isn't possible to give a user membership to the > user admin or group admin groups without also giving them the ability to > upgrade themselves to become global administrators. Well, one could call this a feature. In most systems that I'm aware of, if you make someone an administrator, that means they can administer themselves. Um, but you're right, they can't *increase* their own permissions. Would you file a bug report on that? I'll have to think about how to work around that issue. http://bricolage-bugzilla.thepirtgroup.com/ > I've also been playing around retrofitting an XML/XSLT burner into > Bricolage. At present, there are two parts to the burner. There is a > generator, that automatically converts an asset object into XML and > then, if any XSLT templates have been specified (via Bricolage's > templating mechanism), to apply them before outputing the results. At > present, it's build around LibXML/LibXSLT, but there is no reason why > this dependancy can't be abstracted out, so that other XSLT processors > can pluged in. Excellent! You might want to look at the SOAP stuff that Sam is writing for the 1.4.0 release. It's in CVS right now. > The generator simply iterates through the tree, creating XML nodes for > each element within the asset in turn. The node is generated using the > following rules: > > * The node name is set to the element or field names converted to lower > case, spaces removed and anything in brackets stripped. > > * Any element or field names beginning with @ are represented by > attributes. > > * The story metadata is automatically inserted under the root node, with > the name info appended to the root name e.g: > > <article> > <articleinfo> > <!-- story metadata here --> > </articleinfo> > </article> > * Related stories and media items are represented by xlinks Hmmm...I think I'd rather see each of these in an "Element" tag that then has a "name" attribute. But again, you should get with Sam on what he's doing with SOAP. I think he might be creating a DTD for Bricolage stories. > This is flexible enough for you to be able to model things such as > editing docbook documents within Bricolage (though, things such as > editing tables is a bit cumbersome). <snip /> This looks like a good contribution. Hopefully I can look at it in more detail so I can respond to your message some more later this week. Regards, David -- David Wheeler AIM: dwTheory david [at] kineticode ICQ: 15726394 Yahoo!: dew7e Jabber: Theory [at] jabber Kineticode. Setting knowledge in motion.(sm) _______________________________________________ Bricolage-Devel mailing list Bricolage-Devel [at] lists https://lists.sourceforge.net/lists/listinfo/bricolage-devel
|