PK )4y3> > EGG-INFO/entry_points.txt
[turbogears.widgets]
lightbox = lightbox.widgets
PK 疁4 EGG-INFO/not-zip-safePK 疁4| EGG-INFO/paster_plugins.txtTurboGears
PasteScript
PK )4za| | EGG-INFO/PKG-INFOMetadata-Version: 1.0
Name: Lightbox
Version: 2.0-p1
Summary: Lightbox photo display widget
Home-page: http://www.turbogears.org/widgets/
Author: Lokesh Dhakar, Kevin Dangoor
Author-email: dangoor+lightbox@gmail.com
License: MIT
Download-URL: http://www.turbogears.org/widgets/
Description: UNKNOWN
Keywords: turbogears.widgets
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Framework :: TurboGears
Classifier: Framework :: TurboGears :: Widgets
PK )43@* * EGG-INFO/requires.txtTurboGears >= 0.9a2
Scriptaculous >= 1.6a1PK )4t EGG-INFO/SOURCES.txtREADME.txt
setup.py
Lightbox.egg-info/PKG-INFO
Lightbox.egg-info/SOURCES.txt
Lightbox.egg-info/entry_points.txt
Lightbox.egg-info/not-zip-safe
Lightbox.egg-info/paster_plugins.txt
Lightbox.egg-info/requires.txt
Lightbox.egg-info/sqlobject.txt
Lightbox.egg-info/top_level.txt
lightbox/__init__.py
lightbox/release.py
lightbox/widgets.py
lightbox/static/css/lightbox.css
lightbox/static/images/blank.gif
lightbox/static/images/close.gif
lightbox/static/images/image-1.jpg
lightbox/static/images/loading.gif
lightbox/static/images/next.gif
lightbox/static/images/prev.gif
lightbox/static/images/thumb-1.jpg
lightbox/static/javascript/lightbox.js
lightbox/templates/__init__.py
PK 疁4XF F EGG-INFO/sqlobject.txtdb_module=lightbox.model
history_dir=$base/lightbox/sqlobject-history
PK )4͉ EGG-INFO/top_level.txtlightbox
PK 疁4= = lightbox/__init__.pyfrom lightbox.widgets import Lightbox
__all__ = ["Lightbox"]PK )4 lightbox/__init__.pyc;
/Dc @ s d k l Z d g Z d S( ( s Lightboxs LightboxN( s lightbox.widgetss Lightboxs __all__( s __all__s Lightbox( ( sA build/bdist.darwin-8.6.0-Power_Macintosh/egg/lightbox/__init__.pys ? s
PK 4{y y lightbox/release.py# Release information about Lightbox
version = "2.0-p1"
description = "Lightbox photo display widget"
author = "Lokesh Dhakar, Kevin Dangoor"
email = "dangoor+lightbox@gmail.com"
copyright = "Copyright 2006"
# if it's open source, you might want to specify these
url = "http://www.turbogears.org/widgets/"
download_url = "http://www.turbogears.org/widgets/"
license = "MIT"
PK )4ƻE E lightbox/release.pyc;
hDc @ s4 d Z d Z d Z d Z d Z d Z d Z d Z d S( s 2.0-p1s Lightbox photo display widgets Lokesh Dhakar, Kevin Dangoors dangoor+lightbox@gmail.coms Copyright 2006s" http://www.turbogears.org/widgets/s MITN( s versions descriptions authors emails copyrights urls download_urls license( s licenses descriptions copyrights authors urls download_urls versions email( ( s@ build/bdist.darwin-8.6.0-Power_Macintosh/egg/lightbox/release.pys ? s PK 4x, lightbox/widgets.pyimport pkg_resources
from scriptaculous import prototype, scriptaculous_js
from turbogears import startup
from turbogears.widgets import CSSLink, JSLink, Widget, WidgetDescription, \
register_static_directory, JSSource, \
js_location, set_with_self
static_dir = pkg_resources.resource_filename("lightbox",
"static")
register_static_directory("lightbox", static_dir)
lightbox_js = JSLink("lightbox", "javascript/lightbox.js")
lightbox_css = CSSLink("lightbox", "css/lightbox.css", media="screen")
class CorrectPath(JSSource):
register = False
template = """
"""
def __init__(self):
super(CorrectPath, self).__init__(
"fileLoadingImage = images/loading.gif")
def update_params(self, d):
super(CorrectPath, self).update_params(d)
d["static"] = "/%stg_widgets/lightbox/" % (startup.webpath)
retrieve_javascript = set_with_self
class Lightbox(Widget):
"""Creates a Lightbox photo viewer. The value should be the URL of the
main image to display."""
javascript = [prototype, scriptaculous_js, lightbox_js, CorrectPath()]
css = [lightbox_css]
params = ["thumb_url", "thumb_width", "thumb_height"]
params_doc = dict(value="URL of the full-size image",
thumb_url="URL of the thumbnail",
thumb_width="Thumbnail width",
thumb_height="Thumbnail height")
template = """
"""
class LightboxDesc(WidgetDescription):
for_widget = Lightbox()
template = """