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