rest2web-develop Mailing List for rest2web (Page 16)
Brought to you by:
mjfoord
You can subscribe to this list here.
2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
(74) |
Aug
(71) |
Sep
(6) |
Oct
(6) |
Nov
(3) |
Dec
(7) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2006 |
Jan
(8) |
Feb
(17) |
Mar
(16) |
Apr
(48) |
May
(9) |
Jun
|
Jul
(7) |
Aug
(93) |
Sep
(18) |
Oct
(17) |
Nov
(22) |
Dec
(11) |
2007 |
Jan
(11) |
Feb
|
Mar
(61) |
Apr
(14) |
May
(3) |
Jun
|
Jul
(13) |
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
(6) |
2008 |
Jan
|
Feb
|
Mar
(6) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(7) |
Oct
(2) |
Nov
(7) |
Dec
(7) |
2009 |
Jan
(2) |
Feb
|
Mar
(4) |
Apr
|
May
(4) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(2) |
Dec
|
2010 |
Jan
(1) |
Feb
(1) |
Mar
(5) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(6) |
Nov
|
Dec
|
2011 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(14) |
Sep
(2) |
Oct
(1) |
Nov
(3) |
Dec
|
2012 |
Jan
|
Feb
(1) |
Mar
(1) |
Apr
(1) |
May
(5) |
Jun
(2) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
(2) |
2013 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
(1) |
2014 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(3) |
Nov
(2) |
Dec
|
2015 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(4) |
2016 |
Jan
(2) |
Feb
(5) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
(1) |
Nov
|
Dec
|
2017 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: martin f k. <ma...@ma...> - 2006-08-04 09:29:05
|
also sprach Michael Foord <mi...@pc...> [2006.08.03.2322 +0100]: > If this happens there will be a bug tracker at : >=20 > http://bugs.debian.org/rest2web >=20 > Which does not yet exist, but : >=20 > http://bugs.debian.org/rest2web;pend-exc=3Ddone;include=3Dupstream;exclud= e=3Dwontfix Clarification: I will upload the Debian package RSN now, then the above links will work. The second one is intended for Michael as it lists only those bugs I/we mark as upstream-relevant, and which have not been closed or marked wontfix. http://bugs.debian.org has the details. --=20 martin; (greetings from the heart of the sun.) \____ echo mailto: !#^."<*>"|tr "<*> mailto:" net@madduck =20 spamtraps: mad...@ma... =20 "ah, but a man's reach should exceed his grasp, or what's a heaven for?" -- robert browning |
From: Michael F. <fuz...@vo...> - 2006-08-03 22:47:07
|
martin f krafft wrote: > [I am not yet subscribed to the list, so please CC] > > >> I guess it could make a list of all the files in directories it >> outputs to, and remove from the list any that it puts there. When >> it has completed its run it could delete any still left in the >> list. Would that do, or can you think of a better approach ? >> > > The more I think about it, the more I want the files not to be > deleted, actually. > > Cool. :-) Good choice... Michael http://www.voidspace.org.uk/python/index.shtml > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ------------------------------------------------------------------------ > > _______________________________________________ > Rest2web-develop mailing list > Res...@li... > https://lists.sourceforge.net/lists/listinfo/rest2web-develop > |
From: martin f k. <ma...@ma...> - 2006-08-03 22:44:14
|
[I am not yet subscribed to the list, so please CC] > I guess it could make a list of all the files in directories it > outputs to, and remove from the list any that it puts there. When > it has completed its run it could delete any still left in the > list. Would that do, or can you think of a better approach ? The more I think about it, the more I want the files not to be deleted, actually. --=20 martin; (greetings from the heart of the sun.) \____ echo mailto: !#^."<*>"|tr "<*> mailto:" net@madduck =20 spamtraps: mad...@ma... =20 what do you mean, it's not packaged in debian? |
From: Michael F. <mi...@pc...> - 2006-08-03 22:27:26
|
Michael Foord wrote: > > > -------- Original Message -------- > Subject: file removal > Date: Thu, 3 Aug 2006 11:04:47 +0100 > From: martin f krafft <ma...@ma...> > To: Michael Foord <fuz...@vo...> > > > If I remove foo.txt, I guess it's by design that foo.html is *not* > deleted? It makes sense, but could we have an option to turn on > automatic html file deletion? Well... rest2web doesn't (yet) cache its output. It has no knowledge of how files that exist in the output directory got there. In fact I use rest2web to generate only part of my website. I definitely *wouldn't* want it deleting all files in the output directory that it didn't put there. I guess it could make a list of all the files in directories it outputs to, and remove from the list any that it puts there. When it has completed its run it could delete any still left in the list. Would that do, or can you think of a better approach ? This won't play well with the gallery plugin of course. The difficulty is that rest2web can copy files into the output directory, using the 'file' command in the restindex. If you deleted a source file, would you expect rest2web to delete files that are there because it copied them across last time ? If you wouldn't expect it to delete them, maybe I can restrict files be deleted to 'html' and 'shtml' files (unless you use rest2web to generate XML/RSS as well...) All the best, Fuzzyman http://www.voidspace.org.uk/python/index.shtml |
From: Michael F. <mi...@pc...> - 2006-08-03 22:19:37
|
Also posted to the rest2web -develop list on the off chance that the mailing list actually works... Discussion on bugfixes prior to new release and *possible* (probable ?) packaging as a debian package. If this happens there will be a bug tracker at : http://bugs.debian.org/rest2web Which does not yet exist, but : http://bugs.debian.org/rest2web;pend-exc=done;include=upstream;exclude=wontfix > -------- Original Message -------- > Subject: Re: Issue Tracking > Date: Thu, 3 Aug 2006 15:15:14 +0100 > From: martin f krafft <ma...@ma...> > To: Michael Foord <fuz...@vo...> > > also sprach Michael Foord <fuz...@vo...> [2006.08.03.1456 > +0100]: >> Are you able to set it up ? It sounds like a good idea. If you >> need me to 'make the first step' (or second, or third...) let me >> know. > > It will be set up automatically once I make the first upload. Right > now, the package fails to build because of the > reference/uservalues.txt error I sent to you yesterday. But once it > builds without interruption, I will upload an SVN snapshot. > > Note that I have to > > sed -e 's,pause = .*,pause = False,' make_dist.py > > make_dist_nopause.py; > python make_dist_nopause.py; > rm -f make_dist_nopause.py; > > during build. Maybe make_dist.py could be made to not pause, or > could get a command line argument to prevent the pause? make_dist.py now takes a 'nopause' option as a command line argument. Breadcrumbs patch applied. SVN access granted. Please don't use it until *after* the release. Whilst I'm preparing a release I'd rather apply patches manually. Perhaps you could confirm that it works though (or at least tell me if it doesn't). By the way, in the absence of a working mailing list, I'm happy (and grateful) to receive bug reports directly. Fixed bug when ``final_encoding`` is ``None``. I don't think I'm going to be able to setup an svn commit' mailing list on the current repository. I've asked 'webfaction' and am awaiting confirmation. If they say no I'll have to consider what to do. Default config file is now ``r2w.ini``. ``rest2web.ini`` is still supported for backwards compatibility. (To be removed in a future version). Fixed bug with ``standerr`` where no logfile is used. Looks like their is a bug in 'thispage' (i.e. it doesn't work). I'm fixing this now (I hope). All the best, Fuzzyman http://www.voidspace.org.uk/python/index.shtml |
From: Michael F. <fuz...@vo...> - 2006-07-27 22:05:49
|
Hello all, There has been a slight update in subversion. This is mainly minor code and document changes. It does specifically address the three issues reported a while ago by Andrew Ittner : "KeyError: '_set_uservalues'" problem due to using an old macros file (no longer fails) Failed due to "``<* ... *>``. For multiple lines of code it is ``<$ ... $>``" in the changelog.txt (Fixed by adding a {lt}macro) Problem that make_dist.py deletes the parent rest2web directory. make_dist now creates the distribution in a subdirectory called 'rest2web-dist'. I'm going to complete the documentation for the changes in rest2web so far and release this as 0.5.0beta. This will take a week or so. This means Andrew's quickstart guide will finally go online ! Fuzzyman http://www.voidspace.org.uk/python/index.shtml |
From: Michael F. <fuz...@vo...> - 2006-07-19 22:16:21
|
Brain Murphy wrote: > I can now import it....how do i get it running? rest2web isn't intended to be used by importing, but by running the main script which is called rest2web.py or r2w.py (with an appropriate config file). It needs to be run from the command line : See http://www.voidspace.org.uk/python/rest2web/tutorial.html#the-config-file There is also a very good quickstart guide, by Andrew Ittner. This will become part of the docs when I have Movable Python out of the way. In the meantime you can read the text version at : http://svn.rest2web.python-hosting.com/trunk/docs/quickstart.txt All the best, Fuzzyman http://www.voidspace.org.uk/python/index.shtml > Brian > > */Davy Mitchell <daf...@gm...>/* wrote: > > This should help: > http://www.voidspace.org.uk/python/rest2web/introduction.html > > Cheers, > Davy > > -- > Davy Mitchell > > Mood News > - BBC News Headlines Auto-Classified as Good, Bad or Neutral. > http://www.latedecember.com/sites/moodnews/ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to > share your > opinions on IT & business topics through brief surveys -- and earn > cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Rest2web-develop mailing list > Res...@li... > https://lists.sourceforge.net/lists/listinfo/rest2web-develop > > > ------------------------------------------------------------------------ > Inbox full of spam? > <http://us.rd.yahoo.com/mail/uk/taglines/default/nowyoucan/spam_1gb/*http://us.rd.yahoo.com/evt=40565/*http://uk.docs.yahoo.com/nowyoucan.html> > Get leading spam protection and 1GB storage with All New Yahoo! Mail. > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ------------------------------------------------------------------------ > > _______________________________________________ > Rest2web-develop mailing list > Res...@li... > https://lists.sourceforge.net/lists/listinfo/rest2web-develop > |
From: Brain M. <bri...@ya...> - 2006-07-19 21:36:25
|
I can now import it....how do i get it running? Brian Davy Mitchell <daf...@gm...> wrote: This should help: http://www.voidspace.org.uk/python/rest2web/introduction.html Cheers, Davy -- Davy Mitchell Mood News - BBC News Headlines Auto-Classified as Good, Bad or Neutral. http://www.latedecember.com/sites/moodnews/ ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Rest2web-develop mailing list Res...@li... https://lists.sourceforge.net/lists/listinfo/rest2web-develop --------------------------------- Inbox full of spam? Get leading spam protection and 1GB storage with All New Yahoo! Mail. |
From: Brain M. <bri...@ya...> - 2006-07-19 21:34:48
|
I can now import it....how do i get it running? Brian Davy Mitchell <daf...@gm...> wrote: This should help: http://www.voidspace.org.uk/python/rest2web/introduction.html Cheers, Davy -- Davy Mitchell Mood News - BBC News Headlines Auto-Classified as Good, Bad or Neutral. http://www.latedecember.com/sites/moodnews/ ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Rest2web-develop mailing list Res...@li... https://lists.sourceforge.net/lists/listinfo/rest2web-develop --------------------------------- Inbox full of spam? Get leading spam protection and 1GB storage with All New Yahoo! Mail. |
From: Brain M. <bri...@ya...> - 2006-07-19 21:21:26
|
Thank you Brian Davy Mitchell <daf...@gm...> wrote: This should help: http://www.voidspace.org.uk/python/rest2web/introduction.html Cheers, Davy -- Davy Mitchell Mood News - BBC News Headlines Auto-Classified as Good, Bad or Neutral. http://www.latedecember.com/sites/moodnews/ ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Rest2web-develop mailing list Res...@li... https://lists.sourceforge.net/lists/listinfo/rest2web-develop --------------------------------- To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. |
From: Davy M. <daf...@gm...> - 2006-07-19 21:20:22
|
This should help: http://www.voidspace.org.uk/python/rest2web/introduction.html Cheers, Davy -- Davy Mitchell Mood News - BBC News Headlines Auto-Classified as Good, Bad or Neutral. http://www.latedecember.com/sites/moodnews/ |
From: Brain M. <bri...@ya...> - 2006-07-19 20:33:13
|
Hello, I have been having some trouble installing this program. I am certain it is a fault of my own, for I do not know a lot about computers, I was hoping to use this program so that my parents can build a web site, I have python on my computer, and I have downloaded this program, but i can not figure out how to install it or run it. can some one help me please, Brian --------------------------------- All new Yahoo! Mail "The new Interface is stunning in its simplicity and ease of use." - PC Magazine |
From: Michael F. <fuz...@vo...> - 2006-05-18 06:04:44
|
Quick reply, fixes to follow. Andrew Ittner wrote: > 3 problems, the first major: if my local svn checkout directory is named > "rest2web", running make_dist.py will WIPE IT OUT. Complete deletion, no > warning. > > Double-plus-ungood. I suggest a warning, both in the README and when > make_dist.py is run. > > LOL. Oops, sorry about that. :-) > The second problem (once I checked out the code to rest2webtrunk/) occurs > when I run "python r2w.py" to build the defaults. It zips through a bunch, > and then blows up with this: > > Processing "reference" directory. > Reading "reference/changelog.txt". > Guessing encoding. We guessed: ISO8859-1 > Traceback (most recent call last): > [err] File "r2w.py", line 186, in ? > [err] count = main(options, config) > [err] File "r2w.py", line 108, in main > [err] return processor.walk() > [err] File "/home/aji/code/dev/rest2web/rest2web/restprocessor.py", line > 382, in walk > [err] subdir=subdir) > [err] File "/home/aji/code/dev/rest2web/rest2web/restprocessor.py", line > 837, in process > [err] content = render_well(content, orig_uservalues, uservalues=True) > [err] File "/home/aji/code/dev/rest2web/rest2web/embedded_code.py", line > 87, in render_well > [err] template = render(template, namespace, uservalues) > [err] File "/home/aji/code/dev/rest2web/rest2web/embedded_code.py", line > 72, in render > [err] value = fun(occ, namespace) > [err] File "/home/aji/code/dev/rest2web/rest2web/embedded_code.py", line > 99, in render_value_eval > [err] value = eval(code, namespace) > [err] File "<string>", line 1 > [err] ... > [err] ^ > [err] SyntaxError: invalid syntax > [err] > Hit return to continue >>> > > This hangs on line 69 in reference/changelog.txt, where it explains the new > uservalue syntax: > is ``<* ... *>``. For multiple lines of code it is ``<$ ... $>``. > > It also hangs in reference/todo.txt, which contains the <$ ... syntax. > > Looks like we need a way to escape that syntax. > > Ok. > Final problem, running my own site (python r2w.py my.ini -w): > > rest2web version 0.5.0 alpha > Running rest2web the Site Builder. > Wed May 17 20:33:06 2006 > > Traceback (most recent call last): > [err] File "/home/aji/code/dev/rest2web/r2w.py", line 186, in ? > [err] count = main(options, config) > [err] File "/home/aji/code/dev/rest2web/r2w.py", line 108, in main > [err] return processor.walk() > [err] File "/home/aji/code/dev/rest2web/rest2web/restprocessor.py", line > 392, in walk > [err] self.buildsection() > [err] File "/home/aji/code/dev/rest2web/rest2web/restprocessor.py", line > 1304, in buildsection > [err] self.macros['_set_uservalues'](namespace, uservalues) > [err] KeyError: '_set_uservalues' > [err] > > It fails on a standard file (vendors.txt), and I don't see any obvious > problem. No idea on this one. > > Looks like your macro file doesn't have a '_set_uservalues' function; which is entirely reasonable. I'll fix that. You could add the function to your macros file and make it a no-op in the meantime. Thanks for the report. Fuzzyman http://www.voidspace.org.uk/python/sahreware.shtml > Andrew Ittner > mailto:and...@us... > > > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Rest2web-develop mailing list > Res...@li... > https://lists.sourceforge.net/lists/listinfo/rest2web-develop > > |
From: Andrew I. <and...@us...> - 2006-05-18 03:58:16
|
3 problems, the first major: if my local svn checkout directory is named "rest2web", running make_dist.py will WIPE IT OUT. Complete deletion, no warning. Double-plus-ungood. I suggest a warning, both in the README and when make_dist.py is run. The second problem (once I checked out the code to rest2webtrunk/) occurs when I run "python r2w.py" to build the defaults. It zips through a bunch, and then blows up with this: Processing "reference" directory. Reading "reference/changelog.txt". Guessing encoding. We guessed: ISO8859-1 Traceback (most recent call last): [err] File "r2w.py", line 186, in ? [err] count = main(options, config) [err] File "r2w.py", line 108, in main [err] return processor.walk() [err] File "/home/aji/code/dev/rest2web/rest2web/restprocessor.py", line 382, in walk [err] subdir=subdir) [err] File "/home/aji/code/dev/rest2web/rest2web/restprocessor.py", line 837, in process [err] content = render_well(content, orig_uservalues, uservalues=True) [err] File "/home/aji/code/dev/rest2web/rest2web/embedded_code.py", line 87, in render_well [err] template = render(template, namespace, uservalues) [err] File "/home/aji/code/dev/rest2web/rest2web/embedded_code.py", line 72, in render [err] value = fun(occ, namespace) [err] File "/home/aji/code/dev/rest2web/rest2web/embedded_code.py", line 99, in render_value_eval [err] value = eval(code, namespace) [err] File "<string>", line 1 [err] ... [err] ^ [err] SyntaxError: invalid syntax [err] Hit return to continue >>> This hangs on line 69 in reference/changelog.txt, where it explains the new uservalue syntax: is ``<* ... *>``. For multiple lines of code it is ``<$ ... $>``. It also hangs in reference/todo.txt, which contains the <$ ... syntax. Looks like we need a way to escape that syntax. Final problem, running my own site (python r2w.py my.ini -w): rest2web version 0.5.0 alpha Running rest2web the Site Builder. Wed May 17 20:33:06 2006 Traceback (most recent call last): [err] File "/home/aji/code/dev/rest2web/r2w.py", line 186, in ? [err] count = main(options, config) [err] File "/home/aji/code/dev/rest2web/r2w.py", line 108, in main [err] return processor.walk() [err] File "/home/aji/code/dev/rest2web/rest2web/restprocessor.py", line 392, in walk [err] self.buildsection() [err] File "/home/aji/code/dev/rest2web/rest2web/restprocessor.py", line 1304, in buildsection [err] self.macros['_set_uservalues'](namespace, uservalues) [err] KeyError: '_set_uservalues' [err] It fails on a standard file (vendors.txt), and I don't see any obvious problem. No idea on this one. Andrew Ittner mailto:and...@us... |
From: Michael F. <fuz...@gm...> - 2006-05-08 21:29:08
|
On 08/05/06, Matthew Scott <ms...@sp...> wrote: > > > Michael, et al... Hello Matthew, I've created a patch against rest2web subversion revision 173 to give > it setuptools support, since I am experimenting with using it to > create websites for several projects. > > Since it involves moving files as well as some small patches, I've > decided to post the individual steps I took here, with patches > attached, rather than go through the SourceForge process. > > With these patches, you can use both both "python setup.py develop" > and "easy_install ." as long as you have setuptools installed. I'll > admit that I haven't done much with macros yet though, so I don't > know how well those are supported. Basic operation seems to work > fine though. > > I'm of course interested in seeing this support directly folded into > rest2web, but if not, I'll keep my own version updated if there are > outstanding issues that prevent it from being merged. :) I'm keen to support setuptools, however it sounds like there is a bit of refactoring needed to make that possible. First of all, we shouldn't move pythonutils into a sub-folder of rest2web. Instead I should release a more up to date version and provide eggs. We can then make rest2web depend on pythonutils. I'm glad you are working from SVN. Presumably you have dealt with the fact that it has a 'plugins' subdirectory and a 'defaults' subdirectory, both of which need to be preserved ? 'r2w.py' is the rest2web script, so it shouldn't be moved into the rest2web directory (or egg) but put in a sensible location. r2w.py should work normally then (since it imports rest2web which should then be on sys.path). If we can resolve these issues then we should be able to eggify rest2web. Fuzzyman http://www.voidspace.org.uk/python/shareware.shtml ------------------------------------------------------------------------ > r216 | mscott | 2006-05-05 15:24:25 -0500 (Fri, 05 May 2006) | 1 line > Changed paths: > D /sandbox/mscott/rest2web-173/pythonutils > A /sandbox/mscott/rest2web-173/rest2web/pythonutils (from / > sandbox/mscott/rest2web-173/pythonutils:215) > > Move pythonutils package to subpackage of rest2web > > > > ------------------------------------------------------------------------ > r217 | mscott | 2006-05-05 15:32:40 -0500 (Fri, 05 May 2006) | 1 line > Changed paths: > D /sandbox/mscott/rest2web-173/r2w.py > A /sandbox/mscott/rest2web-173/rest2web/r2w.py (from /sandbox/ > mscott/rest2web-173/r2w.py:215) > > Move r2w.py script to submodule of rest2web package > > > > ------------------------------------------------------------------------ > r218 | mscott | 2006-05-05 15:32:56 -0500 (Fri, 05 May 2006) | 1 line > Changed paths: > A /sandbox/mscott/rest2web-173/setup.py > > Add a setup.py that uses setuptools > > (see attachment setup.py) > > > > > ------------------------------------------------------------------------ > r220 | mscott | 2006-05-05 15:41:33 -0500 (Fri, 05 May 2006) | 3 lines > Changed paths: > M /sandbox/mscott/rest2web-173/rest2web/r2w.py > > Modify r2w script to work with the console_scripts entry point > defined in setup.py > > (see attachment r2w.py.patch) > > > > > > Thanks, > > -- > Matthew Scott > ms...@sp... > > > > > > > -- http://www.Voidspace.org.uk The Place where headspace meets cyberspace. Online resource site - covering science, technology, computing, cyberpunk, psychology, spirituality, fictio= n and more. --- http://www.Voidspace.org.uk/python/index.shtml Python utilities, modules and apps. Including Nanagram, Dirwatcher and more. --- http://www.fuchsiashockz.co.uk http://groups.yahoo.com/group/void-shockz --- Everyone has talent. What is rare is the courage to follow talent to the dark place where it leads. -Erica Jong Ambition is a poor excuse for not having sense enough to be lazy. -Milan Kundera |
From: Matthew S. <ms...@sp...> - 2006-05-08 16:13:27
|
Michael, et al... I've created a patch against rest2web subversion revision 173 to give it setuptools support, since I am experimenting with using it to create websites for several projects. Since it involves moving files as well as some small patches, I've decided to post the individual steps I took here, with patches attached, rather than go through the SourceForge process. With these patches, you can use both both "python setup.py develop" and "easy_install ." as long as you have setuptools installed. I'll admit that I haven't done much with macros yet though, so I don't know how well those are supported. Basic operation seems to work fine though. I'm of course interested in seeing this support directly folded into rest2web, but if not, I'll keep my own version updated if there are outstanding issues that prevent it from being merged. :) ------------------------------------------------------------------------ r216 | mscott | 2006-05-05 15:24:25 -0500 (Fri, 05 May 2006) | 1 line Changed paths: D /sandbox/mscott/rest2web-173/pythonutils A /sandbox/mscott/rest2web-173/rest2web/pythonutils (from / sandbox/mscott/rest2web-173/pythonutils:215) Move pythonutils package to subpackage of rest2web ------------------------------------------------------------------------ r217 | mscott | 2006-05-05 15:32:40 -0500 (Fri, 05 May 2006) | 1 line Changed paths: D /sandbox/mscott/rest2web-173/r2w.py A /sandbox/mscott/rest2web-173/rest2web/r2w.py (from /sandbox/ mscott/rest2web-173/r2w.py:215) Move r2w.py script to submodule of rest2web package ------------------------------------------------------------------------ r218 | mscott | 2006-05-05 15:32:56 -0500 (Fri, 05 May 2006) | 1 line Changed paths: A /sandbox/mscott/rest2web-173/setup.py Add a setup.py that uses setuptools (see attachment setup.py) |
From: Michael F. <fuz...@vo...> - 2006-05-06 16:48:35
|
daf...@gm... wrote: > 1. Yes it is neat - for example only my Python posts go to PlanetPython > without having seperate blogs. Tagging would be good too. > > Lets move this discussion to the rest2web-develop mailing list. You can sign up via http://sourceforge.net/projects/rest2web Tagging and separate RSS feeds for categories would both be good additions. Are you happy to work on these with me ? > 2. Stats are statically generated, its only basic counts but see: > http://www.latedecember.com/sites/content/All/Stats.html > > Cool - this would have to be a plugin generating a separate page. > 3. Botcasting is autogenerating a podcast using a text to speech > engine. > http://www.latedecember.com/sites/content/Archive/50_Cold_Turkey.html.mp3 > > :-) I guess you will generate the podcasts yourself, and just want the podcast plugin to add them to the RSS feed ? > 4. The keywords are generated using the blog entry. Words are ordered > by frequency, common words e.g. the, a, are, is etc are filtered out > then the top 20 (or so) are added to the <META> tag. This should be > able to be done using a Macro and the code should be easy to > transplant. I'll try and do this tonight. > View source of > http://www.latedecember.com/sites/content/Archive/50_Cold_Turkey.html > for an example. > Firedrop2 doesn't generate a page per entry, it generates pages with several entries on them. You could do keyword generation per entry, and then produce a combined set of keywords per page. As I mentioned, this could be useful for rest2web too. All the best, Fuzzyman http://www.voidspace.org.uk/python/shareware.shtml > Sorry for not posting a link to my blog in my first post !! :-) > > Davy > > > --~--~---------~--~----~------------~-------~--~----~ > You received this message because you are subscribed to the Google Groups "Firedrop2 the Python Blog Client" group. > To post to this group, send email to fir...@go... > To unsubscribe from this group, send email to fir...@go... > For more options, visit this group at http://groups.google.com/group/firedrop2 > -~----------~----~----~----~------~----~------~--~--- > > > |
From: V. <gae...@no...> - 2006-05-02 08:07:21
|
OK, I get the bigger picture. I'll workaround, as a temporary solution. I think this is better then breaking everything trying to avoid this limitation. Thanks for your reply, --=20 Ga=EBl |
From: Michael F. <fuz...@gm...> - 2006-05-02 08:02:50
|
On 02/05/06, Ga=EBl Varoquaux <gae...@no...> wrote: > > Hi, > > Am I wrong or is page['page-description'] a html paragraph (ie enclosed > in <p> ... </p>). Now say I want to use section_contents to list the > sub-sections in such a way : > > <ul> > <li> <a href=3D"link/to/subsection">crumb</a> description > <li> <a href=3D"link/to/subsection">crumb</a> description > ... > </ul> > > I have to cut out the <p> and </p> of the description. Now I just > realised that I didn't exactly need the re module to do this, so it is > not as costly as I thought, (I can use description[3:-4], which is ugly > but should work). > > I guess there is a good reason for having the paragraph marker in > the description, and not adding them by hand: the description can > probably be multi-paragraph, eventhough this is not a feature that I > use. > > So I have two questions: > * Is it true that the description can be mutli-paragraph ? If not I > suggest to remove the enclosing <p> ... </p> from the description. > This will break web-pages, I know, but I think the gain in > flexibility is worth the while. And desides rest2web is still a > young product so it is the time to break and rebuild things. The page-description is rendered into HTML by docutils. This (correctly IMHO) puts paragraph markers around paragraphs. Yes, descriptions can be multi paragraph, many of mine are. You could use CSS to style the paragraph inside a list item, but I think that if you have single paragraph descriptions you *can* rely on the description being wrapped in '<p>...</p>'. That may change if docutils changes the way it does things. A feature I may add soon is supporting multiple markup formats. (It wouldn'= t be very difficult, it's just a question of priorities.) When I do that I will probably have to add a way of specifying the markup format of descriptions in the restindex (defaulting to ReST of course). This would allow you to have html page-descriptions, and completely control how they appear. Of course it's vapourware at the moment. :-) Fuzzyman http://www.voidspace.org.uk/python/index.shtml * Can I rely on the paragraph marker being present on every single > paragraph description, and use my workaround without fearing > cutting something else ? > > -- > Ga=EBl > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronim= o > http://sel.as-us.falkag.net/sel?cmdlnk&kid=120709&bid&3057&dat=121642 > _______________________________________________ > Rest2web-develop mailing list > Res...@li... > https://lists.sourceforge.net/lists/listinfo/rest2web-develop > -- http://www.Voidspace.org.uk The Place where headspace meets cyberspace. Online resource site - covering science, technology, computing, cyberpunk, psychology, spirituality, fictio= n and more. --- http://www.Voidspace.org.uk/python/index.shtml Python utilities, modules and apps. Including Nanagram, Dirwatcher and more. --- http://www.fuchsiashockz.co.uk http://groups.yahoo.com/group/void-shockz --- Everyone has talent. What is rare is the courage to follow talent to the dark place where it leads. -Erica Jong Ambition is a poor excuse for not having sense enough to be lazy. -Milan Kundera |
From: V. <gae...@no...> - 2006-05-02 06:53:46
|
Hi, Am I wrong or is page['page-description'] a html paragraph (ie enclosed in <p> ... </p>). Now say I want to use section_contents to list the sub-sections in such a way : <ul> <li> <a href=3D"link/to/subsection">crumb</a> description <li> <a href=3D"link/to/subsection">crumb</a> description ... </ul> I have to cut out the <p> and </p> of the description. Now I just realised that I didn't exactly need the re module to do this, so it is not as costly as I thought, (I can use description[3:-4], which is ugly but should work). I guess there is a good reason for having the paragraph marker in the description, and not adding them by hand: the description can probably be multi-paragraph, eventhough this is not a feature that I use. So I have two questions: * Is it true that the description can be mutli-paragraph ? If not I suggest to remove the enclosing <p> ... </p> from the description. This will break web-pages, I know, but I think the gain in flexibility is worth the while. And desides rest2web is still a young product so it is the time to break and rebuild things. * Can I rely on the paragraph marker being present on every single paragraph description, and use my workaround without fearing cutting something else ? -- Ga=EBl |
From: <fuz...@vo...> - 2006-05-01 22:36:12
|
{ran_emo} `rest2web 0.5.0 alpha <http://www.voidspace.org.uk/rest2web-0.5.0alpha.zip>`_ is now in `subversion <http://svn.rest2web.python-hosting.com>`_. Include in this is a partial documentation update. I think that it will be easier to work on the remaining features targeted for inclusion in 0.5.0 if it can be done in smaller incremental steps. Not only that, but some of the new features need using, commenting on and more work. Hopefully as I add to the documentation this will happen. The new features are currently best documented in `the changelog <http://svn.rest2web.python-hosting.com/trunk/docs/reference/changelog.txt>`_. This provides an outline of all the changes (so far) since 0.4.0 alpha. Remaining features targeted for inclusion in 0.4.0 are outlined in the `todo list <http://svn.rest2web.python-hosting.com/trunk/docs/reference/todo.txt>`_. The biggest change to `rest2web <http://www.voidspace.org.uk/python/rest2web/>`_ is the new *force mode*. This allows rest2web to build a simple website just from a directory tree of {acro;ReST} documents. restindexes, templates and index pages all become optional. Documentation for this feature already exists, see the `force mode <http://www.voidspace.org.uk/>`_ source file. |
From: Marc <Ma...@ro...> - 2006-04-29 06:11:56
|
On Sat, 22 Apr 2006 05:03:00 -0700 (PDT) fuz...@vo... wrote: > {ran_emo} There is now a new test version of `rest2web <http://www.voidspace.org.uk/python/rest2web/>`_ available : > > `rest2web 0.5.0 alpha <http://www.voidspace.org.uk/rest2web-0.5.0alpha.zip>`_ > > This has lots of new features available, but because of internet problems I haven't been able to update the subversion repository yet. There is still a lot of work to do (including documenting the features), but some of the new ideas need further development and I'm sure there will be bugs to fix. > > Most of these features have been added in response to user requests. The main change is that **rest2web** can now build sites without needing restindexes, templates or index files. This allows you to generate a site just from a bunch of `ReST <http://docutils.sourceforge.net>`_ files. {sm;:!:} > > The new features already added (since 0.4.0 alpha) include : > > Can build a site with no index pages, no template and no restindexes. > (The ``force`` option.) > > Allow passing of global uservalues at the command line and in the config file. > (Command line uservalues override config file ones.) > > A ``--template-file=`` command line option. This overrides the top level ``template`` specified in the restindex and allows you to have different templates for the same site, e.g. for building different online versions and documentation versions. > > The ``final_encoding`` should never be ``utf8`` (not recognised by browsers) - should be ``utf-8`` instead. (Now automatically handled.) > > Added and documented ``initialheaderlevel``. > > ``file`` keyword - should only copy if the file has changed (checks timestamp and size, copies timestamp with file). > > File keyword was broken if used outside an index file. > > Gallery chokes on ``thumb.db`` and animated jpgs. (Now skips all non image files > and any image files it can't handle.) > > Deleted ``urlpath`` from rest2web because it is now in pythonutils. > > Implement levels of verbosity. These now work. {sm;:oops:} > > A global set of uservalues from the config file. Overrideable in individual > pages. (Including ``__encoding__`` special value.) > > Fix rendering of uservalues from ReST to HTML. Uservalues in ReST format should now use ``<* ... *>`` and ``<$ ... $>`` in pages instead of ``<% ... %>`` and ``<# ... #>``. > > Add uservalues to the namespace. > > Added ``modtimeiso``. > > Added ``formattime`` standard function. > > Made the namespace/uservalues available in the macros. > > Made namespace/uservalues values available to the functions. This isn't yet used but will allow for some more interesting standard functions. > > Removed the two ``<br />`` from ``listend`` in the standard function ``minibar``. > > Added ``wrapper_class`` to ``print_details``. > > Added ``os`` and ``sys`` to namespace. > > The default crumb for index pages (if no ``page-title`` specified) is the filename, > minus the extension, turned to title case. > > -------------- > > There are still various things to add before 0.5.0 becomes final, but **rest2web** is shaping up well. > > You can see which command line options have been added by typing ``r2w.py -h`` at the command line. Hi, This works as well as version 4 on my site. So I have no regression to report. Just FYI, Marc |
From: V. <gae...@no...> - 2006-04-25 22:31:00
|
On Tue, Apr 25, 2006 at 11:27:25PM +0100, Michael Foord wrote: > What I need to do is add a relative path to the source file (and=20 > directory) and a relative path to the target source file (and directory= )=20 > in the namespace. You would then be able to use these within macros and= =20 > functions. Good, well I need to keep playing with rest2web to find out how I use it, and how I want to implement macros/functions. Unfortunately I have little time for that so it isn't moving forward quickly, but I'll keep you informed. --=20 Ga=EBl |
From: Michael F. <fuz...@vo...> - 2006-04-25 22:22:54
|
Gaël Varoquaux wrote: > Hi Michael, > > Sorry for the slow reply, I have been away last week. > > rest2web keeps making me really happy. I want to enhance it by > adding some standard functions we discussed before for file management. > I see that you have made the namespace available to the functions. This > allows me to use the "Processor.target" to achieve my goals. Good ! > Something will come out of this, I am just taking my time to be sure of > what I want. > > Recently I have wanted to use the 'colorize' macro to display a file > in the same directory than the rest source file. I have not been able to > point to this file with something else than a absolute path. This seems > to me quite ugly. Is there a way around this ? > What I need to do is add a relative path to the source file (and directory) and a relative path to the target source file (and directory) in the namespace. You would then be able to use these within macros and functions. This is pretty near the top of the list, as well as being easy to do. :-) Fuzzyman http://www.voidspace.org.uk/python/index.shtml |
From: V. <gae...@no...> - 2006-04-25 22:10:33
|
Hi Michael, Sorry for the slow reply, I have been away last week. rest2web keeps making me really happy. I want to enhance it by adding some standard functions we discussed before for file management. I see that you have made the namespace available to the functions. This allows me to use the "Processor.target" to achieve my goals. Good ! Something will come out of this, I am just taking my time to be sure of what I want. Recently I have wanted to use the 'colorize' macro to display a file in the same directory than the rest source file. I have not been able to point to this file with something else than a absolute path. This seems to me quite ugly. Is there a way around this ? --=20 Ga=EBl |