Changeset 133:ffde1a65aa2f in livinglogic.python.www

Show
Ignore:
Timestamp:
03/19/02 10:51:26 (18 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Message:

Add new releases for FileUtils?, XIST. Add the new module URL.

Now use XIST 1.4.

Location:
site
Files:
6 added
6 modified

Legend:

Unmodified
Added
Removed
  • site/Doc.css

    r114 r133  
    2222    padding-right: 2pt; 
    2323} 
    24 h3.class 
     24h3.class, h4.class, h5.class, h6.class 
    2525{ 
    2626    font-family: monospace; 
     
    3030    text-indent: -3em; 
    3131} 
    32 h4.method 
     32h4.method, h4.property, h5.method, h5.property, h6.method, h6.property 
    3333{ 
    3434    font-family: monospace; 
     
    4545    margin-bottom: 16pt; 
    4646} 
    47 h3.function 
     47h3.function, h4.function, h5.function, h6.function 
    4848{ 
    4949    font-family: monospace; 
     
    6767    margin-right: 1pt; 
    6868} 
    69 div.method, div.function 
     69div.method, div.function, div.property 
    7070{ 
    7171    margin-left: 1.5em; 
     
    8787} 
    8888code.method 
     89{ 
     90} 
     91code.property 
    8992{ 
    9093} 
  • site/Main.cssxsc

    r128 r133  
    1414    <?code:eval 
    1515        e = xsc.Frag() 
    16         for name in ["Python", "ANSIStyle", "FileUtils", "Sisyphus", "SQL", "XIST", "CVS", "Make"]: 
     16        for name in ["Python", "ANSIStyle", "FileUtils", "Sisyphus", "SQL", "URL", "XIST", "CVS", "Make"]: 
    1717            e.append( 
    1818                css.rule( 
     
    200200    </rule> 
    201201    <rule> 
    202         <sel>h4</sel> 
     202        <sel>h4, h5, h6</sel> 
    203203        <color>#069</color> 
    204204        <arialnarrow/> 
  • site/Python_namespace.py

    r131 r133  
    504504        inheritablekeywords=[specials.xist(), abbr.xml(), "transformation", abbr.xsl(), "hsc"] 
    505505    ), 
     506    PythonSourcePage("URL", 
     507        XISTPage("Download", 
     508            crumb="Download", 
     509            title=(abbr.url(), " download"), 
     510            linkinfo="All versions for download", 
     511            url="root:url/Download.html", 
     512            localkeywords=["download", "file", "archive"] 
     513        ), 
     514        XISTPage("History", 
     515            crumb="History", 
     516            title="URL history", 
     517            linkinfo="The development history", 
     518            url="root:url/History.html", 
     519            localkeywords=["packages", "history", "changes", "version"] 
     520        ), 
     521        XISTPage("Installation", 
     522            crumb="Installation", 
     523            title="URL installation", 
     524            linkinfo="Requirements and installation", 
     525            url="root:url/Installation.html", 
     526            localkeywords=["installation", "distutils"] 
     527        ), 
     528        crumb="url", 
     529        title="url", 
     530        linkinfo=("Module implementing ", abbr.url(), "s"), 
     531        url="root:url/index.html" 
     532    ), 
    506533    PythonSourcePage("Make", 
    507534        XISTPage("Download", 
     
    929956 
    930957    def convert(self, converter): 
    931         name = self["href"].asURL() 
    932         name.scheme = None 
    933         name.server = None 
    934         name.path = [] 
    935         url = self["href"].forInput() 
     958        name = self["href"].asURL().file 
     959        url = self["href"].forInput(converter.root) 
    936960        if self.hasAttr("type"): 
    937961            type = self["type"] 
    938         elif name.file.endswith(".tar.gz") or name.file.endswith(".tar.bz2") or name.file.endswith(".zip"): 
     962        elif name.endswith(".tar.gz") or name.endswith(".tar.bz2") or name.endswith(".zip"): 
    939963            type = "Source" 
    940         elif name.file.endswith(".exe"): 
     964        elif name.endswith(".exe"): 
    941965            type = "Windows installer" 
    942         elif name.file.endswith(".src.rpm"): 
     966        elif name.endswith(".src.rpm"): 
    943967            type = "Source RPM" 
    944         elif name.file.endswith(".rpm"): 
     968        elif name.endswith(".rpm"): 
    945969            type = "Binary RPM" 
    946970        else: 
  • site/fileutils/Download.htmlxsc

    r114 r133  
    77or choose one of the following archives: 
    88<alldownloads> 
     9<downloads version="0.4.1" date="02/18/2002"> 
     10<download href="ftp://ftp.livinglogic.de/pub/livinglogic/fileutils/FileUtils-0.4.1.win32.exe" /> 
     11<download href="ftp://ftp.livinglogic.de/pub/livinglogic/fileutils/FileUtils-0.4.1-1.noarch.rpm" /> 
     12<download href="ftp://ftp.livinglogic.de/pub/livinglogic/fileutils/FileUtils-0.4.1-1.src.rpm" /> 
     13<download href="ftp://ftp.livinglogic.de/pub/livinglogic/fileutils/FileUtils-0.4.1.zip" /> 
     14<download href="ftp://ftp.livinglogic.de/pub/livinglogic/fileutils/FileUtils-0.4.1.tar.bz2" /> 
     15<download href="ftp://ftp.livinglogic.de/pub/livinglogic/fileutils/FileUtils-0.4.1.tar.gz" /> 
     16</downloads> 
    917<downloads version="0.4" date="10/02/2001"> 
    1018<download href="ftp://ftp.livinglogic.de/pub/livinglogic/fileutils/FileUtils-0.4.win32.exe" /> 
  • site/m.py

    r125 r133  
    33import sys, os, os.path 
    44 
    5 import make, fileutils 
     5import make, url 
    66 
    77p = make.Project() 
    88 
    99print "Creating dependancies ...", 
    10 here = fileutils.cwd() 
    11 sourcedir = fileutils.Filename(".") 
    12 builddir = fileutils.Filename("../build/") 
    13 installdir = fileutils.Filename("../install/") 
    14 repositorydir = fileutils.Filename("~/") 
    15 pythonrootdir = fileutils.Filename("~/pythonroot/") 
     10here = url.here() 
     11root = url.URL("root:") 
     12sourcedir = url.Dirname(".") 
     13builddir = url.Dirname("../build") 
     14installdir = url.Dirname("../install") 
     15repositorydir = url.Dirname("~") 
     16pythonrootdir = url.Dirname("~/pythonroot") 
    1617try: 
    1718    id = os.environ["MAKE_XIST_BASE"] 
     
    2021if not os.path.exists(id): 
    2122    id = "~/LivingLogic/xist/" 
    22 pixeldir = fileutils.Filename(id) 
    23 xistnamespacesdir = fileutils.Filename("~/xistnamespaces") 
     23pixeldir = url.Dirname(id) 
     24xistnamespacesdir = url.Dirname("~/xistnamespaces") 
    2425 
    2526build = make.PhonyTarget(p, "build") 
    2627install = make.PhonyTarget(p, "install") 
    27 clean = make.PhonyTarget(p, "clean", make.CommandAction("rm -rf %s" % (here/builddir))) 
    28 installclean = make.PhonyTarget(p, "installclean", make.CommandAction("rm -rf %s/*" % (here/installdir))) 
     28clean = make.PhonyTarget(p, "clean", make.CommandAction("rm -rf %s" % (here/builddir).asFilename())) 
     29installclean = make.PhonyTarget(p, "installclean", make.CommandAction("rm -rf %s/*" % (here/installdir).asFilename())) 
    2930installclean.dependOn(clean) 
    3031 
     
    3233files = sourcedir.files() 
    3334 
    34 pixelfiles = [ file for file in pixeldir.files() if file.endswith(".gif") ] 
     35pixelfiles = [ file for file in pixeldir.files() if file.ext=="gif" ] 
    3536 
    3637extensions = { 
    37     ".gif": make.ImageTarget, 
    38     ".jpg": make.ImageTarget, 
    39     ".png": make.ImageTarget, 
    40     ".css": make.CascadingStyleSheetTarget, 
    41     ".js": make.JavascriptTarget, 
    42     ".xml": make.XMLTarget, 
    43     ".html": make.HTMLTarget, 
    44     ".phtml": make.HTMLTarget, 
    45     ".shtml": make.HTMLTarget, 
    46     ".jsp": make.HTMLTarget, 
    47     ".jspp": make.HTMLTarget, 
    48     ".xsc": make.XISTTarget, 
    49     ".pxsc": make.XISTTarget, 
    50     ".sxsc": make.XISTTarget, 
    51     ".jxsc": make.XISTTarget, 
    52     ".jxscp": make.XISTTarget, 
    53     ".py": make.PythonTarget 
     38    "gif": make.ImageTarget, 
     39    "jpg": make.ImageTarget, 
     40    "png": make.ImageTarget, 
     41    "css": make.CascadingStyleSheetTarget, 
     42    "js": make.JavascriptTarget, 
     43    "xml": make.XMLTarget, 
     44    "html": make.HTMLTarget, 
     45    "phtml": make.HTMLTarget, 
     46    "shtml": make.HTMLTarget, 
     47    "jsp": make.HTMLTarget, 
     48    "jspp": make.HTMLTarget, 
     49    "xsc": make.XISTTarget, 
     50    "pxsc": make.XISTTarget, 
     51    "sxsc": make.XISTTarget, 
     52    "jxsc": make.XISTTarget, 
     53    "jxscp": make.XISTTarget, 
     54    "py": make.PythonTarget 
    5455} 
    5556 
    5657copyaction = make.CopyAction() 
    57 copyextensions = {".gif": 1, ".jpg": 1, ".css": 0, ".js":0 } 
     58copyextensions = {"gif": 1, "jpg": 1, "css": 0, "js":0 } 
    5859auxFiles = [] 
    5960for id in files: 
    60     ext = id.ext() 
     61    ext = id.ext 
    6162    try: 
    6263        aux = copyextensions[ext] 
     
    8586 
    8687for id in files: 
    87     if id.endswith("_namespace.py"): 
     88    if id.path.endswith("_namespace.py"): 
    8889        f = make.XISTNamespaceTarget(p, id) 
    89         f2 = make.XISTNamespaceTarget(p, here/builddir/id.replace("_namespace.py", ".py"), copyaction) 
     90        f2 = make.XISTNamespaceTarget(p, here/builddir/id.path.replace("_namespace.py", ".py"), copyaction) 
    9091        f2.dependOn(make.MainDep, f) 
    9192        namespaces.append(f2) 
    9293 
    93 action = make.XISTAction(encoding="iso-8859-1", xhtml=1, lang="en", targetroot="file:"+str(here/builddir) + "/") 
     94root = url.root() 
     95action = make.XISTAction(encoding="iso-8859-1", xhtml=1, lang="en", targetroot=here/builddir) 
    9496for id in files: 
    95     ext = id.ext() 
    96     if ext.endswith("xsc"): 
     97    ext = id.ext 
     98    if ext and ext.endswith("xsc"): 
    9799        newid = id.withExt(ext[:-3]) 
    98         f = make.XISTTarget(p, here/sourcedir/id, base=str(newid)) 
    99         f2 = make.HTMLTarget(p, here/builddir/newid, action, base=str(newid)) 
    100         f3 = make.HTMLTarget(p, here/installdir/newid, copyaction, base=str(newid)) 
     100        f = make.XISTTarget(p, here/sourcedir/id, base=root/newid) 
     101        f2 = make.HTMLTarget(p, here/builddir/newid, action, base=root/newid) 
     102        f3 = make.HTMLTarget(p, here/installdir/newid, copyaction, base=root/newid) 
    101103        f2.dependOn(make.MainDep, f) 
    102104        f2.dependOn(*namespaces) 
     
    106108        install.dependOn(f3) 
    107109 
    108         pagesrcid = id[:-len(ext)] + "_page.txt" 
     110        pagesrcid = id.withFile(id.file[:-len(ext)-1] + "_page.txt") 
    109111        f2 = make.XISTTarget(p, here/builddir/pagesrcid, copyaction) 
    110112        f3 = make.XISTTarget(p, here/installdir/pagesrcid, copyaction) 
     
    137139mod_xist_presenters = make.PythonTarget(p, here/pythonrootdir/"xist/presenters.py") 
    138140mod_xist_publishers = make.PythonTarget(p, here/pythonrootdir/"xist/publishers.py") 
     141mod_url = make.PythonTarget(p, here/pythonrootdir/"url.py") 
    139142mod_make = make.PythonTarget(p, here/pythonrootdir/"make.py") 
    140143mod_sisyphus = make.PythonTarget(p, here/pythonrootdir/"sisyphus.py") 
     
    153156p[here/builddir/"xist/Installation.html"].dependOn(make.XMLTarget(p, here/repositorydir/"LivingLogic/xist/INSTALL.xml")) 
    154157p[here/builddir/"xist/Howto.html"].dependOn(make.XMLTarget(p, here/repositorydir/"LivingLogic/xist/HOWTO.xml")) 
     158p[here/builddir/"url/History.html"].dependOn(make.XMLTarget(p, here/repositorydir/"LivingLogic/url/NEWS.xml")) 
     159p[here/builddir/"url/Installation.html"].dependOn(make.XMLTarget(p, here/repositorydir/"LivingLogic/url/INSTALL.xml")) 
    155160p[here/builddir/"make/History.html"].dependOn(make.XMLTarget(p, here/repositorydir/"LivingLogic/make/NEWS.xml")) 
    156161p[here/builddir/"make/Installation.html"].dependOn(make.XMLTarget(p, here/repositorydir/"LivingLogic/make/INSTALL.xml")) 
     
    181186    ("xist/presenters/", (mod_xist_presenters, mod_xist_ns_doc)), 
    182187    ("xist/publishers/",  (mod_xist_publishers, mod_xist_ns_doc)), 
     188    ("url/", (mod_url, mod_xist_ns_doc)), 
    183189    ("make/", (mod_make, mod_xist_ns_doc)), 
    184190    ("sisyphus/", (mod_sisyphus, mod_xist_ns_doc)), 
  • site/xist/Download.htmlxsc

    r127 r133  
    77or choose one of the following archives: 
    88<alldownloads> 
     9<downloads version="1.4" date="03/18/2002"> 
     10<download href="ftp://ftp.livinglogic.de/pub/livinglogic/xist/XIST-1.4.win32-py2.2.exe" /> 
     11<download href="ftp://ftp.livinglogic.de/pub/livinglogic/xist/XIST-1.4-1.i386.rpm" /> 
     12<download href="ftp://ftp.livinglogic.de/pub/livinglogic/xist/XIST-1.4-1.src.rpm" /> 
     13<download href="ftp://ftp.livinglogic.de/pub/livinglogic/xist/XIST-1.4.zip" /> 
     14<download href="ftp://ftp.livinglogic.de/pub/livinglogic/xist/XIST-1.4.tar.bz2" /> 
     15<download href="ftp://ftp.livinglogic.de/pub/livinglogic/xist/XIST-1.4.tar.gz" /> 
     16</downloads> 
     17<downloads version="1.3.1" date="03/14/2002"> 
     18<download href="ftp://ftp.livinglogic.de/pub/livinglogic/xist/XIST-1.3.1.win32-py2.2.exe" /> 
     19<download href="ftp://ftp.livinglogic.de/pub/livinglogic/xist/XIST-1.3.1-1.i386.rpm" /> 
     20<download href="ftp://ftp.livinglogic.de/pub/livinglogic/xist/XIST-1.3.1-1.src.rpm" /> 
     21<download href="ftp://ftp.livinglogic.de/pub/livinglogic/xist/XIST-1.3.1.zip" /> 
     22<download href="ftp://ftp.livinglogic.de/pub/livinglogic/xist/XIST-1.3.1.tar.bz2" /> 
     23<download href="ftp://ftp.livinglogic.de/pub/livinglogic/xist/XIST-1.3.1.tar.gz" /> 
     24</downloads> 
    925<downloads version="1.3" date="02/12/2002"> 
    1026<download href="ftp://ftp.livinglogic.de/pub/livinglogic/xist/XIST-1.3.win32-py2.2.exe" />