Commit Graph

128 Commits

Author SHA1 Message Date
fpeters 951697e0ee allows <badReferrers>
<host>http://toto</host>
  <host>http://tata</host>
</badReferrers> in configuration files; those referrers will get a 403
(special dedicace to http://bockvan.blogspot.com/ and http://jpalanco.blogspot.com/)
2005-01-28 00:20:12 +00:00
sebd 2e470e32e9 Setting HTTP header "Content-Location" whenever replying in HTML.
This makes it possible to reply with another station from the one that was posted to, and keep the web browser follow what's happening.
2005-01-04 21:41:25 +00:00
sebd e982abea88 shorter info log lines 2005-01-03 08:54:04 +00:00
sebd da1a0ce524 allow using args in "objectURI/pageName/args" 2004-12-14 10:36:39 +00:00
fpeters 59bc1a62f4 allows to break with output in generateXml 2004-09-27 14:08:52 +00:00
rchantereau 9f0c68c357 If the HTTP WEBDAV PROPFIND request is done without any content, we create an
"empty" valid one.

This closes our first IE bug.
2004-09-20 15:57:52 +00:00
rchantereau 8c757a9afb Added download action to stations, customize it.
Stations
========

If a station is downloadable, its content is his source

So, getSimplestDownloadUrl == getSimplestSourceUrl.

The *download* action is like the *source* action but only accept *GET* HTTP
command.

The *download* http output is like the *source* one.

DataHolders
===========

If a dataholder is downloadable, its content is his source, but we have specify
in the HTTP stream that the action is "download only".

So, the getSimplestDownloadUrl is the standard action URL, with action ==
*download*.

The outputHttpDownload output data 'as is' is the HTTP stream, with a special
HTTP header Content-Disposition that specify the name of the holded data file
name.
The outputHttpSource acts the same maner but do not touch to the HTTP headers.

So technicly, the outputHttpDownload is this "file previous version" way of
handling outputHttpSource and outputHttpSource is the old classic way of itself.
2004-09-17 18:01:36 +00:00
eraviart e4a0019a6b Corrects handling of URLs beginning with # character. 2004-09-17 14:05:05 +00:00
fpeters 9bd8f6027a oops; fixed an old copy/paste error 2004-08-15 17:38:40 +00:00
fpeters 9b30cf9ffb applyStylesheet now takes params from an eventual environs["xsltParams"] 2004-08-15 17:14:07 +00:00
sebd c9453be677 Debugging comfort enhancement:
__repr__ doesn't fail when a station has no absolutePath

WALK steps are logged as steps
2004-07-31 15:25:10 +00:00
fpeters 7ce25d4812 new xslt kind of mode;
<element name="summary" namespace="http://www.0d.be/ns/build">
     <mode name="atom">
      <users commands="ACCESS GET"><everybody/></users>
      <xsltFilePath mode="raw" mimeType="application/atom+xml">xsl/atom.xsl</xsltFilePath>
     </mode>
    </element>

and those documents (<build:summary>) will be callable with /atom that will
transform them with the given stylesheet.  mode=raw means it is served as-is
while mode=anything else means the result document is passed to site xslt (that
part was not tested).
2004-07-28 22:03:19 +00:00
eraviart 0cd0f454b3 Repaired non Liberty Alliance and non HTTP based login on sample identity
provider.

Removed identifications from identities.
2004-07-18 16:02:04 +00:00
eraviart 516d006306 Improved representation of stations. 2004-07-18 12:17:20 +00:00
eraviart 181609f016 Added Liberty Alliance accounts (like password accounts but for Liberty
Alliance SP).

Now account -> user -> session -> account (before it was: account -> user ->
session -> user).

Accounts and users can now be located outside web site (still some work
needed for password accounts).

Some Liberty Alliance login improvements.
2004-07-14 20:01:19 +00:00
eraviart 6bfc4e692f Added WebDAV DELETE command for directories. 2004-07-11 15:12:39 +00:00
eraviart 26e0f8af9c Now use currentStation by default. 2004-07-03 16:27:39 +00:00
eraviart 92f80f6c62 By default, a .../source returns a 404 instead of NotImplementedError. 2004-07-03 15:00:00 +00:00
eraviart 201daf9d99 Renamed currentHtmlDocument to currentXmlDocument. 2004-07-03 11:31:38 +00:00
eraviart ae75eea5b2 Replaced getTalkback with getConfigExistence. 2004-07-03 08:17:08 +00:00
eraviart 2ddd370e5f Once upon a time, a minor god decided to use the term "stylesheet".
Then God (The True and Only God) sayd : "Use XSL".
Later God decided: "Use XSLT".
And now He says "Use SiteXslt".

In God I trust, so I obey.
2004-06-29 20:02:53 +00:00
eraviart 70fbbc0bf1 Replaced fieldStorage with submission which is a wrapper around fieldStorage
that works (will work) like Web Forms 2 submission.
2004-06-28 22:37:51 +00:00
eraviart c70f6fdee6 When XSLT is missing, the output can now be in XML instead of HTML.
Don't fail when an XML element has no namespace.

Repaired some dbxml namespace handling.

Repaired dbxmltest links.

Improved dbxmltest access rights.
2004-06-28 16:02:27 +00:00
sebd 1244e57abc Introducing boolean AbstractStation.isUriDirectory
Set in stations that should be considered as bases for relative URIs, such as directories.
2004-06-28 14:02:21 +00:00
eraviart fea7f86a47 Added station methods getSimplestStyledUrl & getSimplestSourceUrl (used by
doc-manager).

Repaired (I hope) some styled methods.
2004-06-27 09:58:38 +00:00
eraviart 9fbe86c249 generateHtml -> generateXml.
Repaired URI construction.
2004-06-25 19:25:02 +00:00
eraviart 7e5e19fc7f Removed method generateHtmlPage. 2004-06-25 09:04:47 +00:00
sebd fb2d66d69f <a href="file.xml"> in /index.xml
was transformed into
<a href="/index.xml/file2.xml">
This patch gets rid of the extra "/index.xml"
2004-06-24 21:22:35 +00:00
fpeters 2abd4cc5cb s/generateHtmlDocument/generateXmlDocument/ little step. 2004-06-24 08:05:40 +00:00
fpeters e37b2ec757 renamed getStylesheet to getXslt and xslFilePath config option to xsltFilePath
(rationale: """XSL  is a family of recommendations""" while we only use the
"transformation" part)
2004-06-22 18:47:14 +00:00
eraviart 065f3a123d For relative URIs, use the current station as base, not its directory.
100 columns.
2004-06-20 17:34:18 +00:00
eraviart ed0bfd74cc Karma ++ 2004-06-20 14:18:49 +00:00
eraviart f9f898ff38 Added metadata to every holder. Not yet done for OOo nor doc-manager. 2004-06-20 12:30:09 +00:00
eraviart ec72e9e4bb Splitted WebDAV PROPFIND handling into 2 methods. 2004-06-19 18:17:06 +00:00
fpeters fb1b578751 currentHtmlDocument back in environs since it is used to get site title. 2004-06-16 09:15:16 +00:00
fpeters ce5825d65f forget about getPageLayout(); applied xsl coding style 2004-06-16 08:42:45 +00:00
eraviart 09a90bf1e9 Added DTD DOCTYPE declaration to generated HTML documents. 2004-06-14 16:51:27 +00:00
eraviart fe0f8994a0 Repaired node absorbtion: I do believe, that now there is no more redundant
definition of HTML namespace in generated XML, even with unstyled data.

100 columns.
2004-06-14 15:32:42 +00:00
eraviart 474116c214 Improved HTTP authentication logout trick: a 401 Access Unauthorized status
is still sent but with the real HTML page instead of the error message. So
the user sees the good page after he presses the cancel button.

Added a parameter "station" to outputData.
2004-06-12 16:18:50 +00:00
eraviart 7240123980 Improved ability to extend sys.path using element <pythonPath> in main
configuration file.

Renamed <moduleDir> to <pythonPath>.
2004-06-12 12:36:06 +00:00
eraviart b6b19547be Cleaned up setup.py
Directories now have a view mode, which displays its default view (used by
docs-manager).

Added element pythonPath. It allows to specify where to search for a
pythonClass.
2004-06-12 07:47:50 +00:00
eraviart 4921b4c6e8 Added Article description to XML catalog (Don't forget to run
# ./install-catalogs
before launching Expression).

Improved detection of missing file in XML catalog.
2004-06-11 16:23:52 +00:00
eraviart 9a13c2d3fe Changed the way descriptions & schemas are found.
Instead of using an heuristic to find them in the current directory or in
the modules or in the application or..., it now uses absolute URIs and
catalogs.
2004-06-11 15:17:37 +00:00
eraviart 74852d96ff Descriptions and schemas are no longer accessed by walk. They are instead
directly accessed by a file system call, like XSLTs.
2004-06-10 15:27:21 +00:00
eraviart 6a24b67957 Removed non Python <module> in general configuration files. Now XML elements
are declared in <element> elements in config files.
2004-06-09 20:21:18 +00:00
eraviart 5e60f6a07c Added possibility for an element to define its Python class in config file
(see <element name="article" .../> in abracadabra/_config.xml). The <module>
definition in server config file will soon be removed for non Python modules.

The naming of new articles, now works again.

80 columns.
2004-06-09 14:22:00 +00:00
eraviart 15e6c814ec Reworked the walk methods, so their behaviour is more homogeneous.
Repaired mechanism managing the "New XXX" buttons. See
abracadabra/_config.xml.
2004-06-08 22:49:56 +00:00
eraviart e747db9f39 Hide files beginning with . or #
Added notion of command for administrators. The reason is: When a site
doesn't accept WebDAV at all, even the administrators should not be able to
do WebDAV commands.

Improved users search in config files, to be more simple to understand.
2004-06-08 14:49:18 +00:00
eraviart 81332be244 Repaired new-... (cf modes new & new-yep-article in abracadabra/_config.xml). 2004-06-08 13:58:01 +00:00
fpeters 6f6a6f8615 fixed typo (but I raise AccessForbidden and still get a 404) 2004-06-08 09:05:00 +00:00