mirror of https://github.com/tLDP/LDP
Miscellaneous improvements.
This commit is contained in:
parent
1ec96aad0e
commit
b54a800a0c
|
@ -49,7 +49,7 @@ def install_subskin(self, out, skin_name, globals=types_globals):
|
|||
try:
|
||||
addDirectoryViews(skinstool, skin_name, homedir)
|
||||
except:
|
||||
pass
|
||||
log('Error adding directory views for ' + skin_name)
|
||||
|
||||
for skinName in skinstool.getSkinSelections():
|
||||
path = skinstool.getSkinPath(skinName)
|
||||
|
|
|
@ -1,16 +1,35 @@
|
|||
This is the Lampadas Documentation Management System.
|
||||
|
||||
This is Lampadas, a set of CMF Content objects which will help you
|
||||
Lampadas provides a set of CMF Content objects which will help you
|
||||
build a website to manage and publish documentation.
|
||||
It works by providing a set of CMFTypes that provide the specific
|
||||
functionality. These types support complete OMF meta-data.
|
||||
|
||||
The types are:
|
||||
First there was Zope, a powerful object database and object
|
||||
publisher. It's a great platform, but a platform is not much use
|
||||
without some higher level frameworks, so there came the Content
|
||||
Management Framework (CMF). Some folks felt CMF was powerful
|
||||
but not very polished, so there came Plone, a beautiful and
|
||||
powerful application built on CMF.
|
||||
|
||||
Lampadas Document -- a folder that understands how to process its contents.
|
||||
Its contents are a set of files from the CVS tree, a rendering script, and
|
||||
various outputs of the rendering script.
|
||||
And then there's Lampadas, a further enhancement of Plone,
|
||||
which offers the features that are needed by large documentation
|
||||
projects, who serve hundreds or even thousands of documents
|
||||
in many formats. A short list of features includes:
|
||||
|
||||
REQUIRES:
|
||||
* CVS integration -- publish files right out of your CVS tree.
|
||||
Edit them through the web interface, then commit them into
|
||||
the CVS.
|
||||
|
||||
* Format Agnosticism -- we try to handle all the source file
|
||||
formats we can. We add support for DocBook SGML and XML and
|
||||
for LinuxDoc SGML. We want to support other formats in the
|
||||
future.
|
||||
|
||||
* Powerful Meta-data -- based on the Opensource Meta-data
|
||||
Framework (OMF) from UNC Chapel Hill. Plone is already
|
||||
using Dublin Core, upon which OMF is based, so we only
|
||||
expand the Plone Meta-data.
|
||||
|
||||
REQUIREMENTS:
|
||||
Plone 1.0a4+
|
||||
CMF 1.3
|
||||
Zope 2.5.1
|
||||
|
@ -33,10 +52,9 @@ Add an external method to your plone site and then click its
|
|||
Module: Lampadas.Install
|
||||
Function: install
|
||||
|
||||
This should install everything you need and will also register the
|
||||
content objects with the portal_types tool.
|
||||
This should install everything you need. It will register the
|
||||
content objects with the portal_types tool, and scripts and
|
||||
templates with portal_skins.
|
||||
|
||||
Good luck.
|
||||
|
||||
|
||||
This README contains text from the README in the CVSTypes product.
|
||||
|
|
|
@ -44,11 +44,11 @@ class LampadasCVSFile(BaseContent):
|
|||
# searchable=1),
|
||||
# Field('description',
|
||||
# searchable=1),
|
||||
Field('abstract',
|
||||
searchable=1,
|
||||
form_info=TextAreaInfo(description="A textual description of the content of the resource (e.g., an abstract, contents note).",
|
||||
label="Abstract",
|
||||
rows=3)),
|
||||
# Field('abstract',
|
||||
# searchable=1,
|
||||
# form_info=TextAreaInfo(description="A textual description of the content of the resource (e.g., an abstract, contents note).",
|
||||
# label="Abstract",
|
||||
# rows=3)),
|
||||
Field('body',
|
||||
required=0,
|
||||
searchable=1,
|
||||
|
@ -60,7 +60,7 @@ class LampadasCVSFile(BaseContent):
|
|||
default='',
|
||||
accessor='getFilepath',
|
||||
mutator='setFilepath'),
|
||||
Field('mime_type'),
|
||||
# Field('mime_type'),
|
||||
Field('behave_like',
|
||||
default='DTMLDocument',
|
||||
accessor='getBehaveLike',
|
||||
|
|
|
@ -10,48 +10,10 @@ from Products.CMFDefault.SkinnedFolder import SkinnedFolder
|
|||
|
||||
from Products.CMFCore import CMFCorePermissions
|
||||
|
||||
#factory_type_information = ( { 'id' : 'LampadasDocument'
|
||||
# , 'meta_type' : 'LampadasDocument'
|
||||
# , 'description' : """\
|
||||
#Lampadas documents can hold source files and generate output files."""
|
||||
# , 'icon' : 'folder_icon.gif'
|
||||
# , 'product' : 'Lampadas'
|
||||
# , 'factory' : 'addLampadasDocument'
|
||||
# , 'filter_content_types' : 0
|
||||
# , 'immediate_view' : 'portal_form/folder_contents'
|
||||
# , 'actions' :
|
||||
# ( { 'id' : 'foldercontents'
|
||||
# , 'name' : 'Folder Contents'
|
||||
# , 'action' : 'folder_contents'
|
||||
# , 'permissions' :
|
||||
# (Permissions.access_contents_information,)
|
||||
# , 'category' : 'object'
|
||||
# }
|
||||
# , { 'id' : 'view'
|
||||
# , 'name' : 'View'
|
||||
# , 'action' : 'lampadasdocument_view'
|
||||
# , 'permissions' :
|
||||
# (CMFCorePermissions.View,)
|
||||
# , 'category' : 'object'
|
||||
# }
|
||||
# , { 'id' : 'local_roles'
|
||||
# , 'name' : 'Local Roles'
|
||||
# , 'action' : 'folder_localrole_form'
|
||||
# , 'permissions' :
|
||||
# (CMFCorePermissions.ManageProperties,)
|
||||
# , 'category' : 'object'
|
||||
# }
|
||||
# , { 'id' : 'edit'
|
||||
# , 'name' : 'Edit'
|
||||
# , 'action' : 'lampadasdocument_edit_form'
|
||||
# , 'permissions' :
|
||||
# (CMFCorePermissions.ManageProperties,)
|
||||
# , 'category' : 'object'
|
||||
# }
|
||||
# )
|
||||
# }
|
||||
# ,
|
||||
# )
|
||||
from Products.CMFCore.PortalContent import PortalContent
|
||||
|
||||
from utils import unique_options
|
||||
|
||||
|
||||
def addLampadasDocument(self, id, **kwargs):
|
||||
o = LampadasDocument(id, **kwargs)
|
||||
|
@ -90,7 +52,7 @@ class LampadasDocument(BaseFolder):
|
|||
# These are *additional* actions, in addition to those already provided
|
||||
# by the base type.
|
||||
actions = ( { 'id' : 'foldercontents'
|
||||
, 'name' : 'Folder Contents'
|
||||
, 'name' : 'Contents'
|
||||
, 'action' : 'folder_contents'
|
||||
, 'permissions' :
|
||||
(Permissions.access_contents_information,)
|
||||
|
@ -119,7 +81,8 @@ class LampadasDocument(BaseFolder):
|
|||
, 'filter_content_types' : 0
|
||||
, 'immediate_view' : 'portal_form/folder_contents'}
|
||||
|
||||
manage_options = SkinnedFolder.manage_options
|
||||
manage_options = unique_options(SkinnedFolder.manage_options + \
|
||||
PortalContent.manage_options,)
|
||||
|
||||
registerType(LampadasDocument)
|
||||
|
||||
|
|
Loading…
Reference in New Issue