pmcms-discuss Mailing List for Poor Man's Content Management System
Status: Beta
Brought to you by:
dinsen
You can subscribe to this list here.
| 2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(2) |
Sep
(2) |
Oct
|
Nov
(1) |
Dec
|
|---|
|
From: Anders D. <an...@di...> - 2001-11-24 22:13:55
|
I'm happy to announce the release of PMCMS 0.9.2, which has many features not in 0.9. Here is a list of the changes (big as well as small): - Set mp4h security level 2 when extracting meta information (fixes a potential remote user break-in problem). - pmcms-urlfetch: New utility to fetch (and cache) documents referenced in links to generate the meta information for the link. Also has a regression test. - Bug #450418: Copyright from linked documents overtook local copyright (!) - Experimental PHP support introduced. Currently it's handled as HTML and uses the HTML template (there is no phptemplate.mp4h). - New tool to trim heading and trailing empty lines off a text file is introduced. It's used in the upgrade process, and during regular MHTML processing. - pmcms-upgrade: New tool to upgrade PMCMS files, currently only MHTML files. - Makefile.conf.template: Better instructions for installing on Linux. -- Anders Dinsen an...@di... http://dinsen.net/anders/ |
|
From: Denis B. <ba...@im...> - 2001-09-28 13:54:04
|
On Fri, Sep 28, 2001 at 02:39:57PM +0200, Anders Dinsen wrote: > Hi Denis > > I've begun adding support for user defined entities to MP4H, i.e. argument > less macros that are invoked with ¯o-name; To do it, I've changed the > parser and added a new builtin <define-entity>...</define-entity> similar > to define-tag. There's also a new symbol table for entities. Hi Anders, nice, this is exactly the name I chose too ;) > It works mostly, but evaluates the body of the define-entity builtin too > early. I cannot track the problem. Can you help me. > > I've attached a patch, that can be applied against mp4h-1.2.0. > Try ``make test'' and watch the second entity test fail. Right, I'll have a look tonight. > <define-entity foo>hello</define-entity> > <define-entity bar>&foo;</define-entity>&bar; > <define-entity foo>hello world</define-entity>&bar; There is indeed a problem here, you have to disable entity expansion when defining macros. Maybe the simplest solution is to transform &foo; by <%foo%/> (or any other special name) in expand_user_macro, it should then be expanded as you want. BTW I do not remember rules about entity expansion, are you sure that the latter definition overrides the formers? Denis |
|
From: Anders D. <an...@di...> - 2001-09-28 12:40:12
|
Hi Denis I've begun adding support for user defined entities to MP4H, i.e. argument less macros that are invoked with ¯o-name; To do it, I've changed the parser and added a new builtin <define-entity>...</define-entity> similar to define-tag. There's also a new symbol table for entities. It works mostly, but evaluates the body of the define-entity builtin too early. I cannot track the problem. Can you help me. I've attached a patch, that can be applied against mp4h-1.2.0. Try ``make test'' and watch the second entity test fail. It fails because the following input to mp4h <define-entity foo>hello</define-entity> <define-entity bar>&foo;</define-entity>&bar; <define-entity foo>hello world</define-entity>&bar; should produce: hello hello world but produces: hello hello The trouble seems to be that the body of the define entity macro is evaluated at the time the entity is defined, which is too early. It should not be evaluated until the macro is evaluated. That's the way define-tag works. Can you spot the obvious problem with my code? - Anders -- Anders Dinsen an...@di... http://dinsen.net/anders/ |
|
From: Denis B. <ba...@im...> - 2001-08-15 23:51:23
|
Hi Anders (and others?),
there is a gift for you at
http://www.engelschall.com/sw/mp4h/distrib/
Take care that dynamic modules are disabled by default, you have to type
./configure --enable-modules
The reason is that I want to prefix all global variables and functions
by mp4h_ and so consider module loading as experimental until this has
been done. I will write some doc for mp4h 1.2.1, basically just saying
that this feature will be fully included in version 1.3.0.
All known bugs have been fixed.
Web site has not been updated yet, will do tomorrow.
Denis
PS: webserver seems down just now, I've put a copy at
http://people.debian.org/~barbier/mp4h-1.2.0.tar.gz
|
|
From: Anders D. <an...@di...> - 2001-08-14 17:34:42
|
Hi Welcome to PMCMS, my simple content management system for web sites. For details about it, please look at: http://dinsen.net/pmcms/ PMCMS has a project homepage at Sourceforge, please use it to subscribe to this mailing list, report bugs, download releases, or checkout the latest version from CVS. http://sourceforge.net/projects/pmcms/ Cheers, - Anders -- Anders Dinsen an...@di... http://dinsen.net/anders/ |