revert the removal of...
Content-type: text/plain
Author: damoxc
Revision: 5519
Log:
remove the docs/build folder
revert the removal of the __rpcapi file for auto-generating the rpc api docs
Diff:
Added: trunk/deluge/__rpcapi.py
===================================================================
--- trunk/deluge/__rpcapi.py (rev 0)
+++ trunk/deluge/__rpcapi.py 2009-07-22 20:50:06 UTC (rev 5519)
@@ -0,0 +1,20 @@
+from new import classobj
+from deluge.core.core import Core
+from deluge.core.daemon import Daemon
+
+class RpcApi:
+ pass
+
+def scan_for_methods(obj):
+ methods = {
+ '__doc__': 'Methods available in %s' % obj.__name__.lower()
+ }
+ for d in dir(obj):
+ if not hasattr(getattr(obj,d), '_rpcserver_export'):
+ continue
+ methods[d] = getattr(obj, d)
+ cobj = classobj(obj.__name__.lower(), (object,), methods)
+ setattr(RpcApi, obj.__name__.lower(), cobj)
+
+scan_for_methods(Core)
+scan_for_methods(Daemon)
\ No newline at end of file
Modified: trunk/deluge/ui/web/js/Deluge.Preferences.Downloads.js
===================================================================
--- trunk/deluge/ui/web/js/Deluge.Preferences.Downloads.js 2009-07-22
20:31:16 UTC (rev 5518)
+++ trunk/deluge/ui/web/js/Deluge.Preferences.Downloads.js 2009-07-22
20:50:06 UTC (rev 5519)
@@ -23,19 +23,16 @@
defaultType: 'textfield',
autoHeight: true
});
-
this.fields['download_location'] =
this.fieldsets['folders'].add({
name: 'download_location',
fieldLabel: _('Download to'),
width: 125
});
-
this.fields['move_completed'] =
this.fieldsets['folders'].add({
name: 'move_completed',
fieldLabel: _('Move completed to'),
width: 125
});
-
this.fields['copy_torrent_files'] =
this.fieldsets['folders'].add({
name: 'copy_torrent_files',
fieldLabel: _('Copy of .torrent files to'),
@@ -48,14 +45,35 @@
title: _('Allocation'),
autoHeight: true,
labelWidth: 1,
- defaultType: 'radio'
+ defaultType: 'radiogroup'
});
-
this.fields['compact_allocation'] =
this.fieldsets['allocation'].add({
name: 'compact_allocation',
labelSeparator: '',
- boxLabel: _('Compact')
+ items: [
+ {boxLabel: _('Compact'), value: 'true'},
+ {boxLabel: _('Full'), value: 'false'}
+ ]
});
+
+ this.fieldsets['options'] = this.add({
+ xtype: 'fieldset',
+ border: false,
+ title: _('Options'),
+ autoHeight: true,
+ labelWidth: 1,
+ defaultType: 'checkbox'
+ });
+ this.fields['prioritize_first_last'] =
this.fieldsets['options'].add({
+ name: 'prioritize_first_last',
+ labelSeparator: '',
+ boxLabel: _('Prioritize first and last pieces
of torrent')
+ });
+ this.fields['add_paused'] =
this.fieldsets['options'].add({
+ name: 'add_paused',
+ labelSeparator: '',
+ boxLabel: _('Add torrents in Paused state')
+ });
},
onShow: function() {
@@ -63,34 +81,4 @@
}
});
Deluge.Preferences.addPage(new DownloadPanel());
-})();
-
-/*Deluge.Preferences.addPage({
-
- items: [, {
-
- items: [{
-
- }, {
- name: 'compact_allocation',
- labelSeparator: '',
- boxLabel: _('Full')
- }]
- }, {
- xtype: 'fieldset',
- border: false,
- title: _('Options'),
- autoHeight: true,
- labelWidth: 1,
- defaultType: 'checkbox',
- items: [{
- name: 'prioritize_first_last',
- labelSeparator: '',
- boxLabel: _('Prioritize first and last pieces of
torrent')
- }, {
- name: 'add_paused',
- labelSeparator: '',
- boxLabel: _('Add torrents in Paused state')
- }]
- }]
-});*/
\ No newline at end of file
+})();
\ No newline at end of file
Modified: trunk/docs/source/core/rpc.rst
===================================================================
--- trunk/docs/source/core/rpc.rst 2009-07-22 20:31:16 UTC (rev 5518)
+++ trunk/docs/source/core/rpc.rst 2009-07-22 20:50:06 UTC (rev 5519)
@@ -101,7 +101,5 @@
Remote API
----------
-.. autoclass:: deluge.core.core.Core
- :members:
-.. autoclass:: deluge.core.daemon.Daemon
+.. autoclass:: deluge.__rpcapi.RpcApi
:members:
\ No newline at end of file
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"deluge-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/deluge-commit?hl=en
-~----------~----~----~----~------~----~------~--~---