root/trunk/pylucid_project/PyLucid/plugins_internal/_gallery/gallery.py

Revision 1828, 1.0 KB (checked in by JensDiemer, 13 months ago)

rename gallery plugin

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Author Rev LastChangedDate
Line 
1# -*- coding: utf-8 -*-
2
3"""
4    PyLucid gallery plugin
5    ~~~~~~~~~~~~~~~~~~~~~~
6
7    a simple file/picture gallery
8
9    Last commit info:
10    ~~~~~~~~~
11    $LastChangedDate$
12    $Rev$
13    $Author$
14
15    :copyleft: 2008-2009 by the PyLucid team, see AUTHORS for more details.
16    :license: GNU GPL v2 or above, see LICENSE for more details
17"""
18
19__version__= "$Rev$"
20
21import os
22
23from PyLucid.system.BaseFilesystemPlugin import FilesystemPlugin
24from PyLucid.models import Page, Plugin
25
26class gallery(FilesystemPlugin):
27
28    def lucidTag(self, base_path="0", id=None):
29        # Get the preferences from the database:
30        preferences = self.get_preferences(id)
31        if preferences == None:
32            # preferences not in database -> reinit required
33            self.page_msg("No preferences!")
34            return
35       
36        self.page_msg(preferences)
37       
38        preferences["base_path"]
39       
40        # analyse and store the given GET path infomation
41#        self.path.new_dir_path(path_info, must_exist=True)
42        #self.path.debug()
43       
Note: See TracBrowser for help on using the browser.