fix webpy022 import for /lib/
This commit is contained in:
parent
fc9bb503df
commit
f78d794079
|
@ -29,8 +29,6 @@
|
|||
# this exception statement from your version. If you delete this exception
|
||||
# statement from all source files in the program, then also delete it here.
|
||||
|
||||
#TODO: rename to config_manager.py
|
||||
|
||||
import lib.newforms_plus as forms
|
||||
import page_decorators as deco
|
||||
import web
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# deluge_webserver.py
|
||||
|
@ -39,7 +38,6 @@ from deluge import component
|
|||
|
||||
config_page = component.get("ConfigPageManager")
|
||||
|
||||
|
||||
class NetworkPorts(config_forms.CfgForm ):
|
||||
title = _("Ports")
|
||||
info = _("Restart daemon after changing these values.")
|
||||
|
@ -106,7 +104,6 @@ class BandwithTorrent(config_forms.CfgForm):
|
|||
|
||||
config_page.register('bandwidth','torrent', BandwithTorrent)
|
||||
|
||||
|
||||
class Download(config_forms.CfgForm):
|
||||
title = _("Download")
|
||||
download_location = forms.ServerFolder(_("Store all downoads in"))
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
#
|
||||
# webserver_framework.py
|
||||
#
|
||||
# Copyright (C) Martijn Voncken 2007 <mvoncken@gmail.com>
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
|
|
|
@ -10,7 +10,7 @@ from newforms.forms import BoundField
|
|||
|
||||
import sys, os
|
||||
|
||||
import web
|
||||
import webpy022 as web
|
||||
|
||||
#Form
|
||||
class FilteredForm(newforms.Form):
|
||||
|
|
|
@ -6,8 +6,8 @@
|
|||
static fileserving for web.py
|
||||
without the need for wsgi wrapper magic.
|
||||
"""
|
||||
import web
|
||||
from web import seeother, url
|
||||
import webpy022 as web
|
||||
from webpy022 import seeother, url
|
||||
|
||||
import posixpath
|
||||
import urlparse
|
||||
|
|
|
@ -23,13 +23,18 @@ $for group in groups:
|
|||
<form method="POST">
|
||||
<table id="config_table">
|
||||
$:form.as_table()
|
||||
<tr>
|
||||
<td></td>
|
||||
<td><input type="submit" name="submit" id="submit" value='$_("Save")'></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
$if message:
|
||||
<div id="message">$message</div>
|
||||
$if error:
|
||||
<div class="error">$error</div>
|
||||
|
||||
<input type="submit" name="submit" id="submit" value='$_("Save")'>
|
||||
|
||||
|
||||
</form>
|
||||
|
||||
|
|
|
@ -1,4 +1,2 @@
|
|||
#compatibility: use the included version/release of web.py.
|
||||
from lib.webpy022 import *
|
||||
print 'tpl=',template
|
||||
print list(sorted(globals().keys()))
|
||||
|
|
Loading…
Reference in New Issue