diff -Nru nautilus-pastebin-0.5.0/ChangeLog nautilus-pastebin-0.7.1/ChangeLog
--- nautilus-pastebin-0.5.0/ChangeLog 2010-06-18 13:30:53.000000000 +0000
+++ nautilus-pastebin-0.7.1/ChangeLog 2012-02-01 19:29:23.000000000 +0000
@@ -1,548 +1,140 @@
Changes:
-revno: 58
- Update translations.
-
-revno: 57
- Remove tests dir, update translations template.
-
-revno: 56
- Update NEWS file
-
-revno: 55
- Update NEWS file, fix stikked.com preset
-
-revno: 54
- Fix paste() prototypes
-
-revno: 53
- PRESET_PATH must be set
-
-revno: 52
- Fix small mistakes, improve right-click menu.
-
-revno: 51
- Notify users when the selected pastebin is not available. Show preset's name from the right-click menu (LP: #helper = gtk.Button().
-
-revno: 50
- Improve error message on MIME detection, fixes LP: #577569
-
-revno: 49
- Pastebin.com wrapper now uses official API.
-
-revno: 48
- Update translations template.
-
-revno: 47
- Update POTFILES.in
-
revno: 46
- Update NEWS file
+ New entry.
revno: 45
- Update pastebin.com.conf preset.
+ Bump Version.
revno: 44
- Log post contents, preset paths must be fixed
+ Fix libnotify integration.
revno: 43
- Drop maintainer mode check
+ Remove "askconfirmation" feature, needs more work.
revno: 42
- Chmod +x on nautilus-pastebin-configurator.py
+ Fix a regresssion, the configuration didn't save the values of the entries.
revno: 41
- Launchpad automatic translations update.
+ Update translations template.
revno: 40
- Launchpad automatic translations update.
+ Clean-up, again
revno: 39
- Delete empty scripts dir
+ New mechanism for data files lookup.
revno: 38
- Remove old scripts dir
+ Clean-up
revno: 37
- Move scripts into the sources root
+ Fix configurator.
revno: 36
- Launchpad automatic translations update.
+ Install the png file into usr/share/nautilus-pastebin and the svg in usr/share/pixmaps
revno: 35
- Launchpad automatic translations update.
+ Fix clipboard
revno: 34
- Launchpad automatic translations update.
+ Update changelog.
revno: 33
- Launchpad automatic translations update.
+ Fix Debian bug#570131
revno: 32
- Launchpad automatic translations update.
+ Clean-up old translations
revno: 31
- Update NEWS file
+ Update translations
revno: 30
- Update setup.py
+ Update MANIFEST
revno: 29
- Launchpad automatic translations update.
+ delete TODO file
revno: 28
- Launchpad automatic translations update.
+ Update changelog.
revno: 27
- Launchpad automatic translations update.
+ Rename configurator's UI file.
revno: 26
- Launchpad automatic translations update.
+ Don't install presets.
revno: 25
- Launchpad automatic translations update.
+ Standards?? I'm a fucking Debian nerd :)
revno: 24
- Launchpad automatic translations update.
+ Bump Standards.
revno: 23
- Launchpad automatic translations update.
+ Update schemas path
revno: 22
- Launchpad automatic translations update.
+ Remove old presets, now relies on pastebinit.
revno: 21
- Launchpad automatic translations update.
+ Remove old modules.
revno: 20
- Launchpad automatic translations update.
+ Port to gir, mostly re-written
revno: 19
- Launchpad automatic translations update.
+ New glib schema and new configurator.
revno: 18
- Launchpad automatic translations update.
+ Porting from GConf to GSettings
revno: 17
- Update TODOlist
+ It isn't a glade a file, it's a GtkBuilder file.
revno: 16
- Launchpad automatic translations update.
+ New parsing methods, broken for now.
revno: 15
- Launchpad automatic translations update.
+ Update translations template
revno: 14
- Prepare to release 0.4.2
+ codepad.org updated
-revno: 13 [merge]
- Merge
+revno: 13
+ Remove test.conf, now unnecessary
revno: 12
- Patch pastebin.com.conf to make it working with the new pastebin release.
+ Update code.bulix.org preset
revno: 11
- Update translations template.
+ another test commit
revno: 10
- Update TODO file
+ test commit
revno: 9
- Update NEWS
+ Add show_error_message() function.
revno: 8
- Supports codepad.org.
+ Update test preset, fixes bugs
revno: 7
- Update TODO file
+ Update paste.ubuntu.com preset; show an error message and don't send the file if it's empty
revno: 6
- Settings.__load_settings no longer needs any parameter.
+ Raise an exception if the content is empty.
revno: 5
- Retrieve preset search path from GConf; nautilus-pastebin-configurator needs to be updated.
+ New syntax for presets, new APIs, code cleanup.
revno: 4
- Update TODO
+ Merge with experimental branch
revno: 3
- Releasing 0.4.1
+ Removed tests directory
revno: 2
- Launchpad automatic translations update.
+ Change presets spec.
revno: 1
- Merge from 0.4 release
-
-revno: 0
- Update copyright.
-
-revno: -1
- Releasing 0.4.0
-
-revno: -2
- Update TODO, add two broken presets
-
-revno: -3
- Add TODO file
-
-revno: -4
- Prepare to release 0.4.0~beta
-
-revno: -5
- Clean up
-
-revno: -6
- Add desktop files support; small adjustments
-
-revno: -7
- Great code refactoring
-
-revno: -8
- Add paste.lisp.org support (xml-rpc); fix paste.debian.net preset (xml-rpc)
-
-revno: -9
- Update pot template
-
-revno: -10
- Improve pastebin.com preset, add pastebin.mozilla.org preset
-
-revno: -11
- Update changelog and setup.py
-
-revno: -12
- First push to 0.4 release
-
-revno: -13
- Fix pastie.org preset
-
-revno: -14
- Fix pastie.org preset
-
-revno: -15
- Bump version
-
-revno: -16
- Add support for pastie.org
-
-revno: -17
- Launchpad automatic translations update.
-
-revno: -18
- Launchpad automatic translations update.
-
-revno: -19
- Launchpad automatic translations update.
-
-revno: -20
- Launchpad automatic translations update.
-
-revno: -21
- 0.3.0 release
-
-revno: -22
- Commit translations
-
-revno: -23
- Launchpad automatic translations update.
-
-revno: -24
- Launchpad automatic translations update.
-
-revno: -25
- Add i18n support for the configurator
-
-revno: -26
- Add support for sources.list files to paste.ubuntu.com and paste.debian.net presets
-
-revno: -27
- Improve almost all presets
-
-revno: -28
- Fix translations POT template
-
-revno: -29
- Improve new_release script
-
-revno: -30 [merge]
- Fixing branch conflicts
-
-revno: -31
- 0.3.0 Release candidate
-
-revno: -32
- Don't sleep at all, unnecessary.
-
-revno: -33
- KNOWN ISSUE: sometime pastebin.com doesn't give back properly due to the spam filter
-
-revno: -34
- Presets update
-
-revno: -35
- Fix setup.py
-
-revno: -36
- Set 0.3.0-beta as releae number
-
-revno: -37
- Releasing 0.3.0-beta
-
-revno: -38
- Translations update
-
-revno: -39
- String change
-
-revno: -40
- Update translations
-
-revno: -41
- nautilus-pastebin-configurator is back\!
-
-revno: -42
- Fix small typos
-
-revno: -43
- Seek the right config options
-
-revno: -44
- GConf-managed configuration, change class' name
-
-revno: -45
- Found that fucking issue which didn't allow me to register the schema file\! YEAH\!
-
-revno: -46
- Set the default pastebin
-
-revno: -47
- update MANIFEST.in; add GConf schema, it would replace the .conf file; update POTFILES.in
-
-revno: -48
- Presets now are in /usr/share/nautilus-pastebin/presets; there's no system-wide config file, defaults are embedded; remove configurator, needs-work; update setup.py; update MANIFEST.in; add example of config file; NEEDS-TESTING
-
-revno: -49
- Remove configurator, needs more work
-
-revno: -50
- Switch to the new configuration setup
-
-revno: -51
- Change setup.py
-
-revno: -52
- Update translations
-
-revno: -53
- Low coupling between python package and nautilus extension; use new config paths
-
-revno: -54
- Merge from 0.2
-
-revno: -55
- Push
-
-revno: -56
- Add maint script
-
-revno: -57
- Releasing 0.2.1, only bugfixes
-
-revno: -58
- Cleanup, renaming python package
-
-revno: -59
- config: Extend support mimetypes list
-
-revno: -60
- Refactoring
-
-revno: -61
- Refactoring again
-
-revno: -62
- Add utils module
-
-revno: -63
- Fix manpage section
-
-revno: -64
- Fix manpage
-
-revno: -65
- Update NEWS, import translations
-
-revno: -66
- Import translations from launchpad, update po/*
-
-revno: -67
- Releasing 0.2
-
-revno: -68
- Adjust new-line in configurator's script, otherwise it couldn't be translated
-
-revno: -69
- MANIFEST.in: include pypastebin package. NEWS: add 0.1.5 entry. apply_me_before_release.diff: update. setup.py: adjust version
-
-revno: -70
- Fix shebangs, change setup.py to install all the scripts into the right place
-
-revno: -71
- Apply patch to improve configurator behaviour, also fixes some little bugs
-
-revno: -72
- Update NEWS file, update apply_me_before_release, notifications now show icons, setup.py: install the PNG file into /usr/share/pixmaps/
-
-revno: -73
- Add manpage for the config panel
-
-revno: -74
- Add TODO file, update translations
-
-revno: -75
- Add desktop file
-
-revno: -76
- Code cleaning, update NEWS, create patch to apply before releasing a new version
-
-revno: -77
- New features: added control panel, code refactoring, renamed nautilus_pastebin module to pypastebin
-
-revno: -78
- The configuration panel now works! Update translations template, bump version into setup.py, update setup.py script to install the python shared package, start to update NEWS file
-
-revno: -79
- Use MANIFEST.in
-
-revno: -80
- Add configurator
-
-revno: -81
- Update translation template
-
-revno: -82
- Merge
-
-revno: -83
- Experimental
-
-revno: -84 [merge]
- Merge
-
-revno: -85
- IMPORTANT: scripts/nautilus-pastebin.py: Don't replace tmp_page in website without counting the occurrences. data/nautilus-pastebin.conf: Fix all regexps, now all pastebins work fine! Also add a config entry for pastebot.ltsp.org
-
-revno: -86
- PastebinValidatorFactory now creates dinamically the validator object. Add a mandatory option to pastebins' config sections.
-
-revno: -87
- Update pot template
-
-revno: -88
- Fix ask-user-to-confirm MessageDialog
-
-revno: -89
- Start to develop new features: showing notifications is now optional, add open_browser feature, add ask-for-confirmation feature. Largest code refactoring, more changes will come with time. Add two options in [generals], see above. Fixed small config options (pastebins related).
-
-revno: -90
- Release 0.1.3 - please-dont-freeze
-
-revno: -91
- Update translations template
-
-revno: -92
- Update NEWS
-
-revno: -93
- Bump version to 0.1.2
-
-revno: -94
- Check file's mimetype only after the mouse click, otherwise nautilus could freeze. setup.cfg: Remove unnecessary options.
-
-revno: -95
- Update NEWS
-
-revno: -96
- Add README, bump version to 0.1.1, add a short explanation in the config file, update mimetypes map
-
-revno: -97
- Add license info into the setup.py file
-
-revno: -98
- Re-delete ChangeLog
-
-revno: -99
- Apply patch for setup.* files
-
-revno: -100
- Update ChangeLog, setup.py
-
-revno: -101
- The REAL 1st release
-
-revno: -102
- First release: 0.1.0
-
-revno: -103
- Prepare for the release
-
-revno: -104
- Refactoring, use the 'map' keyword instead of 'formatMap'. Almost ready to be released.
-
-revno: -105
- Add retrieve_changelog.py
-
-revno: -106
- Large refactoring, change the syntax of the configuration file
-
-revno: -107
- mimetypes could not be set
-
-revno: -108
- Refactoring done! Adjusted config file, fix little mistakes
-
-revno: -109
- Remove ChangeLog
-
-revno: -110
- Largest refactoring in progress
-
-revno: -111
- Add translations template.
-
-revno: -112
- Log messages are not translatable, configure language files creation, update ChangeLog.
-
-revno: -113
- Rename ConfigurationValidator to GlobalConfigurationValidator, load both user and system-wide configuration files, introduce new default_mime to make user able to upload any text file, don't pastebin empty files, remove unuseful functions.
-
-revno: -114
- More comment, log messages. Adjust the use of the 'title' parameter
-
-revno: -115
- Fix typo, fix clipboard
-
-revno: -116
- Also paste the link to the clipboard
-
-revno: -117
- Add NEWS file
-
-revno: -118
- Add all pastebin wrappers, use a threaded model, polymorphism is the way
-
-revno: -119
- Auto detect plugins path
-
-revno: -120
- Add log(), retrieve config filename dynamically
-
-revno: -121
- Second commit
-
-revno: -122
- First commit
-
-Use --include-merges or -n0 to see merged revisions.
- Use --include-merges or -n0 to see merged revisions.
+ New experimental branch
diff -Nru nautilus-pastebin-0.5.0/data/nautilus-pastebin-configurator.desktop nautilus-pastebin-0.7.1/data/nautilus-pastebin-configurator.desktop
--- nautilus-pastebin-0.5.0/data/nautilus-pastebin-configurator.desktop 2010-06-17 13:35:17.000000000 +0000
+++ nautilus-pastebin-0.7.1/data/nautilus-pastebin-configurator.desktop 2012-02-01 09:23:33.000000000 +0000
@@ -6,3 +6,4 @@
Icon=nautilus-pastebin
Categories=Settings;
X-Ubuntu-Gettext-Domain=nautilus-pastebin
+Exec=nautilus-pastebin-configurator
diff -Nru nautilus-pastebin-0.5.0/data/nautilus-pastebin-configurator.glade nautilus-pastebin-0.7.1/data/nautilus-pastebin-configurator.glade
--- nautilus-pastebin-0.5.0/data/nautilus-pastebin-configurator.glade 2010-06-17 13:35:17.000000000 +0000
+++ nautilus-pastebin-0.7.1/data/nautilus-pastebin-configurator.glade 1970-01-01 00:00:00.000000000 +0000
@@ -1,175 +0,0 @@
-
-
-
-
-
-
diff -Nru nautilus-pastebin-0.5.0/data/nautilus-pastebin-configurator.ui nautilus-pastebin-0.7.1/data/nautilus-pastebin-configurator.ui
--- nautilus-pastebin-0.5.0/data/nautilus-pastebin-configurator.ui 1970-01-01 00:00:00.000000000 +0000
+++ nautilus-pastebin-0.7.1/data/nautilus-pastebin-configurator.ui 2012-02-01 18:57:58.000000000 +0000
@@ -0,0 +1,246 @@
+
+
+
+
+ False
+ 5
+ Nautilus Pastebin configuration panel
+ normal
+
+
+ True
+ False
+ vertical
+ 2
+
+
+ True
+ False
+ end
+
+
+
+
+
+ gtk-close
+ False
+ True
+ True
+ True
+ False
+ True
+
+
+
+ False
+ False
+ 1
+
+
+
+
+ False
+ True
+ end
+ 0
+
+
+
+
+ True
+ True
+ False
+
+
+ True
+ False
+ 6
+ 6
+ 2
+ 12
+ 12
+
+
+ True
+ False
+ 0
+ <b>Pastebin</b>:
+ True
+
+
+
+
+
+
+
+ True
+ False
+ 0
+ <b>Open browser</b>:
+ True
+
+
+ 4
+ 5
+
+
+
+
+
+ True
+ False
+ 0
+ <b>Show a notification</b>:
+ True
+
+
+ 5
+ 6
+
+
+
+
+
+ False
+ True
+ True
+ False
+ False
+ True
+
+
+ 1
+ 2
+ 4
+ 5
+
+
+
+
+ False
+ True
+ True
+ False
+ False
+ True
+
+
+ 1
+ 2
+ 5
+ 6
+
+
+
+
+ True
+ False
+ 0
+ <b>Username</b>:
+ True
+
+
+ 2
+ 3
+
+
+
+
+
+ True
+ False
+ 0
+ <b>Password</b>
+ True
+
+
+ 3
+ 4
+
+
+
+
+
+ True
+ False
+ 0
+ <b>Author</b>:
+ True
+
+
+ 1
+ 2
+
+
+
+
+
+ True
+ True
+ ●
+
+
+ 1
+ 2
+ 1
+ 2
+
+
+
+
+ True
+ True
+ ●
+
+
+ 1
+ 2
+ 2
+ 3
+
+
+
+
+ True
+ True
+ ●
+
+
+ 1
+ 2
+ 3
+ 4
+
+
+
+
+ True
+ False
+ 0
+
+
+ 1
+ 2
+
+
+
+
+ False
+ True
+ 0
+
+
+
+
+ False
+ True
+ 1
+
+
+
+
+
+ button_close
+
+
+
diff -Nru nautilus-pastebin-0.5.0/data/nautilus-pastebin.gschema.xml nautilus-pastebin-0.7.1/data/nautilus-pastebin.gschema.xml
--- nautilus-pastebin-0.5.0/data/nautilus-pastebin.gschema.xml 1970-01-01 00:00:00.000000000 +0000
+++ nautilus-pastebin-0.7.1/data/nautilus-pastebin.gschema.xml 2012-02-01 18:55:48.000000000 +0000
@@ -0,0 +1,35 @@
+
+
+
+ false
+ Show a bubble
+ Show a notification to inform the user about whether the operation has been completed successfully or not.
+
+
+ false
+ Open a browser window
+ Open a browser and point it to the pasted document's URL.
+
+
+ "pastebin.com"
+ Selected pastebin service
+ The pastebin which the file will be sent to.
+
+
+ ''
+ Author (if not set, the login name will be used)
+ The name to use as author of the document.
+
+
+ ''
+ Username
+ Most services don't need this.
+
+
+ ''
+ Password (if needed)
+ Most services don't need this.
+
+
+
+
diff -Nru nautilus-pastebin-0.5.0/data/nautilus-pastebin.schemas nautilus-pastebin-0.7.1/data/nautilus-pastebin.schemas
--- nautilus-pastebin-0.5.0/data/nautilus-pastebin.schemas 2010-06-17 13:35:17.000000000 +0000
+++ nautilus-pastebin-0.7.1/data/nautilus-pastebin.schemas 1970-01-01 00:00:00.000000000 +0000
@@ -1,58 +0,0 @@
-
-
-
-
-
- /schemas/apps/nautilus-pastebin/ask_confirmation
- /apps/nautilus-pastebin/ask_confirmation
- nautilus-pastebin
- bool
- FALSE
- nautilus-pastebin
-
- Ask confirmation
- Show a confirmation dialog before submitting the file.
-
-
-
-
- /schemas/apps/nautilus-pastebin/show_notification
- /apps/nautilus-pastebin/show_notification
- nautilus-pastebin
- bool
- TRUE
- nautilus-pastebin
-
- Show a bubble
- Show a notification to warn the user whether the operation has been completed successfully.
-
-
-
-
- /schemas/apps/nautilus-pastebin/open_browser
- /apps/nautilus-pastebin/open_browser
- nautilus-pastebin
- bool
- FALSE
- nautilus-pastebin
-
- Open a browser window
- Open a browser and point it to the pasted document's URL.
-
-
-
-
- /schemas/apps/nautilus-pastebin/preset
- /apps/nautilus-pastebin/preset
- nautilus-pastebin
- string
- pastebin.com
- nautilus-pastebin
-
- Selected preset
- The pastebin to which the file will be sent.
-
-
-
-
-
diff -Nru nautilus-pastebin-0.5.0/data/presets/code.bulix.org.conf nautilus-pastebin-0.7.1/data/presets/code.bulix.org.conf
--- nautilus-pastebin-0.5.0/data/presets/code.bulix.org.conf 2010-06-17 13:35:17.000000000 +0000
+++ nautilus-pastebin-0.7.1/data/presets/code.bulix.org.conf 1970-01-01 00:00:00.000000000 +0000
@@ -1,38 +0,0 @@
-[code.bulix.org]
-website: http://code.bulix.org
-wrapper: CodeBulixOrg
-default_mime: plain
-aliases:
- map['user'] = ['poster']
- map['format'] = ['__lang']
- map['content'] = ['__contents']
- map['title'] = ['__title']
-extras:
- map['remember'] = '0'
- map['expire'] = '259200'
- map['__private'] = '0'
- map['__wrap'] = '0'
- map['__api_version'] = '1.0'
- map['__submit'] = 'Paste'
-mimetypes:
- map['application/xml'] = 'xml'
- map['application/javascript'] = 'javascript'
- map['application/x-ruby'] = 'ruby'
- map['application/x-httpd-eruby'] = 'ruby'
- map['application/x-php'] = 'php'
- map['application/x-httpd-php'] = 'php'
- map['application/x-httpd-php-source'] = 'php'
- map['application/x-httpd-php3'] = 'php'
- map['application/x-httpd-php3-preprocessed'] = 'php'
- map['application/x-httpd-php4'] = 'php'
- map['text/plain'] = 'plain'
- map['text/x-java'] = 'java'
- map['text/css'] = 'css'
- map['text/x-csrc'] = 'c'
- map['text/x-c++src'] = 'cpp'
- map['text/x-python'] = 'python'
- map['text/x-perl'] = 'perl'
- map['text/html'] = 'xml'
- map['text/x-sh'] = 'bash'
- map['application/x-shellscript'] = 'bash'
- map['application/x-desktop'] = 'plain'
diff -Nru nautilus-pastebin-0.5.0/data/presets/codepad.org.conf nautilus-pastebin-0.7.1/data/presets/codepad.org.conf
--- nautilus-pastebin-0.5.0/data/presets/codepad.org.conf 2010-06-17 13:35:17.000000000 +0000
+++ nautilus-pastebin-0.7.1/data/presets/codepad.org.conf 1970-01-01 00:00:00.000000000 +0000
@@ -1,29 +0,0 @@
-[codepad.org]
-website: http://codepad.org
-wrapper: GenericPastebin
-default_mime: Plain Text
-aliases:
- map['user'] = ['poster']
- map['content'] = ['code']
- map['parentid'] = ['parent_pid']
- map['format'] = ['lang']
-extras:
- map['private'] = 'False'
- map['run'] = 'False'
-mimetypes:
- map['application/x-ruby'] = 'Ruby'
- map['application/x-httpd-eruby'] = 'Ruby'
- map['application/x-httpd-php'] = 'PHP'
- map['application/x-httpd-php-source'] = 'PHP'
- map['application/x-httpd-php3'] = 'PHP'
- map['application/x-httpd-php3-preprocessed'] = 'PHP'
- map['application/x-httpd-php4'] = 'PHP'
- map['text/x-csrc'] = 'C'
- map['text/x-c++src'] = 'C++'
- map['text/x-haskell'] = 'Haskell'
- map['text/x-literate-haskell'] = 'Haskell'
- map['text/x-python'] = 'Python'
- map['text/x-perl'] = 'Perl'
- map['text/x-dsrc'] = 'D'
- map['application/x-shellscript'] = 'Plain Text'
- map['application/x-desktop'] = 'Plain Text'
diff -Nru nautilus-pastebin-0.5.0/data/presets/fpaste.org.conf nautilus-pastebin-0.7.1/data/presets/fpaste.org.conf
--- nautilus-pastebin-0.5.0/data/presets/fpaste.org.conf 2010-06-17 13:35:17.000000000 +0000
+++ nautilus-pastebin-0.7.1/data/presets/fpaste.org.conf 1970-01-01 00:00:00.000000000 +0000
@@ -1,42 +0,0 @@
-[fpaste.org]
-website: http://fpaste.org
-wrapper: GenericPastebin
-default_mime: text
-aliases:
- map['user'] = ['author']
- map['title'] = ['title']
- map['content'] = ['content']
- map['format'] = ['lexer']
-extras:
- map['expire_options'] = '86400'
-mimetypes:
- map['application/xml'] = 'xml'
- map['application/javascript'] = 'js'
- map['application/x-ruby'] = 'rb'
- map['application/x-httpd-eruby'] = 'rhtml'
- map['application/x-php'] = 'php'
- map['application/x-httpd-php'] = 'php'
- map['application/x-httpd-php-source'] = 'php'
- map['application/x-httpd-php3'] = 'php'
- map['application/x-httpd-php3-preprocessed'] = 'php'
- map['application/x-httpd-php4'] = 'php'
- map['text/plain'] = 'text'
- map['text/x-java'] = 'java'
- map['text/css'] = 'css'
- map['text/x-csrc'] = 'c'
- map['text/x-c++src'] = 'cpp'
- map['text/x-haskell'] = 'haskell'
- map['text/x-literate-haskell'] = 'lhs'
- map['text/x-python'] = 'python'
- map['text/x-perl'] = 'perl'
- map['text/x-dsrc'] = 'd'
- map['text/x-tex'] = 'tex'
- map['text/html'] = 'html'
- map['text/x-sh'] = 'bash'
- map['application/x-shellscript'] = 'bash'
- map['text/x-diff'] = 'diff'
- map['text/x-boo'] = 'boo'
- map['text/x-gettext-translation'] = 'pot'
- map['text/x-patch'] = 'diff'
- map['text/x-makefile'] = 'make'
- map['application/x-desktop'] = 'text'
diff -Nru nautilus-pastebin-0.5.0/data/presets/gist.github.com.conf nautilus-pastebin-0.7.1/data/presets/gist.github.com.conf
--- nautilus-pastebin-0.5.0/data/presets/gist.github.com.conf 2010-06-17 13:35:17.000000000 +0000
+++ nautilus-pastebin-0.7.1/data/presets/gist.github.com.conf 1970-01-01 00:00:00.000000000 +0000
@@ -1,42 +0,0 @@
-[gist.github.com]
-website: http://gist.github.com
-wrapper: GenericPastebin
-default_mime: .txt
-aliases:
- map['user'] = ['poster']
- map['format'] = ['file_ext[gistfile1]']
- map['content'] = ['file_contents[gistfile1]']
- map['title'] = ['file_name[gistfile1]']
-extras:
- map['page'] = '/gists'
-mimetypes:
- map['application/javascript'] = '.js'
- map['application/xml'] = '.xsl'
- map['application/x-httpd-eruby'] = '.rhtml'
- map['application/x-httpd-php'] = '.php'
- map['application/x-httpd-php-source'] = '.php'
- map['application/x-httpd-php3'] = '.php'
- map['application/x-httpd-php3-preprocessed'] = '.php'
- map['application/x-httpd-php4'] = '.php'
- map['application/x-php'] = '.php'
- map['application/x-ruby'] = '.rb'
- map['application/x-shellscript'] = '.sh'
- map['text/plain'] = '.txt'
- map['text/x-java'] = '.java'
- map['text/css'] = '.css'
- map['text/x-csrc'] = '.h'
- map['text/x-c++src'] = '.hpp'
- map['text/x-haskell'] = '.hs'
- map['text/x-literate-haskell'] = '.hs'
- map['text/x-python'] = '.py'
- map['text/x-perl'] = '.pl'
- map['text/x-dsrc'] = '.d'
- map['text/x-tex'] = '.aux'
- map['text/html'] = '.htm'
- map['text/x-sh'] = '.sh'
- map['text/x-diff'] = '.diff'
- map['text/x-boo'] = '.bf'
- map['text/x-gettext-translation'] = '.pot'
- map['text/x-patch'] = '.diff'
- map['text/x-makefile'] = '.mak'
- map['application/x-desktop'] = '.txt'
diff -Nru nautilus-pastebin-0.5.0/data/presets/paste2.org.conf nautilus-pastebin-0.7.1/data/presets/paste2.org.conf
--- nautilus-pastebin-0.5.0/data/presets/paste2.org.conf 2010-06-17 13:35:17.000000000 +0000
+++ nautilus-pastebin-0.7.1/data/presets/paste2.org.conf 1970-01-01 00:00:00.000000000 +0000
@@ -1,32 +0,0 @@
-[paste2.org]
-website: http://paste2.org
-wrapper: GenericPastebin
-default_mime: text
-aliases:
- map['format'] = ['lang']
- map['content'] = ['code']
- map['title'] = ['description']
-extras:
- map['page'] = '/new-paste'
- map['parent'] = '0'
-mimetypes:
- map['text/x-python'] = 'Python'
- map['application/x-php'] = 'PHP'
- map['application/x-httpd-php'] = 'PHP'
- map['application/x-httpd-php-source'] = 'PHP'
- map['application/x-httpd-php3'] = 'PHP'
- map['application/x-httpd-php3-preprocessed'] = 'PHP'
- map['application/x-httpd-php4'] = 'PHP'
- map['application/xml'] = 'XML'
- map['text/x-java'] = 'java'
- map['text/x-perl'] = 'perl'
- map['text/x-tex'] = 'tex'
- map['text/x-diff'] = 'diff'
- map['text/x-patch'] = 'diff'
- map['text/x-dsrc'] = 'd'
- map['text/x-csrc'] = 'c'
- map['text/x-c++src'] = 'cpp'
- map['text/css'] = 'css'
- map['text/x-sh'] = 'bash'
- map['application/x-shellscript'] = 'bash'
- map['application/x-desktop'] = 'text'
diff -Nru nautilus-pastebin-0.5.0/data/presets/pastebin.ca.conf nautilus-pastebin-0.7.1/data/presets/pastebin.ca.conf
--- nautilus-pastebin-0.5.0/data/presets/pastebin.ca.conf 2010-06-17 13:35:17.000000000 +0000
+++ nautilus-pastebin-0.7.1/data/presets/pastebin.ca.conf 1970-01-01 00:00:00.000000000 +0000
@@ -1,38 +0,0 @@
-[pastebin.ca]
-website: http://pastebin.ca
-wrapper: GenericPastebin
-default_mime: 1
-aliases:
- map['user'] = ['name']
- map['format'] = ['type']
- map['content'] = ['content']
-extras:
- map['save'] = '0'
- map['s'] = 'Submit Post'
- map['regexp'] = '">http://.*pastebin.ca/(.*)
'
-mimetypes:
- map['application/xml'] = '15'
- map['application/javascript'] = '27'
- map['application/x-ruby'] = '10'
- map['application/x-php'] = '5'
- map['application/x-httpd-php'] = '5'
- map['application/x-httpd-php-source'] = '5'
- map['application/x-httpd-php3'] = '5'
- map['application/x-httpd-php3-preprocessed'] = '5'
- map['application/x-httpd-php4'] = '5'
- map['text/plain'] = '1'
- map['text/x-java'] = '7'
- map['text/css'] = '24'
- map['text/x-csrc'] = '3'
- map['text/x-c++src'] = '4'
- map['text/x-python'] = '11'
- map['text/x-perl'] = '6'
- map['text/x-dsrc'] = 'd'
- map['text/x-tex'] = 'tex'
- map['text/html'] = '26'
- map['text/x-sh'] = '23'
- map['application/x-shellscript'] = '23'
- map['text/x-diff'] = '34'
- map['text/x-patch'] = '34'
- map['text/x-pascal'] = '12'
- map['application/x-desktop'] = '1'
diff -Nru nautilus-pastebin-0.5.0/data/presets/pastebin.com.conf nautilus-pastebin-0.7.1/data/presets/pastebin.com.conf
--- nautilus-pastebin-0.5.0/data/presets/pastebin.com.conf 2010-06-17 13:54:55.000000000 +0000
+++ nautilus-pastebin-0.7.1/data/presets/pastebin.com.conf 1970-01-01 00:00:00.000000000 +0000
@@ -1,45 +0,0 @@
-[pastebin.com]
-website: http://pastebin.com
-wrapper: GenericPastebin
-default_mime: text
-aliases:
- map['user'] = ['paste_name']
- map['content'] = ['paste_code']
- map['parentid'] = ['paste_parent_key']
- map['format'] = ['paste_format']
-extras:
- map['paste_remember'] = '0'
- map['paste_expire_date'] = 'N'
- map['submit'] = 'submit'
- map['paste_private'] = '0'
- map['page'] = "/api_public.php"
- map['regexp'] = 'http://pastebin.com/(.*)'
-mimetypes:
- map['application/xml'] = 'xml'
- map['application/javascript'] = 'js'
- map['application/x-ruby'] = 'rb'
- map['application/x-httpd-eruby'] = 'rhtml'
- map['application/x-httpd-php'] = 'php'
- map['application/x-httpd-php-source'] = 'php'
- map['application/x-httpd-php3'] = 'php'
- map['application/x-httpd-php3-preprocessed'] = 'php'
- map['application/x-httpd-php4'] = 'php'
- map['text/x-java'] = 'java'
- map['text/css'] = 'css'
- map['text/x-csrc'] = 'c'
- map['text/x-c++src'] = 'cpp'
- map['text/x-haskell'] = 'haskell'
- map['text/x-literate-haskell'] = 'lhs'
- map['text/x-python'] = 'python'
- map['text/x-perl'] = 'perl'
- map['text/x-dsrc'] = 'd'
- map['text/x-tex'] = 'tex'
- map['text/html'] = 'html'
- map['text/x-sh'] = 'bash'
- map['application/x-shellscript'] = 'bash'
- map['text/x-diff'] = 'diff'
- map['text/x-boo'] = 'boo'
- map['text/x-gettext-translation'] = 'pot'
- map['text/x-patch'] = 'diff'
- map['text/x-pascal'] = 'pascal'
- map['application/x-desktop'] = 'text'
diff -Nru nautilus-pastebin-0.5.0/data/presets/pastebin.fr.conf nautilus-pastebin-0.7.1/data/presets/pastebin.fr.conf
--- nautilus-pastebin-0.5.0/data/presets/pastebin.fr.conf 2010-06-17 13:35:17.000000000 +0000
+++ nautilus-pastebin-0.7.1/data/presets/pastebin.fr.conf 1970-01-01 00:00:00.000000000 +0000
@@ -1,42 +0,0 @@
-[pastebin.fr]
-website: http://pastebin.fr
-wrapper: GenericPastebin
-default_mime: text
-aliases:
- map['user'] = ['poster']
- map['content'] = ['code2']
- map['parentid'] = ['parent_pid']
- map['format'] = ['format']
-extras:
- map['paste'] = 'Send'
- map['remember'] = '0'
- map['expiry'] = '0'
-mimetypes:
- map['application/xml'] = 'xml'
- map['application/javascript'] = 'js'
- map['application/x-ruby'] = 'rb'
- map['application/x-httpd-eruby'] = 'rhtml'
- map['application/x-httpd-php'] = 'php'
- map['application/x-httpd-php-source'] = 'php'
- map['application/x-httpd-php3'] = 'php'
- map['application/x-httpd-php3-preprocessed'] = 'php'
- map['application/x-httpd-php4'] = 'php'
- map['text/x-java'] = 'java'
- map['text/css'] = 'css'
- map['text/x-csrc'] = 'c'
- map['text/x-c++src'] = 'cpp'
- map['text/x-haskell'] = 'haskell'
- map['text/x-literate-haskell'] = 'lhs'
- map['text/x-python'] = 'python'
- map['text/x-perl'] = 'perl'
- map['text/x-dsrc'] = 'd'
- map['text/x-tex'] = 'tex'
- map['text/html'] = 'html'
- map['text/x-sh'] = 'bash'
- map['application/x-shellscript'] = 'bash'
- map['text/x-diff'] = 'diff'
- map['text/x-boo'] = 'boo'
- map['text/x-gettext-translation'] = 'pot'
- map['text/x-patch'] = 'diff'
- map['text/x-pascal'] = 'pascal'
- map['application/x-desktop'] = 'text'
diff -Nru nautilus-pastebin-0.5.0/data/presets/pastebin.mozilla.org.conf nautilus-pastebin-0.7.1/data/presets/pastebin.mozilla.org.conf
--- nautilus-pastebin-0.5.0/data/presets/pastebin.mozilla.org.conf 2010-06-17 13:35:17.000000000 +0000
+++ nautilus-pastebin-0.7.1/data/presets/pastebin.mozilla.org.conf 1970-01-01 00:00:00.000000000 +0000
@@ -1,42 +0,0 @@
-[pastebin.mozilla.org]
-website: http://pastebin.mozilla.org
-wrapper: GenericPastebin
-default_mime: text
-aliases:
- map['user'] = ['poster']
- map['content'] = ['code2']
- map['parentid'] = ['parent_pid']
- map['format'] = ['format']
-extras:
- map['paste'] = 'Send'
- map['remember'] = '0'
- map['expiry'] = '0'
-mimetypes:
- map['application/xml'] = 'xml'
- map['application/javascript'] = 'js'
- map['application/x-ruby'] = 'rb'
- map['application/x-httpd-eruby'] = 'rhtml'
- map['application/x-httpd-php'] = 'php'
- map['application/x-httpd-php-source'] = 'php'
- map['application/x-httpd-php3'] = 'php'
- map['application/x-httpd-php3-preprocessed'] = 'php'
- map['application/x-httpd-php4'] = 'php'
- map['text/x-java'] = 'java'
- map['text/css'] = 'css'
- map['text/x-csrc'] = 'c'
- map['text/x-c++src'] = 'cpp'
- map['text/x-haskell'] = 'haskell'
- map['text/x-literate-haskell'] = 'lhs'
- map['text/x-python'] = 'python'
- map['text/x-perl'] = 'perl'
- map['text/x-dsrc'] = 'd'
- map['text/x-tex'] = 'tex'
- map['text/html'] = 'html'
- map['text/x-sh'] = 'bash'
- map['application/x-shellscript'] = 'bash'
- map['text/x-diff'] = 'diff'
- map['text/x-boo'] = 'boo'
- map['text/x-gettext-translation'] = 'pot'
- map['text/x-patch'] = 'diff'
- map['text/x-pascal'] = 'pascal'
- map['application/x-desktop'] = 'text'
diff -Nru nautilus-pastebin-0.5.0/data/presets/pastebin.ws.conf nautilus-pastebin-0.7.1/data/presets/pastebin.ws.conf
--- nautilus-pastebin-0.5.0/data/presets/pastebin.ws.conf 2010-06-17 13:35:17.000000000 +0000
+++ nautilus-pastebin-0.7.1/data/presets/pastebin.ws.conf 1970-01-01 00:00:00.000000000 +0000
@@ -1,32 +0,0 @@
-[pastebin.ws]
-website: http://pastebin.ws
-wrapper: GenericPastebin
-default_mime: raw
-aliases:
- map['content'] = ['contentbox']
- map['format'] = ['sourcetype']
-extras:
- map['page'] = '/write'
- map['notes'] = ''
- map['expire'] = '157680000'
- map['reto'] = ''
- map['regex'] = '">http://pastebin.ws/.*'
-mimetypes:
- map['application/xml'] = 'xml'
- map['application/javascript'] = 'javascript'
- map['application/x-ruby'] = 'rb'
- map['application/x-httpd-eruby'] = 'xml'
- map['application/x-httpd-php'] = 'php'
- map['application/x-httpd-php-source'] = 'php'
- map['application/x-httpd-php3'] = 'php'
- map['application/x-httpd-php3-preprocessed'] = 'php'
- map['application/x-httpd-php4'] = 'php'
- map['text/x-java'] = 'java'
- map['text/css'] = 'css'
- map['text/x-csrc'] = 'c'
- map['text/x-c++src'] = 'cpp'
- map['text/x-python'] = 'python'
- map['text/html'] = 'html4strict'
- map['application/x-shellscript'] = 'raw'
- map['text/x-pascal'] = 'pascal'
- map['application/x-desktop'] = 'raw'
diff -Nru nautilus-pastebin-0.5.0/data/presets/pastebot.ltsp.org.conf nautilus-pastebin-0.7.1/data/presets/pastebot.ltsp.org.conf
--- nautilus-pastebin-0.5.0/data/presets/pastebot.ltsp.org.conf 2010-06-17 13:35:17.000000000 +0000
+++ nautilus-pastebin-0.7.1/data/presets/pastebot.ltsp.org.conf 1970-01-01 00:00:00.000000000 +0000
@@ -1,14 +0,0 @@
-[pastebot.ltsp.org]
-website: http://pastebot.ltsp.org
-wrapper: GenericPastebin
-default_mime: text
-aliases:
- map['user'] = ['nick']
- map['title'] = ['summary']
- map['content'] = ['paste']
-extras:
- map['channel'] = '(none)'
- map['page'] = '/paste'
- map['regexp'] = "'>http://pastebot\.ltsp\.org/(.*)"
-mimetypes:
- map['application/x-desktop'] = 'text'
diff -Nru nautilus-pastebin-0.5.0/data/presets/paste.debian.net.conf nautilus-pastebin-0.7.1/data/presets/paste.debian.net.conf
--- nautilus-pastebin-0.5.0/data/presets/paste.debian.net.conf 2010-06-17 13:35:17.000000000 +0000
+++ nautilus-pastebin-0.7.1/data/presets/paste.debian.net.conf 1970-01-01 00:00:00.000000000 +0000
@@ -1,45 +0,0 @@
-[paste.debian.net]
-website: http://paste.debian.net
-wrapper: GenericPastebin
-default_mime: -1
-aliases:
- map['user'] = ['poster']
- map['format'] = ['lang']
- map['content'] = ['code']
-extras:
- map['remember'] = '0'
- map['expire'] = '259200'
-mimetypes:
- map['application/xml'] = '898'
- map['application/javascript'] = '886'
- map['application/x-ruby'] = '814'
- map['application/x-httpd-eruby'] = '812'
- map['application/x-php'] = '892'
- map['application/x-httpd-php'] = '892'
- map['application/x-httpd-php-source'] = '892'
- map['application/x-httpd-php3'] = '892'
- map['application/x-httpd-php3-preprocessed'] = '892'
- map['application/x-httpd-php4'] = '892'
- map['text/plain'] = '-1'
- map['text/x-java'] = '763'
- map['text/css'] = '772'
- map['text/x-csrc'] = '788'
- map['text/x-c++src'] = '781'
- map['text/x-haskell'] = '834'
- map['text/x-literate-haskell'] = '834'
- map['text/x-python'] = '795'
- map['text/x-perl'] = '867'
- map['text/x-dsrc'] = '810'
- map['text/html'] = '789'
- map['text/x-tex'] = '370'
- map['text/x-sh'] = '749'
- map['application/x-shellscript'] = '749'
- map['text/x-diff'] = '826'
- map['text/x-gettext-translation'] = '782'
- map['text/x-patch'] = '826'
- map['text/x-changelog'] = '48'
- map['text/x-makefile'] = '831'
- map['text/troff'] = '859'
- map['text/x-pascal'] = '250'
- map['text/x-apt-sources-list'] = '742'
- map['application/x-desktop'] = '-1'
diff -Nru nautilus-pastebin-0.5.0/data/presets/paste.debian.net.xmlrpc.conf nautilus-pastebin-0.7.1/data/presets/paste.debian.net.xmlrpc.conf
--- nautilus-pastebin-0.5.0/data/presets/paste.debian.net.xmlrpc.conf 2010-06-17 13:35:17.000000000 +0000
+++ nautilus-pastebin-0.7.1/data/presets/paste.debian.net.xmlrpc.conf 1970-01-01 00:00:00.000000000 +0000
@@ -1,43 +0,0 @@
-[paste.debian.net.xmlrpc]
-website: http://paste.debian.net/server.pl
-wrapper: PasteDebianNetXMLRPC
-default_mime: text
-aliases:
- map['user'] = ['name']
- map['format'] = ['lang']
- map['content'] = ['pastetext']
-extras:
- map['expire'] = '604800'
-mimetypes:
- map['application/xml'] = 'xml'
- map['application/javascript'] = 'js'
- map['application/x-ruby'] = 'rb'
- map['application/x-httpd-eruby'] = 'erb'
- map['application/x-php'] = 'php'
- map['application/x-httpd-php'] = 'php'
- map['application/x-httpd-php-source'] = 'php'
- map['application/x-httpd-php3'] = 'php'
- map['application/x-httpd-php3-preprocessed'] = 'php'
- map['application/x-httpd-php4'] = 'php'
- map['text/plain'] = 'text'
- map['text/x-readme'] = 'text'
- map['text/x-java'] = 'java'
- map['text/css'] = 'css'
- map['text/x-csrc'] = 'c'
- map['text/x-c++src'] = 'cpp'
- map['text/x-haskell'] = 'haskell'
- map['text/x-literate-haskell'] = 'lhs'
- map['text/x-python'] = 'python'
- map['text/x-perl'] = 'perl'
- map['text/x-dsrc'] = 'd'
- map['text/html'] = 'html'
- map['text/x-tex'] = 'tex'
- map['text/x-sh'] = 'bash'
- map['application/x-shellscript'] = 'bash'
- map['text/x-diff'] = 'diff'
- map['text/x-gettext-translation'] = 'pot'
- map['text/x-patch'] = 'diff'
- map['text/x-makefile'] = 'make'
- map['text/troff'] = 'groff'
- map['text/x-apt-sources-list'] = 'sourceslist'
- map['application/x-desktop'] = 'text'
diff -Nru nautilus-pastebin-0.5.0/data/presets/paste.lisp.org.conf nautilus-pastebin-0.7.1/data/presets/paste.lisp.org.conf
--- nautilus-pastebin-0.5.0/data/presets/paste.lisp.org.conf 2010-06-17 13:35:17.000000000 +0000
+++ nautilus-pastebin-0.7.1/data/presets/paste.lisp.org.conf 1970-01-01 00:00:00.000000000 +0000
@@ -1,19 +0,0 @@
-[paste.lisp.org]
-website: http://common-lisp.net:8185/RPC2
-wrapper: PasteLispOrgXMLRPC
-default_mime: None
-aliases:
-extras:
- map['channel'] = 'None'
- map['regexp'] = '(http://paste\.lisp\.org/display/[0-9]+)'
-mimetypes:
- map['text/plain'] = 'None'
- map['text/x-java'] = 'Java'
- map['text/x-csrc'] = 'C'
- map['text/x-c++src'] = 'C++'
- map['text/x-haskell'] = 'Haskell'
- map['text/x-literate-haskell'] = 'Haskell'
- map['text/x-python'] = 'Python'
- map['text/x-diff'] = 'Unified Context Diff'
- map['text/x-patch'] = 'Unified Context Diff'
- map['application/x-desktop'] = 'None'
diff -Nru nautilus-pastebin-0.5.0/data/presets/paste.ubuntu.com.conf nautilus-pastebin-0.7.1/data/presets/paste.ubuntu.com.conf
--- nautilus-pastebin-0.5.0/data/presets/paste.ubuntu.com.conf 2010-06-17 13:35:17.000000000 +0000
+++ nautilus-pastebin-0.7.1/data/presets/paste.ubuntu.com.conf 1970-01-01 00:00:00.000000000 +0000
@@ -1,40 +0,0 @@
-[paste.ubuntu.com]
-website: http://paste.ubuntu.com
-wrapper: GenericPastebin
-default_mime: text
-aliases:
- map['user'] = ['poster']
- map['format'] = ['syntax']
- map['content'] = ['content']
-mimetypes:
- map['application/xml'] = 'xml'
- map['application/javascript'] = 'js'
- map['application/x-ruby'] = 'rb'
- map['application/x-httpd-eruby'] = 'rhtml'
- map['application/x-php'] = 'php'
- map['application/x-httpd-php'] = 'php'
- map['application/x-httpd-php-source'] = 'php'
- map['application/x-httpd-php3'] = 'php'
- map['application/x-httpd-php3-preprocessed'] = 'php'
- map['application/x-httpd-php4'] = 'php'
- map['text/plain'] = 'text'
- map['text/x-java'] = 'java'
- map['text/css'] = 'css'
- map['text/x-csrc'] = 'c'
- map['text/x-c++src'] = 'cpp'
- map['text/x-haskell'] = 'haskell'
- map['text/x-literate-haskell'] = 'lhs'
- map['text/x-python'] = 'python'
- map['text/x-perl'] = 'perl'
- map['text/x-dsrc'] = 'd'
- map['text/x-tex'] = 'tex'
- map['text/html'] = 'html'
- map['text/x-sh'] = 'bash'
- map['application/x-shellscript'] = 'bash'
- map['text/x-diff'] = 'diff'
- map['text/x-boo'] = 'boo'
- map['text/x-gettext-translation'] = 'pot'
- map['text/x-patch'] = 'diff'
- map['text/x-makefile'] = 'make'
- map['text/x-apt-sources-list'] = 'sourceslist'
- map['application/x-desktop'] = 'text'
diff -Nru nautilus-pastebin-0.5.0/data/presets/pastey.net.conf nautilus-pastebin-0.7.1/data/presets/pastey.net.conf
--- nautilus-pastebin-0.5.0/data/presets/pastey.net.conf 2010-06-17 13:35:17.000000000 +0000
+++ nautilus-pastebin-0.7.1/data/presets/pastey.net.conf 1970-01-01 00:00:00.000000000 +0000
@@ -1,16 +0,0 @@
-[pastey.net]
-website: http://pastey.net
-wrapper: PasteyNet
-default_mime: null
-aliases:
- map['user'] = ['author']
- map['title'] = ['subject']
- map['content'] = ['text']
- map['format'] = ['language']
-extras:
- map['page'] = '/submit.php'
- map['paste'] = 'Paste'
- map['regexp'] = '">http://(?:(?:[a-zA-Z0-9\-_\.]*)(?:pastey\.net))/(.*)'
-mimetypes:
- map['text/x-python'] = 'python'
- map['application/x-desktop'] = 'null'
diff -Nru nautilus-pastebin-0.5.0/data/presets/pastie.org.conf nautilus-pastebin-0.7.1/data/presets/pastie.org.conf
--- nautilus-pastebin-0.5.0/data/presets/pastie.org.conf 2010-06-17 13:35:17.000000000 +0000
+++ nautilus-pastebin-0.7.1/data/presets/pastie.org.conf 1970-01-01 00:00:00.000000000 +0000
@@ -1,43 +0,0 @@
-[pastie.org]
-website: http://pastie.org
-wrapper: GenericPastebin
-default_mime: 6
-aliases:
- map['user'] = ['poster']
- map['format'] = ['paste[parser_id]', 'lang']
- map['content'] = ['paste[body]']
-extras:
- map['paste[restricted]'] = '0'
- map['paste[authorization]'] = 'burger'
- map['page'] = '/pastes'
- map['key'] = ''
-mimetypes:
- map['application/xml'] = '11'
- map['application/javascript'] = '10'
- map['application/x-ruby'] = '3'
- map['application/x-httpd-eruby'] = '12'
- map['application/x-php'] = '15'
- map['application/x-httpd-php'] = '15'
- map['application/x-httpd-php-source'] = '15'
- map['application/x-httpd-php3'] = '15'
- map['application/x-httpd-php3-preprocessed'] = '15'
- map['application/x-httpd-php4'] = '15'
- map['text/plain'] = '6'
- map['text/x-java'] = '9'
- map['text/css'] = '8'
- map['text/x-csrc'] = '7'
- map['text/x-c++src'] = '7'
- map['text/x-haskell'] = '29'
- map['text/x-literate-haskell'] = '29'
- map['text/x-python'] = '16'
- map['text/x-perl'] = '18'
- map['text/x-dsrc'] = '26'
- map['text/html'] = '11'
- map['text/x-tex'] = '37'
- map['text/x-sh'] = '13'
- map['application/x-shellscript'] = '13'
- map['text/x-diff'] = '5'
- map['text/x-patch'] = '5'
- map['text/x-makefile'] = '31'
- map['text/x-pascal'] = '17'
- map['application/x-desktop'] = '6'
diff -Nru nautilus-pastebin-0.5.0/data/presets/slexy.org.conf nautilus-pastebin-0.7.1/data/presets/slexy.org.conf
--- nautilus-pastebin-0.5.0/data/presets/slexy.org.conf 2010-06-17 13:35:17.000000000 +0000
+++ nautilus-pastebin-0.7.1/data/presets/slexy.org.conf 1970-01-01 00:00:00.000000000 +0000
@@ -1,47 +0,0 @@
-[slexy.org]
-website: http://slexy.org
-wrapper: GenericPastebin
-default_mime: text
-aliases:
- map['user'] = ['author']
- map['format'] = ['language']
- map['title'] = ['desc']
- map['content'] = ['raw_paste']
-extras:
- map['page'] = '/index.php/submit'
- map['permissions'] = '0'
- map['linenumbers'] = '0'
- map['expire'] = '0'
- map['submit'] = 'Submit Paste'
- map['comment'] = ''
-mimetypes:
- map['application/xml'] = 'xml'
- map['application/javascript'] = 'js'
- map['application/x-ruby'] = 'rb'
- map['application/x-httpd-eruby'] = 'rhtml'
- map['application/x-php'] = 'php'
- map['application/x-httpd-php'] = 'php'
- map['application/x-httpd-php-source'] = 'php'
- map['application/x-httpd-php3'] = 'php'
- map['application/x-httpd-php3-preprocessed'] = 'php'
- map['application/x-httpd-php4'] = 'php'
- map['text/plain'] = 'text'
- map['text/x-java'] = 'java'
- map['text/css'] = 'css'
- map['text/x-csrc'] = 'c'
- map['text/x-c++src'] = 'cpp'
- map['text/x-haskell'] = 'haskell'
- map['text/x-literate-haskell'] = 'lhs'
- map['text/x-python'] = 'python'
- map['text/x-perl'] = 'perl'
- map['text/x-dsrc'] = 'd'
- map['text/x-tex'] = 'tex'
- map['text/html'] = 'html'
- map['text/x-sh'] = 'bash'
- map['application/x-shellscript'] = 'bash'
- map['text/x-diff'] = 'diff'
- map['text/x-boo'] = 'boo'
- map['text/x-gettext-translation'] = 'pot'
- map['text/x-patch'] = 'diff'
- map['text/x-makefile'] = 'make'
- map['application/x-desktop'] = 'text'
diff -Nru nautilus-pastebin-0.5.0/data/presets/stikked.com.conf nautilus-pastebin-0.7.1/data/presets/stikked.com.conf
--- nautilus-pastebin-0.5.0/data/presets/stikked.com.conf 2010-06-17 20:10:45.000000000 +0000
+++ nautilus-pastebin-0.7.1/data/presets/stikked.com.conf 1970-01-01 00:00:00.000000000 +0000
@@ -1,16 +0,0 @@
-[stikked.com]
-website: http://stikked.com
-wrapper: GenericPastebin
-default_mime: text
-aliases:
- map['user'] = ['name']
- map['title'] = ['title']
- map['format'] = ['lang']
- map['content'] = ['code']
-extras:
- map['submit'] = 'submit'
- map['extras'] = ''
- map['email'] = ''
-mimetypes:
- map['text/x-python'] = 'python'
- map['application/x-desktop'] = 'text'
diff -Nru nautilus-pastebin-0.5.0/data/presets/yourpaste.net.conf nautilus-pastebin-0.7.1/data/presets/yourpaste.net.conf
--- nautilus-pastebin-0.5.0/data/presets/yourpaste.net.conf 2010-06-17 13:35:17.000000000 +0000
+++ nautilus-pastebin-0.7.1/data/presets/yourpaste.net.conf 1970-01-01 00:00:00.000000000 +0000
@@ -1,18 +0,0 @@
-[yourpaste.net]
-website: http://yourpaste.net
-wrapper: GenericPastebin
-default_mime: text
-aliases:
- map['format'] = ['syntax']
- map['user'] = ['name']
- map['title'] = ['desc']
- map['content'] = ['code']
-extras:
- map['expire'] = '0'
- map['private'] = '0'
- map['remember'] = '0'
- map['page'] = '/paste'
- map['regexp'] = '">http://(?:(?:[a-zA-Z0-9\-_\.]*)(?:yourpaste\.net))/(.*)'
-mimetypes:
- map['text/x-python'] = 'python'
- map['application/x-desktop'] = 'text'
diff -Nru nautilus-pastebin-0.5.0/debian/changelog nautilus-pastebin-0.7.1/debian/changelog
--- nautilus-pastebin-0.5.0/debian/changelog 2010-06-22 20:03:31.000000000 +0000
+++ nautilus-pastebin-0.7.1/debian/changelog 2012-02-01 21:37:30.000000000 +0000
@@ -1,11 +1,27 @@
-nautilus-pastebin (0.5.0-1ubuntu1) maverick; urgency=low
+nautilus-pastebin (0.7.1-1) unstable; urgency=low
- * Merge with Debian unstable (LP: #596929).
- * Change nautilus-pastebin.schemas file after the installation rather than
- adjust 01-default_pastebin.patch.
- * Build-depend on lsb-release.
+ * New upstream release:
+ - Changes in nautilus-pastebin 0.7.1:
+ + Regression fix: the configuration didn't reflect changes to
+ 'author', 'username' and 'password'.
+ + Remove "askconfirmation" feature, needs more work.
+ + Fix libnotify integration.
+ - Changes in nautilus-pastebin 0.7.0:
+ + Port to GObject Introspection. (Closes: #644692)
+ + Migrate from GConf to GSettings.
+ + Port configurator's UI from libglade to GtkBuilder.
+ + Now depends on pastebinit at runtime;
+ + Fix Debian bug#570131, desktop file missed the "Exec" key.
+ * Refresh 01-default_pastebin.diff.
+ * Drop 02-desktop_file.patch, applied upstream.
+ * Drop python-pastebin, not provided anymore.
+ * Drop python-support, build with dh_python2.
+ * Refresh Depends,Recommends to reflect pytgtk->gobject-introspection
+ migration.
+ * Update debian/copyright.
+ * Bump Standards.
- -- Alessio Treglia Tue, 22 Jun 2010 21:48:47 +0200
+ -- Alessio Treglia Wed, 01 Feb 2012 20:48:14 +0100
nautilus-pastebin (0.5.0-1) unstable; urgency=low
@@ -21,13 +37,6 @@
-- Alessio Treglia Fri, 18 Jun 2010 17:24:56 +0200
-nautilus-pastebin (0.4.1-2ubuntu1) lucid; urgency=low
-
- * Merge from debian, Ubuntu-specific changes:
- - Set paste.ubuntu.com as default pastebin.
-
- -- Alessio Treglia Mon, 22 Feb 2010 12:35:02 +0100
-
nautilus-pastebin (0.4.1-2) unstable; urgency=low
* Add Exec entry to the desktop file (CLoses: #570131).
@@ -35,13 +44,6 @@
-- Alessio Treglia Tue, 16 Feb 2010 22:52:33 +0100
-nautilus-pastebin (0.4.1-1ubuntu1) lucid; urgency=low
-
- * Merge from debian, Ubuntu remaining changes:
- - Set paste.ubuntu.com as default pastebin.
-
- -- Alessio Treglia Wed, 03 Feb 2010 12:54:04 +0100
-
nautilus-pastebin (0.4.1-1) unstable; urgency=low
* New upstream release:
@@ -59,13 +61,6 @@
-- Alessio Treglia Fri, 22 Jan 2010 18:11:57 +0100
-nautilus-pastebin (0.3.0-1ubuntu1) lucid; urgency=low
-
- * debian/patches/01-default_pastebin.diff:
- - Set paste.ubuntu.com as default pastebin.
-
- -- Alessio Treglia Wed, 25 Nov 2009 15:37:09 +0100
-
nautilus-pastebin (0.3.0-1) unstable; urgency=low
* New upstream release.
diff -Nru nautilus-pastebin-0.5.0/debian/control nautilus-pastebin-0.7.1/debian/control
--- nautilus-pastebin-0.5.0/debian/control 2010-06-22 20:00:28.000000000 +0000
+++ nautilus-pastebin-0.7.1/debian/control 2012-02-01 19:44:26.000000000 +0000
@@ -1,28 +1,31 @@
Source: nautilus-pastebin
Section: gnome
Priority: optional
-Maintainer: Alessio Treglia
-Uploaders: Debian Python Modules Team
-Build-Depends: debhelper (>= 7.0.50~),
- python (>= 2.5)
-Build-Depends-Indep: python-support (>= 0.5.3),
- lsb-release,
+Maintainer: Alessio Treglia
+Uploaders:
+ Debian Python Modules Team
+Build-Depends:
+ debhelper (>= 7.0.50~),
+ python-all (>= 2.5)
+Build-Depends-Indep:
python-distutils-extra
-Standards-Version: 3.8.4
+Standards-Version: 3.9.2
Homepage: https://launchpad.net/nautilus-pastebin
Vcs-Svn: svn://svn.debian.org/python-modules/packages/nautilus-pastebin/trunk
Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/nautilus-pastebin/trunk/
-XS-Python-Version: >= 2.5
+X-Python-Version: >= 2.5
Package: nautilus-pastebin
Architecture: all
-Depends: ${misc:Depends}, ${python:Depends},
+Depends:
nautilus,
+ pastebinit,
+ python-gi,
python-nautilus,
- python-gtk2,
- python-gconf,
- python-notify,
- python-pastebin (>= ${source:Version})
+ ${misc:Depends},
+ ${python:Depends}
+Recommends:
+ gir1.2-notify-0.7
Description: Nautilus extension to send files to a pastebin
nautilus-pastebin is a Nautilus extension written in Python, which
allows users to upload text-only files to a pastebin service just
@@ -33,14 +36,3 @@
.
Users can also customize the extension's behaviour just by using
nautilus-pastebin-configurator, an easy-to-use configuration tool.
-
-Package: python-pastebin
-Section: python
-Architecture: all
-Depends: ${misc:Depends},
- ${python:Depends}
-Description: Python module to send text files to pastebin web applications
- A pastebin is a web application which allows users to upload text files for
- public viewing. This module provides a quick and easy way to submit textual
- contents to a wide variety of the pastebins available on the Internet; users
- also can extend support to other services by simply writing new validators.
diff -Nru nautilus-pastebin-0.5.0/debian/copyright nautilus-pastebin-0.7.1/debian/copyright
--- nautilus-pastebin-0.5.0/debian/copyright 2010-06-18 13:46:04.000000000 +0000
+++ nautilus-pastebin-0.7.1/debian/copyright 2012-02-01 20:37:00.000000000 +0000
@@ -1,21 +1,14 @@
-Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=135
-Name: nautilus-pastebin
-Maintainer: Alessio Treglia
+Format: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=204
+Upstream-Name: nautilus-pastebin
+Upstream-Contact: Alessio Treglia
Source: https://launchpad.net/nautilus-pastebin/+download
+Files: *
Copyright: 2009-2010, Alessio Treglia
License: GPL-2+
-Files: ./pastebin/core.py:
-Copyright:
- 2009-2010, Alessio Treglia
- 2006-2009, Stéphane Graber
- 2006-2009, Daniel Bartlett
- 2006-2009, David Paleino
-License: GPL-2+
-
-Files: ./debian/*
-Copyright: 2009-2010, Alessio Treglia
+Files: debian/*
+Copyright: 2009-2012, Alessio Treglia
License: GPL-2+
License: GPL-2+
@@ -28,9 +21,10 @@
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
- .
+Comment:
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-X-Comment: On Debian systems the full text of the GNU General Public
+ .
+ On Debian systems the full text of the GNU General Public
License can be found in the `/usr/share/common-licenses/GPL-2' file.
diff -Nru nautilus-pastebin-0.5.0/debian/nautilus-pastebin.install nautilus-pastebin-0.7.1/debian/nautilus-pastebin.install
--- nautilus-pastebin-0.5.0/debian/nautilus-pastebin.install 2010-06-18 13:33:45.000000000 +0000
+++ nautilus-pastebin-0.7.1/debian/nautilus-pastebin.install 1970-01-01 00:00:00.000000000 +0000
@@ -1,5 +0,0 @@
-usr/share/nautilus-pastebin
-usr/share/locale/*
-usr/share/pixmaps/nautilus-pastebin.png
-usr/share/applications/nautilus-pastebin-configurator.desktop
-usr/share/gconf/schemas/nautilus-pastebin.schemas
diff -Nru nautilus-pastebin-0.5.0/debian/nautilus-pastebin.links nautilus-pastebin-0.7.1/debian/nautilus-pastebin.links
--- nautilus-pastebin-0.5.0/debian/nautilus-pastebin.links 2010-06-18 13:33:45.000000000 +0000
+++ nautilus-pastebin-0.7.1/debian/nautilus-pastebin.links 2012-02-01 19:44:26.000000000 +0000
@@ -1,2 +1,2 @@
-usr/share/nautilus-pastebin/nautilus-pastebin.py usr/lib/nautilus/extensions-2.0/python/nautilus-pastebin.py
+usr/share/nautilus-pastebin/nautilus-pastebin.py usr/share/nautilus-python/extensions/nautilus-pastebin.py
usr/share/nautilus-pastebin/nautilus-pastebin-configurator.py usr/bin/nautilus-pastebin-configurator
diff -Nru nautilus-pastebin-0.5.0/debian/patches/01-default_pastebin.diff nautilus-pastebin-0.7.1/debian/patches/01-default_pastebin.diff
--- nautilus-pastebin-0.5.0/debian/patches/01-default_pastebin.diff 2010-06-18 13:33:45.000000000 +0000
+++ nautilus-pastebin-0.7.1/debian/patches/01-default_pastebin.diff 2012-02-01 19:44:26.000000000 +0000
@@ -1,17 +1,17 @@
Author: Alessio Treglia
Description: Set paste.debian.net as default pastebin URL.
---
- data/nautilus-pastebin.schemas | 2 +-
+ data/nautilus-pastebin.gschema.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---- nautilus-pastebin-0.3.0.orig/data/nautilus-pastebin.schemas
-+++ nautilus-pastebin-0.3.0/data/nautilus-pastebin.schemas
-@@ -46,7 +46,7 @@
- /apps/nautilus-pastebin/preset
- nautilus-pastebin
- string
-- pastebin.com
-+ paste.debian.net
- nautilus-pastebin
-
- Selected preset
+--- nautilus-pastebin-0.7.0.orig/data/nautilus-pastebin.gschema.xml
++++ nautilus-pastebin-0.7.0/data/nautilus-pastebin.gschema.xml
+@@ -16,7 +16,7 @@
+ Open a browser and point it to the pasted document's URL.
+
+
+- "pastebin.com"
++ "paste.debian.net"
+ Selected pastebin service
+ The pastebin which the file will be sent to.
+
diff -Nru nautilus-pastebin-0.5.0/debian/patches/02-desktop_file.patch nautilus-pastebin-0.7.1/debian/patches/02-desktop_file.patch
--- nautilus-pastebin-0.5.0/debian/patches/02-desktop_file.patch 2010-06-18 13:33:45.000000000 +0000
+++ nautilus-pastebin-0.7.1/debian/patches/02-desktop_file.patch 1970-01-01 00:00:00.000000000 +0000
@@ -1,14 +0,0 @@
-Author: Alessio Treglia
-Description: Missing Exec entry.
-Bug-Debian: http://bugs.debian.org/570131
----
- data/nautilus-pastebin-configurator.desktop | 1 +
- 1 file changed, 1 insertion(+)
-
---- nautilus-pastebin-0.4.1.orig/data/nautilus-pastebin-configurator.desktop
-+++ nautilus-pastebin-0.4.1/data/nautilus-pastebin-configurator.desktop
-@@ -6,3 +6,4 @@ GenericName[it]=Pannello di configurazio
- Icon=nautilus-pastebin
- Categories=Settings;
- X-Ubuntu-Gettext-Domain=nautilus-pastebin
-+Exec=nautilus-pastebin-configurator
diff -Nru nautilus-pastebin-0.5.0/debian/patches/series nautilus-pastebin-0.7.1/debian/patches/series
--- nautilus-pastebin-0.5.0/debian/patches/series 2010-06-22 20:04:58.000000000 +0000
+++ nautilus-pastebin-0.7.1/debian/patches/series 2012-02-01 19:44:26.000000000 +0000
@@ -1,2 +1 @@
01-default_pastebin.diff
-02-desktop_file.patch
diff -Nru nautilus-pastebin-0.5.0/debian/python-pastebin.install nautilus-pastebin-0.7.1/debian/python-pastebin.install
--- nautilus-pastebin-0.5.0/debian/python-pastebin.install 2010-06-18 13:33:45.000000000 +0000
+++ nautilus-pastebin-0.7.1/debian/python-pastebin.install 1970-01-01 00:00:00.000000000 +0000
@@ -1 +0,0 @@
-usr/lib/python*/*-packages/pastebin
diff -Nru nautilus-pastebin-0.5.0/debian/rules nautilus-pastebin-0.7.1/debian/rules
--- nautilus-pastebin-0.5.0/debian/rules 2010-06-22 19:55:43.000000000 +0000
+++ nautilus-pastebin-0.7.1/debian/rules 2012-02-01 19:44:26.000000000 +0000
@@ -1,14 +1,7 @@
#!/usr/bin/make -f
-DISTRO=$(shell lsb_release -i -s)
-
%:
- dh $@
+ dh $@ --with python2
override_dh_auto_install:
dh_auto_install -- --install-scripts=/usr/share/nautilus-pastebin/
- if [ "${DISTRO}" = "Ubuntu" ]; then \
- cd $(CURDIR)/debian/tmp/usr/share/gconf/schemas/ && \
- sed -i -e 's/paste.debian.net/paste.ubuntu.com/' \
- nautilus-pastebin.schemas ; \
- fi
diff -Nru nautilus-pastebin-0.5.0/nautilus-pastebin-configurator.py nautilus-pastebin-0.7.1/nautilus-pastebin-configurator.py
--- nautilus-pastebin-0.5.0/nautilus-pastebin-configurator.py 2010-06-17 20:02:27.000000000 +0000
+++ nautilus-pastebin-0.7.1/nautilus-pastebin-configurator.py 2012-02-01 18:55:30.000000000 +0000
@@ -22,158 +22,133 @@
import os
import sys
+import re
import gettext
-import gtk
-import gconf
-from ConfigParser import ConfigParser
+from subprocess import check_output
+from xdg import BaseDirectory
+from gi.repository import Gio, Gtk
-# Globals
APP_NAME = "nautilus-pastebin"
-MAINTAINER_MODE = False
-APP_PATH = os.path.join(sys.prefix, "share", APP_NAME)
-
-# By default, the program looks for presets in the following paths:
-# /etc/nautilus-pastebin/presets/
-# ~/.config/nautilus-pastebin/presets
-PRESET_PATHS = [
- os.path.join(sys.prefix, 'share', 'nautilus-pastebin', 'presets'),
- os.path.expanduser(os.path.join('~','.config','nautilus-pastebin', 'presets')),
-]
+APP_DATA_PATHS = [os.path.join(sys.path[0], 'data')]
+for dir in BaseDirectory.xdg_data_dirs:
+ APP_DATA_PATHS.append(os.path.join(dir, APP_NAME))
gettext.install(APP_NAME)
+def find_data_file(path):
+ target = None
+ for p in APP_DATA_PATHS:
+ target = os.path.join(p, path)
+ if os.path.isfile(target):
+ return target
+ if target == None:
+ raise IOError(_("Can't find %s in any known prefix!") % path)
+
def get_presets():
- presets = []
+ try:
+ res = check_output(["pastebinit", "-l"])
+ # split the line and throw away the first slice
+ res = re.split("\n-?\s?", res.strip())[1:]
+ except OSError:
+ sys.exit(1)
+ except:
+ sys.exit(-1)
+ return res
- for path in PRESET_PATHS:
- if os.path.exists(path):
- append_these = filter(
- lambda x: x.endswith('.conf'), os.listdir(path)
- )
- presets.extend(
- map(
- lambda x: os.path.join(path,x),
- append_these
- )
- )
- return presets
-
-def getSearchResPaths():
- return [
- os.path.join(sys.prefix, "share", "nautilus-pastebin"),
- os.path.join(sys.prefix, "share", "pixmaps"),
- os.path.join(sys.prefix, "local", "share", "nautilus-pastebin"),
- os.path.expanduser(os.path.join("~", ".nautilus-pastebin", "data")),
- os.getcwd()
- ]
-
-def getPath(path):
- search_paths = getSearchResPaths()
- for search in search_paths:
- fullpath = os.path.join(search, path)
- if os.path.exists(fullpath):
- return fullpath
- else:
- raise IOError(_("Can't find %s in any known prefix!") % kwargs[component])
-
-GLADE_FILE = getPath('nautilus-pastebin-configurator.glade')
-ICON_FILE = getPath('nautilus-pastebin.png')
-USERCONFIG_DIR = os.path.expanduser(os.path.join('~', '.config', 'nautilus-pastebin'))
-
-class Settings(object):
- GCONF_PATH = "/apps/nautilus-pastebin/"
- KEYMAP = {
- 'preset' : 'string',
- 'ask_confirmation' : 'bool',
- 'show_notification' : 'bool',
- 'open_browser' : 'bool'
- }
-
- def update_configuration(self):
- for kname, ktype in self.KEYMAP.items():
- kvalue = getattr(self, kname)
- getattr(self.__gconf_client, 'set_%s' % ktype)(self.GCONF_PATH + kname, kvalue)
-
- def __retrieve_settings(self):
- for kname, ktype in self.KEYMAP.items():
- setattr(self, kname, getattr(self.__gconf_client, 'get_%s' % ktype)(self.GCONF_PATH + kname))
-
- def __load_presets(self):
- cp = ConfigParser()
- cp.read(get_presets())
- self.presets = cp.sections()
+UI_FILE = find_data_file('nautilus-pastebin-configurator.ui')
+ICON_FILE = find_data_file('nautilus-pastebin.png')
+class Controller(object):
+ BASE_KEY = "apps.nautilus-pastebin"
def __init__(self):
- self.__gconf_client = gconf.client_get_default()
- self.__retrieve_settings()
- self.__load_presets()
+ self.settings = settings = Gio.Settings.new(self.BASE_KEY)
+ builder = Gtk.Builder.new()
+ builder.add_from_file(UI_FILE)
+
+ self.dialog_main = builder.get_object('dialog_main')
+ tableOptions = builder.get_object('table_options')
-class Controller(object):
+ # Set checkbuttons up
+ openbrowser = builder.get_object('openbrowser')
+ shownotification = builder.get_object('shownotification')
+
+ openbrowser.set_active(settings.get_boolean("openbrowser"))
+ settings.connect("changed::openbrowser", self.on_openbrowser_changed, openbrowser)
+ openbrowser.connect('toggled', self.on_openbrowser_toggled, settings)
+ shownotification.set_active(settings.get_boolean("shownotification"))
+ settings.connect("changed::shownotification", self.on_shownotification_changed, shownotification)
+ shownotification.connect('toggled', self.on_shownotification_toggled, settings)
+
+ # Setup entries
+ self.author = author = builder.get_object('entry_author')
+ self.username = username = builder.get_object('entry_username')
+ self.password = password = builder.get_object('entry_password')
+
+ author.set_text(settings.get_string("author"))
+ username.set_text(settings.get_string("username"))
+ password.set_text(settings.get_string("password"))
+
+ # Set combobox up
+ self.presets = presets = get_presets()
+ print presets
+ pastebin = builder.get_object("combobox_pastebin")
+ pastebin.set_entry_text_column(0)
+ curr_selected = settings.get_string("pastebin")
+ pastebin.insert_text(0, curr_selected)
+ #presets.remove(curr_selected)
+ for i in presets:
+ if i != curr_selected:
+ pastebin.append_text(i)
+ pastebin.set_active(0)
+ settings.connect("changed::pastebin", self.on_pastebin_changed, pastebin)
+ pastebin.connect("changed", self.on_pastebin_combo_changed, settings)
+
+ builder.connect_signals(self)
+ self.dialog_main.connect('delete_event', self.quit)
+ self.dialog_main.show_all()
+
+ def on_openbrowser_changed(self, settings, key, check_button):
+ check_button.set_active(settings.get_boolean("openbrowser"))
+ def on_shownotification_changed(self, settings, key, check_button):
+ check_button.set_active(settings.get_boolean("shownotification"))
+
+ def on_openbrowser_toggled(self, button, settings):
+ settings.set_boolean("openbrowser", button.get_active())
+ def on_shownotification_toggled(self, button, settings):
+ settings.set_boolean("shownotification", button.get_active())
+
+ def on_pastebin_changed(self, settings, key, combo_box):
+ pass
+ #combo_box.set_active(self.presets.index(settings.get_string("pastebin")))
+ def on_pastebin_combo_changed(self, combo_box, settings):
+ print "Selected ", combo_box.get_active_text()
+ settings.set_string("pastebin", combo_box.get_active_text())
+
+ def _save_remaining_settings(self):
+ self.settings.set_string("author", self.author.get_text())
+ self.settings.set_string("username", self.username.get_text())
+ self.settings.set_string("password", self.password.get_text())
def showErrorMessage(self, message):
- md = gtk.MessageDialog(parent=self.dialogMain,
+ md = Gtk.MessageDialog.new(parent=self.dialog_main,
message_format=message,
- buttons=gtk.BUTTONS_CLOSE,
- type = gtk.MESSAGE_ERROR,
- flags = gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT)
+ buttons=Gtk.ButtonsType.CLOSE,
+ type = Gtk.MessageType.ERROR,
+ flags = Gtk.DialogFlags.MODAL | Gtk.DialogFlags.DESTROY_WITH_PARENT)
md.run()
md.destroy()
def quit(self, *args):
- gtk.main_quit()
+ Gtk.main_quit()
def on_button_close_clicked(self, widget, data=None):
- self.dialogMain.destroy()
- self._retrieve_config_from_ui()
- self.settings.update_configuration()
+ self._save_remaining_settings()
+ self.dialog_main.destroy()
self.quit()
- def _retrieve_config_from_ui(self):
- params = self.settings.KEYMAP.keys()
- for i in params:
- if i == 'preset':
- setattr(self.settings, i, self.builder.get_object("combobox_pastebin").get_active_text())
- else:
- setattr(self.settings, i, self.builder.get_object(i).get_active())
-
- def _setup_widgets(self):
- builder = self.builder
- presets = self.settings.presets
- # Set the icon
- self.dialogMain.set_icon_from_file(ICON_FILE)
- # Populate the combobox widget
- comboboxPastebin = builder.get_object("combobox_pastebin")
- comboboxPastebin.set_model(gtk.ListStore(str))
- cell = gtk.CellRendererText()
- comboboxPastebin.pack_start(cell, True)
- comboboxPastebin.add_attribute(cell, 'text', 0)
-
- [comboboxPastebin.append_text(k) for k in presets]
- comboboxPastebin.set_active(presets.index(self.settings.preset))
-
- # Set the boolean flags
- for k in [option for option in self.settings.KEYMAP.keys() if option is not 'preset']:
- builder.get_object(k).set_active(
- getattr(self.settings, k)
- )
-
- def __init__(self):
- builder = gtk.Builder()
- builder.add_from_file(GLADE_FILE)
- self.settings = Settings()
- self.dialogMain = builder.get_object('dialog_main')
- self.tableOptions = builder.get_object('table_options')
- builder.connect_signals(self)
- self.dialogMain.connect('delete_event', self.quit)
-
- self.builder = builder
-
- self._setup_widgets()
- self.dialogMain.show_all()
-
def main():
c = Controller()
- gtk.main()
+ Gtk.main()
if __name__ == "__main__":
main()
diff -Nru nautilus-pastebin-0.5.0/nautilus-pastebin.py nautilus-pastebin-0.7.1/nautilus-pastebin.py
--- nautilus-pastebin-0.5.0/nautilus-pastebin.py 2010-06-17 14:23:11.000000000 +0000
+++ nautilus-pastebin-0.7.1/nautilus-pastebin.py 2012-02-01 19:23:56.000000000 +0000
@@ -24,27 +24,24 @@
import sys
import time
import gettext
+import re
import urllib
import webbrowser
+from subprocess import check_output, CalledProcessError
from threading import Thread
-from ConfigParser import ConfigParser
-import gtk
-import gconf
-import nautilus
-import pynotify
+
+from gi.repository import GObject, Gdk, Gio, Gtk
+from gi.repository import Nautilus
+
+try:
+ from gi.repository import Notify
+except ImportError:
+ Notify = None
# Globals
APP_NAME = "nautilus-pastebin"
LOGGING = 1
-MAINTAINER_MODE = False
-APP_PATH = os.path.join(sys.prefix, "share", APP_NAME)
-
-# Check whether running in maintainer mode
-if os.path.expanduser('~') in os.path.realpath(__file__):
- sys.path.append(os.path.expanduser(os.path.join('~', '.nautilus-pastebin')))
- APP_PATH = os.path.expanduser(os.path.join('~', '.nautilus-pastebin'))
- MAINTAINER_MODE = True
-from pastebin.core import *
+MAINTAINER_MODE = True
gettext.install(APP_NAME)
@@ -65,132 +62,93 @@
log = log().log
-# By default, the program looks for presets in the following paths:
-# /etc/nautilus-pastebin/presets/
-# ~/.config/nautilus-pastebin/presets
-PRESET_PATHS = [
- os.path.join(sys.prefix, 'share', 'nautilus-pastebin', 'presets'),
- os.path.expanduser(os.path.join('~','.config','nautilus-pastebin', 'presets'))
-]
-
-class ConfigFileException(Exception):
- pass
-
-def get_presets(preset_paths):
- presets = []
-
- for path in preset_paths:
- if os.path.exists(path):
- append_these = filter(
- lambda x: x.endswith('.conf'), os.listdir(path)
- )
- presets.extend(
- map(
- lambda x: os.path.join(path,x),
- append_these
- )
- )
- return presets
-
-pynotify.init("Nautilus pastebin extension")
-
-class Settings(object):
- """Configuration wrapper"""
- GCONF_PATH = "/apps/%s/" % APP_NAME
- KEYMAP = {
- 'preset' : 'string',
- 'ask_confirmation' : 'bool',
- 'show_notification' : 'bool',
- 'open_browser' : 'bool'
- }
-
- def validate(self):
- return self.__preset_is_available(getattr(self, 'preset'))
-
- def get_pastebin_configuration(self):
- """Retrieve and returns the configuration related to the pastebin service."""
- return PastebinConfiguration(dict(self.__presets.items(self.preset)))
-
- def get_available_pastebins(self):
- """Returns a list of available presets."""
- return self.__presets.sections()
-
- def get_settings(self):
- """Returns application's global settings."""
- return dict([(k, getattr(self, k)) for k in self.KEYMAP])
-
- def __preset_is_available(self, preset):
- return self.__presets.has_section(preset)
-
- def __init__(self):
- log ("Create Settings object...")
- self.__gconf_client = gconf.client_get_default()
- self.__presets = ConfigParser()
- log ("Reading configuration from GConf...")
- for kname, ktype in self.KEYMAP.items():
- setattr(self, kname, getattr(self.__gconf_client, 'get_%s' % ktype)(self.GCONF_PATH + kname))
- log ("Loaded configuration: ")
- for i in self.get_settings():
- log ("%s = %s" % (i, getattr(self, i)))
- self.__presets.read(get_presets(PRESET_PATHS))
+Notify.init("Nautilus pastebin extension")
class PastebinThread(Thread):
- def __init__(self, settings, pasteconf):
+ def __init__(self, settings, filename):
self.settings = settings
- self.pasteconf = pasteconf
- self.wrapper = PastebinWrapperFactory().get_wrapper(pasteconf)
+ self.filename = filename
Thread.__init__(self)
def run(self):
log ("PastebinThread started!")
-
- # Ask user to confirm the action
- if self.settings['ask_confirmation']:
- md = gtk.MessageDialog(None,
- message_format=_("The file will be sent to the selected pastebin: \
-are you sure to continue?"),
- flags=gtk.DIALOG_MODAL,
- buttons=gtk.BUTTONS_YES_NO,
- type=gtk.MESSAGE_QUESTION
- )
- response = md.run()
- md.destroy()
- if response == gtk.RESPONSE_NO:
- return
- pasteurl = self.wrapper.paste(log)
+ cmdline = ["pastebinit"]
+ options = {}
+ options['-b'] = "http://" + self.settings.get_string("pastebin")
+ options['-a'] = self.settings.get_string("author")
+ options['-u'] = self.settings.get_string("username")
+ options['-p'] = self.settings.get_string("password")
+
+ if not options['-a'] or options['-a'].strip() == '':
+ options['-a'] = os.getenv("USERNAME")
+
+ for opt in options:
+ if options[opt] != None and options[opt].strip() != '':
+ cmdline.append(opt)
+ cmdline.append(options[opt])
+
+ cmdline.append(self.filename)
+
summary = ''
message = ''
icon = None
- helper = gtk.Button()
-
- if not pasteurl:
+ helper = Gtk.Button()
+
+ try:
+ pasteurl = check_output(cmdline).strip()
+ except CalledProcessError as error:
+ # error.cmd and error.returncode, pasteurl has strerr
+ summary = error.message
+ message = pasteurl
+ icon = helper.render_icon(Gtk.STOCK_DIALOG_ERROR, Gtk.IconSize.DIALOG, None)
+ except:
+# if not pasteurl or not re.match("^http://.*$", pasteurl):
summary = _("Unable to read or parse the result page.")
message = _("It could be a server timeout or a change server side. Try later.")
- icon = helper.render_icon(gtk.STOCK_DIALOG_ERROR, gtk.ICON_SIZE_DIALOG)
+ icon = helper.render_icon(Gtk.STOCK_DIALOG_ERROR, Gtk.IconSize.DIALOG, None)
else:
summary = 'File pasted to: '
- URLmarkup = '%(pasteurl)s'
- message = URLmarkup % {'pasteurl':pasteurl}
- icon = helper.render_icon(gtk.STOCK_PASTE, gtk.ICON_SIZE_DIALOG)
-
- cb = gtk.clipboard_get('CLIPBOARD')
+ #URLmarkup = '%(pasteurl)s'
+ #message = URLmarkup % {'pasteurl':pasteurl}
+ message = pasteurl
+ icon = helper.render_icon(Gtk.STOCK_PASTE, Gtk.IconSize.DIALOG, None)
+
+ atom = Gdk.atom_intern('CLIPBOARD', True)
+ cb = Gtk.Clipboard.get(atom)
cb.clear()
- cb.set_text(pasteurl)
+ cb.set_text(pasteurl, -1)
# Open a browser window
- if self.settings['open_browser']:
+ if self.settings['openbrowser']:
webbrowser.open(pasteurl)
# Show a bubble
- if self.settings['show_notification']:
- n = pynotify.Notification(summary, message)
- n.set_icon_from_pixbuf(icon)
- n.show()
+ if self.settings['shownotification']:
+ if Notify != None:
+ n = Notify.Notification.new(summary, message, None)
+ n.set_image_from_pixbuf(icon)
+ n.show()
+ else:
+ print "libnotify is not installed"
-class PastebinitExtension(nautilus.MenuProvider):
+class PastebinitExtension(GObject.GObject, Nautilus.MenuProvider):
+ BASE_KEY = "apps.nautilus-pastebin"
def __init__(self):
log ("Intializing nautilus-pastebin extension...")
+ self.settings = Gio.Settings.new(self.BASE_KEY)
+ self.validate_settings()
+
+ def validate_settings(self):
+ # Make sure "pastebin" value is supported by pastebinit
+ pass #TODO
+
+ def show_error_message(self, error, description):
+ n = Notify.Notification.new(error, description, None)
+ helper = Gtk.Button()
+ icon = helper.render_icon(Gtk.STOCK_DIALOG_ERROR, Gtk.IconSize.DIALOG)
+ n.set_icon_from_pixbuf(icon)
+ n.show()
def get_file_items(self, window, files):
if len(files)!=1:
@@ -201,14 +159,11 @@
return
items = []
- settings = Settings()
- if not settings.validate():
- return
- preset = settings.preset
+ pastebin = self.settings.get_string("pastebin")
#Called when the user selects a file in Nautilus.
- item = nautilus.MenuItem("NautilusPython::pastebin_item",
- _("Pastebin to %s" % preset),
- _("Send this file to %s" % preset))
+ item = Nautilus.MenuItem(name="NautilusPython::pastebin_item",
+ label=_("Pastebin to %s" % pastebin),
+ tip=_("Send this file to %s" % pastebin))
item.set_property('icon', "nautilus-pastebin")
item.connect("activate", self.menu_activate_cb, files)
items.append(item)
@@ -219,32 +174,14 @@
return
filename = files[0]
- settings = Settings()
- if not settings.validate():
- n = pynotify.Notification(_("Wrong configuration"), _("The selected pastebin is not available, please check your configuration."))
- helper = gtk.Button()
- icon = helper.render_icon(gtk.STOCK_DIALOG_ERROR, gtk.ICON_SIZE_DIALOG)
- n.set_icon_from_pixbuf(icon)
- n.show()
- return
- pasteconf = settings.get_pastebin_configuration()
-
- if not pasteconf.set_format_by_mimetype(filename.get_mime_type()):
- n = pynotify.Notification(_("Unsupported MIME type"), _("The selected file cannot be pasted."))
- helper = gtk.Button()
- icon = helper.render_icon(gtk.STOCK_DIALOG_ERROR, gtk.ICON_SIZE_DIALOG)
- n.set_icon_from_pixbuf(icon)
- n.show()
- return
+ # TODO: MIME check
- pastefile = urllib.unquote(filename.get_uri()[7:])
- if not pasteconf.set_content(pastefile):
- return
+ filename = urllib.unquote(filename.get_uri()[7:])
- thread = PastebinThread(settings.get_settings(), pasteconf)
+ thread = PastebinThread(self.settings, filename)
thread.start()
while (thread.isAlive()):
time.sleep(0.09)
- while gtk.events_pending():
- gtk.main_iteration()
+ while Gtk.events_pending():
+ Gtk.main_iteration()
diff -Nru nautilus-pastebin-0.5.0/NEWS nautilus-pastebin-0.7.1/NEWS
--- nautilus-pastebin-0.5.0/NEWS 2010-06-17 20:15:33.000000000 +0000
+++ nautilus-pastebin-0.7.1/NEWS 2012-02-01 19:28:30.000000000 +0000
@@ -1,3 +1,19 @@
+0.7.1:
+
+ * Regression fix: the configuration didn't reflect changes to
+ 'author', 'username' and 'password'.
+ * Remove "askconfirmation" feature, needs more work.
+ * Fix libnotify integration.
+
+0.7.0 - Pastella:
+
+ * Port to GObject Introspection.
+ * Migrate from GConf to GSettings.
+ * Port configurator's UI from libglade to GtkBuilder.
+ * Now depends on pastebinit at runtime;
+ see: http://launchpad.net/pastebinit
+ * Fix Debian bug#570131, desktop file missed the "Exec" key.
+
0.5.0:
* New supported pastebins:
diff -Nru nautilus-pastebin-0.5.0/pastebin/core.py nautilus-pastebin-0.7.1/pastebin/core.py
--- nautilus-pastebin-0.5.0/pastebin/core.py 2010-06-17 20:06:34.000000000 +0000
+++ nautilus-pastebin-0.7.1/pastebin/core.py 1970-01-01 00:00:00.000000000 +0000
@@ -1,300 +0,0 @@
-#!/usr/bin/python
-# -*- coding: utf-8 -*-
-# nautilus-pastebin - Nautilus extension to paste a file to a pastebin service
-# Written by:
-# Alessio Treglia
-# Copyright (C) 2009-2010, Alessio Treglia
-#
-# Part of this code has been taken from pastebinit script
-# pastebinit was written by:
-# Stéphane Graber
-# Daniel Bartlett
-# David Paleino
-# URL: http://www.stgraber.org/download/projects/pastebin/
-# Copyright (C) 2006-2009, Stéphane Graber, Daniel Bartlett, David Paleino
-# Distributed under the terms of the GNU GPL-2 license
-#
-# This package is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This package is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this package; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-#
-
-import os
-import re
-import mimetypes
-import urllib
-import xmlrpclib
-
-from ConfigParser import ConfigParser
-
-# Custom urlopener to handle 401's
-class PasteURLOpener(urllib.FancyURLopener):
- """Do the HTTP requests."""
- def http_error_401(self, url, fp, errcode, errmsg, headers, data=None):
- return None
-
-class PastebinConfiguration(object):
- PARAMETERS = [
- "website",
- "wrapper",
- "content",
- "user",
- "jabberid",
- "version",
- "format",
- "parentid",
- "permatag",
- "title",
- "username",
- "password",
- "default_mime"
- ]
-
- def __set_default_parameters(self):
- for k in PastebinConfiguration.PARAMETERS:
- self.__dict__.setdefault(k,'')
- if k in self._optionsDict.keys():
- setattr(self, k, self._optionsDict[k])
-
- def __get_mapping_by_name(self, optname):
- map = {}
- if optname in self._optionsDict:
- exec(self._optionsDict[optname])
- return map
-
- def __init__(self, optionsDict):
- self._optionsDict = optionsDict
- self.__set_default_parameters()
- self.aliases = self.__get_mapping_by_name('aliases')
- self.extras = self.__get_mapping_by_name('extras')
- self.mimetypes = self.__get_mapping_by_name('mimetypes')
- self.mimetypes.setdefault('text/plain', self._optionsDict['default_mime'])
-
- def set_format_by_mimetype(self, mimetype):
- if mimetype in self.mimetypes.keys():
- self.format = self.mimetypes[mimetype]
- elif mimetype.split('/')[0] == 'text':
- self.format = self.default_mime # self.mimetypes['text/plain']
- else:
- return False
- return True
-
- def set_content(self, pastefile):
- fp = open(pastefile)
- content = fp.read()
- fp.close()
- if not content:
- return False
- # OK, let's go...
- self.content = content
- self.title = os.path.split(pastefile)[-1]
- return True
-
-class PastebinWrapperFactory(object):
- """Singleton factory which returns a wrapper object dinamically."""
- __instance = None
- class __impl(object):
- """Implementation of the class' methods"""
- def get_wrapper(self, pasteconf):
- wrapper = pasteconf.wrapper
- obj = None
- try:
- exec("obj = %sWrapper(pasteconf)" % wrapper)
- except Exception, e:
- pass
- return obj
-
- def __getattr__(self, attr):
- return getattr(self.__instance, attr)
- def __setattr__(self, attr, value):
- return setattr(self.__instance, attr, value)
-
- def __init__(self):
- if PastebinWrapperFactory.__instance is None:
- PastebinWrapperFactory.__instance = PastebinWrapperFactory.__impl()
- self.__dict__['_PastebinWrapperFactory__instance'] = PastebinWrapperFactory.__instance
-
-class GenericPastebinWrapper(object):
- NOT_EMPTY_FIELDS = ['website', 'content', 'format', 'title', 'default_mime']
-
- def validate(self):
- """Do the validation of the configuration file."""
- if self.conf.user == '':
- self.conf.user = os.environ.get('USER')
- return self._check_not_empty() and self._check_aliases() and self._check_extras()
-
- def hook_before_setup_parameters(self): pass
- def hook_after_setup_parameters(self): pass
-
- def setup_parameters(self):
- # Execute before-setup hook
- self.hook_before_setup_parameters()
- # Execute the setup
- self._setup_parameters()
- # Execute after-setup hook
- self.hook_after_setup_parameters()
-
- def paste(self, logger=None):
- if not self.validate():
- return None
-
- self.setup_parameters()
-
- website = self.conf.website
- params = self.params
- pasteurl = None
-
- if not re.search(".*/", website):
- website += "/"
-
- reLink=None
- tmp_page=""
- if params.__contains__("page"):
- website+=params['page']
- tmp_page=params['page']
- params.__delitem__("page")
- if params.__contains__("regexp"):
- reLink=params['regexp']
- params.__delitem__("regexp")
- # Convert to a format usable with the HTML POST
- params = urllib.urlencode(params)
- if logger is not None:
- logger("POST contents: %s" % str(params))
-
- try:
- url_opener = PasteURLOpener()
- # Send the informations and be redirected to the final page
- page = url_opener.open(website, params)
- # Check whether we have to apply a regexp
- if reLink:
- if website.count(tmp_page) > 1:
- website = website.rstrip(tmp_page)
- else:
- website = website.replace(tmp_page, "")
- pasteurl = website + "/" + re.split(reLink, page.read())[1]
- else:
- pasteurl = page.url
-
- except Exception, value:
- pasteurl = None
- return pasteurl
-
- def _check_aliases(self):
- return all(
- map(
- lambda x: x in self.conf.__dict__, self.conf.aliases.keys())
- )
-
- def _check_not_empty(self):
- """Verify whether all the opts' keys are non-empty."""
- return all(map(lambda x: getattr(self.conf, x) != '', self.NOT_EMPTY_FIELDS))
-
- def _check_extras(self): return True
-
- def _setup_parameters(self):
- # Set the aliases
- for k in self.conf.aliases.keys():
- for v in self.conf.aliases[k]:
- self.params[v] = getattr(self.conf, k)
- # Set the extras
- for k in self.conf.extras.keys():
- self.params[k] = self.conf.extras[k]
-
- def __init__(self, pastebinConfiguration):
- """Class constructor."""
- try:
- toAdd = getattr(cls, 'not_empty_fields')
- self.NOT_EMPTY_FIELDS.extend(toAdd)
- except:
- pass
- self.conf = pastebinConfiguration
- self.params = {}
-
-
-class PasteyNetWrapper(GenericPastebinWrapper):
-
- def _parentFixup(self, website, parentid):
- if parentid == "":
- return ""
- url_opener = PasteURLOpener()
- page = url_opener.open(website + '/' + parentid, None)
- matches = re.split(')'
- )
- antispam_field_index_re = re.compile('name="(__antispam_rand[0-9])"')
- antispam_field_value_re = re.compile('value="([0-9])"')
-
- field_lst_raw = antispam_hidden_fields_re.findall(page)
- # Begin to populate the parameters map.
- for i in field_lst_raw:
- self.params[antispam_field_index_re.findall(i)[0]] = \
- antispam_field_value_re.findall(i)[0]
- self.params['__antispam_result'] = \
- int(self.params['__antispam_rand1']) + int(self.params['__antispam_rand2'])
-
diff -Nru nautilus-pastebin-0.5.0/PKG-INFO nautilus-pastebin-0.7.1/PKG-INFO
--- nautilus-pastebin-0.5.0/PKG-INFO 2010-06-18 13:30:53.000000000 +0000
+++ nautilus-pastebin-0.7.1/PKG-INFO 2012-02-01 19:29:23.000000000 +0000
@@ -1,6 +1,6 @@
Metadata-Version: 1.0
Name: nautilus-pastebin
-Version: 0.5.0
+Version: 0.7.1
Summary: Nautilus extension to send files to a pastebin
Home-page: https://launchpad.net/nautilus-pastebin
Author: Alessio Treglia
diff -Nru nautilus-pastebin-0.5.0/po/cs.po nautilus-pastebin-0.7.1/po/cs.po
--- nautilus-pastebin-0.5.0/po/cs.po 2010-06-18 13:28:56.000000000 +0000
+++ nautilus-pastebin-0.7.1/po/cs.po 1970-01-01 00:00:00.000000000 +0000
@@ -1,88 +0,0 @@
-# Czech translation for nautilus-pastebin
-# Copyright (c) 2010 Rosetta Contributors and Canonical Ltd 2010
-# This file is distributed under the same license as the nautilus-pastebin package.
-# FIRST AUTHOR , 2010.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: nautilus-pastebin\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2010-06-18 15:15+0200\n"
-"PO-Revision-Date: 2010-02-26 22:40+0000\n"
-"Last-Translator: Roman Horník \n"
-"Language-Team: Czech \n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2010-02-27 04:56+0000\n"
-"X-Generator: Launchpad (build Unknown)\n"
-
-#: ../nautilus-pastebin.py:150
-msgid ""
-"The file will be sent to the selected pastebin: are you sure to continue?"
-msgstr "Soubor bude odeslán do zvoleného pastebinu: přejete si pokračovat?"
-
-#: ../nautilus-pastebin.py:168
-msgid "Unable to read or parse the result page."
-msgstr "Nemohu načíst či rozlousknout výslednou stránku."
-
-#: ../nautilus-pastebin.py:169
-msgid "It could be a server timeout or a change server side. Try later."
-msgstr ""
-"Může to být způsobeno buď překročením časového limitu serveru, nebo jakousi "
-"změnou na straně serveru. Zkuste to za chvíli."
-
-#: ../nautilus-pastebin.py:210
-#, fuzzy, python-format
-msgid "Pastebin to %s"
-msgstr "Pastebin"
-
-#: ../nautilus-pastebin.py:211
-#, fuzzy, python-format
-msgid "Send this file to %s"
-msgstr "Odeslat tento soubor do pastebinu"
-
-#: ../nautilus-pastebin.py:224
-msgid "Wrong configuration"
-msgstr ""
-
-#: ../nautilus-pastebin.py:224
-msgid ""
-"The selected pastebin is not available, please check your configuration."
-msgstr ""
-
-#: ../nautilus-pastebin.py:233
-msgid "Unsupported MIME type"
-msgstr ""
-
-#: ../nautilus-pastebin.py:233
-msgid "The selected file cannot be pasted."
-msgstr "Vybraný soubor nemůže být vložen."
-
-#: ../nautilus-pastebin-configurator.py:77
-#, python-format
-msgid "Can't find %s in any known prefix!"
-msgstr "Nemohu nelézt %s v žádném známém prefixu!"
-
-#: ../data/nautilus-pastebin-configurator.glade.h:1
-msgid "Ask to confirm:"
-msgstr "Zeptat se na potvrzení:"
-
-#: ../data/nautilus-pastebin-configurator.glade.h:2
-msgid "Open browser:"
-msgstr "Otevřít prohlížeč"
-
-#: ../data/nautilus-pastebin-configurator.glade.h:3
-msgid "Pastebin:"
-msgstr "Pastebin:"
-
-#: ../data/nautilus-pastebin-configurator.glade.h:4
-msgid "Show a notification:"
-msgstr "Zobrazit upozornění:"
-
-#: ../data/nautilus-pastebin-configurator.glade.h:5
-msgid "Nautilus Pastebin configuration panel"
-msgstr "Konfigurační panel programu Nautilus Pastebin"
-
-#~ msgid "Unable to send the file"
-#~ msgstr "Nelze tento soubor odeslat"
diff -Nru nautilus-pastebin-0.5.0/po/de.po nautilus-pastebin-0.7.1/po/de.po
--- nautilus-pastebin-0.5.0/po/de.po 2010-06-18 13:28:56.000000000 +0000
+++ nautilus-pastebin-0.7.1/po/de.po 1970-01-01 00:00:00.000000000 +0000
@@ -1,87 +0,0 @@
-# German translation for nautilus-pastebin
-# Copyright (c) 2009 Rosetta Contributors and Canonical Ltd 2009
-# This file is distributed under the same license as the nautilus-pastebin package.
-# FIRST AUTHOR , 2009.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: nautilus-pastebin\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2010-06-18 15:15+0200\n"
-"PO-Revision-Date: 2010-04-17 05:28+0000\n"
-"Last-Translator: Jan-Christoph Borchardt \n"
-"Language-Team: German \n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2010-04-18 03:56+0000\n"
-"X-Generator: Launchpad (build Unknown)\n"
-
-#: ../nautilus-pastebin.py:150
-msgid ""
-"The file will be sent to the selected pastebin: are you sure to continue?"
-msgstr ""
-"Diese Datei wird zum ausgewählen Pastebin gesendet. Wirklich fortfahren?"
-
-#: ../nautilus-pastebin.py:168
-msgid "Unable to read or parse the result page."
-msgstr "Konnte die Ergebnisseite nicht lesen."
-
-#: ../nautilus-pastebin.py:169
-msgid "It could be a server timeout or a change server side. Try later."
-msgstr "Es könnte ein Serverfehler sein. Versuchen Sie es später noch einmal."
-
-#: ../nautilus-pastebin.py:210
-#, fuzzy, python-format
-msgid "Pastebin to %s"
-msgstr "Pastebin"
-
-#: ../nautilus-pastebin.py:211
-#, fuzzy, python-format
-msgid "Send this file to %s"
-msgstr "Sende diese Datei zu einem Pastebin"
-
-#: ../nautilus-pastebin.py:224
-msgid "Wrong configuration"
-msgstr ""
-
-#: ../nautilus-pastebin.py:224
-msgid ""
-"The selected pastebin is not available, please check your configuration."
-msgstr ""
-
-#: ../nautilus-pastebin.py:233
-msgid "Unsupported MIME type"
-msgstr ""
-
-#: ../nautilus-pastebin.py:233
-msgid "The selected file cannot be pasted."
-msgstr "Die gewählte Datei kann nicht eingefügt werden."
-
-#: ../nautilus-pastebin-configurator.py:77
-#, python-format
-msgid "Can't find %s in any known prefix!"
-msgstr "Konnte %s in keinem bekannten Präfix finden!"
-
-#: ../data/nautilus-pastebin-configurator.glade.h:1
-msgid "Ask to confirm:"
-msgstr "Um Bestätigung bitten:"
-
-#: ../data/nautilus-pastebin-configurator.glade.h:2
-msgid "Open browser:"
-msgstr "Öffne Browser:"
-
-#: ../data/nautilus-pastebin-configurator.glade.h:3
-msgid "Pastebin:"
-msgstr "Pastebin:"
-
-#: ../data/nautilus-pastebin-configurator.glade.h:4
-msgid "Show a notification:"
-msgstr "Eine Benachrichtigung anzeigen:"
-
-#: ../data/nautilus-pastebin-configurator.glade.h:5
-msgid "Nautilus Pastebin configuration panel"
-msgstr "Nautilus-Konfigurationsleiste für Pastebin-Dienste"
-
-#~ msgid "Unable to send the file"
-#~ msgstr "Die Datei konnte nicht übertragen werden"
diff -Nru nautilus-pastebin-0.5.0/po/es.po nautilus-pastebin-0.7.1/po/es.po
--- nautilus-pastebin-0.5.0/po/es.po 2010-06-18 13:28:56.000000000 +0000
+++ nautilus-pastebin-0.7.1/po/es.po 1970-01-01 00:00:00.000000000 +0000
@@ -1,90 +0,0 @@
-# Spanish translation for nautilus-pastebin
-# Copyright (c) 2009 Rosetta Contributors and Canonical Ltd 2009
-# This file is distributed under the same license as the nautilus-pastebin package.
-# FIRST AUTHOR , 2009.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: nautilus-pastebin\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2010-06-18 15:15+0200\n"
-"PO-Revision-Date: 2010-01-23 16:00+0000\n"
-"Last-Translator: DiegoJ \n"
-"Language-Team: Spanish \n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2010-02-26 04:57+0000\n"
-"X-Generator: Launchpad (build Unknown)\n"
-
-#: ../nautilus-pastebin.py:150
-msgid ""
-"The file will be sent to the selected pastebin: are you sure to continue?"
-msgstr ""
-"El archivo se enviará al pastebin seleccionado: ¿está seguro de que quiere "
-"continuar?"
-
-#: ../nautilus-pastebin.py:168
-msgid "Unable to read or parse the result page."
-msgstr "No se pudo leer o analizar la página de resultados."
-
-#: ../nautilus-pastebin.py:169
-msgid "It could be a server timeout or a change server side. Try later."
-msgstr ""
-"Ha podido vencer el tiempo de conexión o ha podido ocurrir un cambio en el "
-"lado del servidor. Inténtelo de nuevo."
-
-#: ../nautilus-pastebin.py:210
-#, fuzzy, python-format
-msgid "Pastebin to %s"
-msgstr "Pastebin"
-
-#: ../nautilus-pastebin.py:211
-#, fuzzy, python-format
-msgid "Send this file to %s"
-msgstr "Enviar este archivo a un \"pastebin\""
-
-#: ../nautilus-pastebin.py:224
-msgid "Wrong configuration"
-msgstr ""
-
-#: ../nautilus-pastebin.py:224
-msgid ""
-"The selected pastebin is not available, please check your configuration."
-msgstr ""
-
-#: ../nautilus-pastebin.py:233
-msgid "Unsupported MIME type"
-msgstr ""
-
-#: ../nautilus-pastebin.py:233
-msgid "The selected file cannot be pasted."
-msgstr "No se puede pegar el siguiente archivo."
-
-#: ../nautilus-pastebin-configurator.py:77
-#, python-format
-msgid "Can't find %s in any known prefix!"
-msgstr "%s no es ningún prefijo conocido."
-
-#: ../data/nautilus-pastebin-configurator.glade.h:1
-msgid "Ask to confirm:"
-msgstr "Pregunta para confirmar:"
-
-#: ../data/nautilus-pastebin-configurator.glade.h:2
-msgid "Open browser:"
-msgstr "Abrir navegador:"
-
-#: ../data/nautilus-pastebin-configurator.glade.h:3
-msgid "Pastebin:"
-msgstr "Pastebin:"
-
-#: ../data/nautilus-pastebin-configurator.glade.h:4
-msgid "Show a notification:"
-msgstr "Mostrar un notificación:"
-
-#: ../data/nautilus-pastebin-configurator.glade.h:5
-msgid "Nautilus Pastebin configuration panel"
-msgstr "Panel de configuración de Nautilus \"Pastebin\""
-
-#~ msgid "Unable to send the file"
-#~ msgstr "No es posible enviar el fichero"
diff -Nru nautilus-pastebin-0.5.0/po/fr.po nautilus-pastebin-0.7.1/po/fr.po
--- nautilus-pastebin-0.5.0/po/fr.po 2010-06-18 13:28:56.000000000 +0000
+++ nautilus-pastebin-0.7.1/po/fr.po 1970-01-01 00:00:00.000000000 +0000
@@ -1,90 +0,0 @@
-# French translation for nautilus-pastebin
-# Copyright (c) 2010 Rosetta Contributors and Canonical Ltd 2010
-# This file is distributed under the same license as the nautilus-pastebin package.
-# FIRST AUTHOR , 2010.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: nautilus-pastebin\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2010-06-18 15:15+0200\n"
-"PO-Revision-Date: 2010-01-23 16:00+0000\n"
-"Last-Translator: FULL NAME \n"
-"Language-Team: French \n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2010-02-26 04:57+0000\n"
-"X-Generator: Launchpad (build Unknown)\n"
-
-#: ../nautilus-pastebin.py:150
-msgid ""
-"The file will be sent to the selected pastebin: are you sure to continue?"
-msgstr ""
-"Le fichier va être envoyé dans le pastebin sélectionné : êtes vous sûr de "
-"vouloir continuer ?"
-
-#: ../nautilus-pastebin.py:168
-msgid "Unable to read or parse the result page."
-msgstr "Impossible de lire ou d'analyser la page de résultat."
-
-#: ../nautilus-pastebin.py:169
-msgid "It could be a server timeout or a change server side. Try later."
-msgstr ""
-"C'est peut-être du à un temps de latence du serveur ou un à une modification "
-"côté serveur. Essayez plus tard."
-
-#: ../nautilus-pastebin.py:210
-#, fuzzy, python-format
-msgid "Pastebin to %s"
-msgstr "Pastebin"
-
-#: ../nautilus-pastebin.py:211
-#, fuzzy, python-format
-msgid "Send this file to %s"
-msgstr "Envoyer ce fichier sur un pastebin"
-
-#: ../nautilus-pastebin.py:224
-msgid "Wrong configuration"
-msgstr ""
-
-#: ../nautilus-pastebin.py:224
-msgid ""
-"The selected pastebin is not available, please check your configuration."
-msgstr ""
-
-#: ../nautilus-pastebin.py:233
-msgid "Unsupported MIME type"
-msgstr ""
-
-#: ../nautilus-pastebin.py:233
-msgid "The selected file cannot be pasted."
-msgstr "Le fichier selectionné ne peut pas être collé."
-
-#: ../nautilus-pastebin-configurator.py:77
-#, python-format
-msgid "Can't find %s in any known prefix!"
-msgstr "%s non trouvé dans les préfixes !"
-
-#: ../data/nautilus-pastebin-configurator.glade.h:1
-msgid "Ask to confirm:"
-msgstr "Demander de confirmer:"
-
-#: ../data/nautilus-pastebin-configurator.glade.h:2
-msgid "Open browser:"
-msgstr "Ouvrir navigateur:"
-
-#: ../data/nautilus-pastebin-configurator.glade.h:3
-msgid "Pastebin:"
-msgstr "Pastebin :"
-
-#: ../data/nautilus-pastebin-configurator.glade.h:4
-msgid "Show a notification:"
-msgstr "Afficher une notification:"
-
-#: ../data/nautilus-pastebin-configurator.glade.h:5
-msgid "Nautilus Pastebin configuration panel"
-msgstr "Panneau de configuration de Nautilus Pastebin"
-
-#~ msgid "Unable to send the file"
-#~ msgstr "Impossible d'envoyer le fichier"
diff -Nru nautilus-pastebin-0.5.0/po/it.po nautilus-pastebin-0.7.1/po/it.po
--- nautilus-pastebin-0.5.0/po/it.po 2010-06-18 13:28:56.000000000 +0000
+++ nautilus-pastebin-0.7.1/po/it.po 1970-01-01 00:00:00.000000000 +0000
@@ -1,90 +0,0 @@
-# Italian translation for nautilus-pastebin
-# Copyright (c) 2009 Rosetta Contributors and Canonical Ltd 2009
-# This file is distributed under the same license as the nautilus-pastebin package.
-# FIRST AUTHOR , 2009.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: nautilus-pastebin\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2010-06-18 15:15+0200\n"
-"PO-Revision-Date: 2010-01-23 16:54+0000\n"
-"Last-Translator: Alessio Treglia \n"
-"Language-Team: Italian \n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2010-02-26 04:57+0000\n"
-"X-Generator: Launchpad (build Unknown)\n"
-
-#: ../nautilus-pastebin.py:150
-msgid ""
-"The file will be sent to the selected pastebin: are you sure to continue?"
-msgstr ""
-"Il file verrà inviato al pastebin selezionato: si è sicuri di voler "
-"continuare?"
-
-#: ../nautilus-pastebin.py:168
-msgid "Unable to read or parse the result page."
-msgstr "Impossibile leggere o interpretare la pagina di risultato."
-
-#: ../nautilus-pastebin.py:169
-msgid "It could be a server timeout or a change server side. Try later."
-msgstr ""
-"Può essersi verificato un timeout o un problema del server. Provare più "
-"tardi."
-
-#: ../nautilus-pastebin.py:210
-#, fuzzy, python-format
-msgid "Pastebin to %s"
-msgstr "Pastebin"
-
-#: ../nautilus-pastebin.py:211
-#, fuzzy, python-format
-msgid "Send this file to %s"
-msgstr "Invia questo file a un pastebin"
-
-#: ../nautilus-pastebin.py:224
-msgid "Wrong configuration"
-msgstr ""
-
-#: ../nautilus-pastebin.py:224
-msgid ""
-"The selected pastebin is not available, please check your configuration."
-msgstr ""
-
-#: ../nautilus-pastebin.py:233
-msgid "Unsupported MIME type"
-msgstr ""
-
-#: ../nautilus-pastebin.py:233
-msgid "The selected file cannot be pasted."
-msgstr "Il file selezionato non può essere incollato."
-
-#: ../nautilus-pastebin-configurator.py:77
-#, python-format
-msgid "Can't find %s in any known prefix!"
-msgstr "Impossibile trovare %s in un qualsiasi prefisso conosciuto."
-
-#: ../data/nautilus-pastebin-configurator.glade.h:1
-msgid "Ask to confirm:"
-msgstr "Chiedere conferma:"
-
-#: ../data/nautilus-pastebin-configurator.glade.h:2
-msgid "Open browser:"
-msgstr "Apre il browser:"
-
-#: ../data/nautilus-pastebin-configurator.glade.h:3
-msgid "Pastebin:"
-msgstr "Pastebin:"
-
-#: ../data/nautilus-pastebin-configurator.glade.h:4
-msgid "Show a notification:"
-msgstr "Mostra una notifica:"
-
-#: ../data/nautilus-pastebin-configurator.glade.h:5
-msgid "Nautilus Pastebin configuration panel"
-msgstr "Pannello di configurazione di Nautilus Pastebin"
-
-#~ msgid "Unable to send the file"
-#~ msgstr "Impossibile inviare il file"
diff -Nru nautilus-pastebin-0.5.0/po/nautilus-pastebin.pot nautilus-pastebin-0.7.1/po/nautilus-pastebin.pot
--- nautilus-pastebin-0.5.0/po/nautilus-pastebin.pot 2010-06-18 13:15:57.000000000 +0000
+++ nautilus-pastebin-0.7.1/po/nautilus-pastebin.pot 2012-02-01 17:04:59.000000000 +0000
@@ -8,75 +8,40 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2010-06-18 15:15+0200\n"
+"POT-Creation-Date: 2012-02-01 18:04+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME \n"
"Language-Team: LANGUAGE \n"
+"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"
-#: ../nautilus-pastebin.py:150
+#: ../nautilus-pastebin.py:73
msgid ""
"The file will be sent to the selected pastebin: are you sure to continue?"
msgstr ""
-#: ../nautilus-pastebin.py:168
+#. if not pasteurl or not re.match("^http://.*$", pasteurl):
+#: ../nautilus-pastebin.py:116
msgid "Unable to read or parse the result page."
msgstr ""
-#: ../nautilus-pastebin.py:169
+#: ../nautilus-pastebin.py:117
msgid "It could be a server timeout or a change server side. Try later."
msgstr ""
-#: ../nautilus-pastebin.py:210
+#: ../nautilus-pastebin.py:170
#, python-format
msgid "Pastebin to %s"
msgstr ""
-#: ../nautilus-pastebin.py:211
+#: ../nautilus-pastebin.py:171
#, python-format
msgid "Send this file to %s"
msgstr ""
-#: ../nautilus-pastebin.py:224
-msgid "Wrong configuration"
-msgstr ""
-
-#: ../nautilus-pastebin.py:224
-msgid ""
-"The selected pastebin is not available, please check your configuration."
-msgstr ""
-
-#: ../nautilus-pastebin.py:233
-msgid "Unsupported MIME type"
-msgstr ""
-
-#: ../nautilus-pastebin.py:233
-msgid "The selected file cannot be pasted."
-msgstr ""
-
-#: ../nautilus-pastebin-configurator.py:77
+#: ../nautilus-pastebin-configurator.py:45
#, python-format
msgid "Can't find %s in any known prefix!"
msgstr ""
-
-#: ../data/nautilus-pastebin-configurator.glade.h:1
-msgid "Ask to confirm:"
-msgstr ""
-
-#: ../data/nautilus-pastebin-configurator.glade.h:2
-msgid "Open browser:"
-msgstr ""
-
-#: ../data/nautilus-pastebin-configurator.glade.h:3
-msgid "Pastebin:"
-msgstr ""
-
-#: ../data/nautilus-pastebin-configurator.glade.h:4
-msgid "Show a notification:"
-msgstr ""
-
-#: ../data/nautilus-pastebin-configurator.glade.h:5
-msgid "Nautilus Pastebin configuration panel"
-msgstr ""
diff -Nru nautilus-pastebin-0.5.0/po/nautilus-pastebin.pot.~1~ nautilus-pastebin-0.7.1/po/nautilus-pastebin.pot.~1~
--- nautilus-pastebin-0.5.0/po/nautilus-pastebin.pot.~1~ 2010-06-18 13:12:33.000000000 +0000
+++ nautilus-pastebin-0.7.1/po/nautilus-pastebin.pot.~1~ 1970-01-01 00:00:00.000000000 +0000
@@ -1,82 +0,0 @@
-# SOME DESCRIPTIVE TITLE.
-# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
-# This file is distributed under the same license as the PACKAGE package.
-# FIRST AUTHOR , YEAR.
-#
-#, fuzzy
-msgid ""
-msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2010-06-18 15:12+0200\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME \n"
-"Language-Team: LANGUAGE \n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=CHARSET\n"
-"Content-Transfer-Encoding: 8bit\n"
-
-#: ../nautilus-pastebin.py:150
-msgid ""
-"The file will be sent to the selected pastebin: are you sure to continue?"
-msgstr ""
-
-#: ../nautilus-pastebin.py:168
-msgid "Unable to read or parse the result page."
-msgstr ""
-
-#: ../nautilus-pastebin.py:169
-msgid "It could be a server timeout or a change server side. Try later."
-msgstr ""
-
-#: ../nautilus-pastebin.py:210
-#, python-format
-msgid "Pastebin to %s"
-msgstr ""
-
-#: ../nautilus-pastebin.py:211
-#, python-format
-msgid "Send this file to %s"
-msgstr ""
-
-#: ../nautilus-pastebin.py:224
-msgid "Wrong configuration"
-msgstr ""
-
-#: ../nautilus-pastebin.py:224
-msgid ""
-"The selected pastebin is not available, please check your configuration."
-msgstr ""
-
-#: ../nautilus-pastebin.py:233
-msgid "Unsupported MIME type"
-msgstr ""
-
-#: ../nautilus-pastebin.py:233
-msgid "The selected file cannot be pasted."
-msgstr ""
-
-#: ../nautilus-pastebin-configurator.py:77
-#, python-format
-msgid "Can't find %s in any known prefix!"
-msgstr ""
-
-#: ../data/nautilus-pastebin-configurator.glade.h:1
-msgid "Ask to confirm:"
-msgstr ""
-
-#: ../data/nautilus-pastebin-configurator.glade.h:2
-msgid "Open browser:"
-msgstr ""
-
-#: ../data/nautilus-pastebin-configurator.glade.h:3
-msgid "Pastebin:"
-msgstr ""
-
-#: ../data/nautilus-pastebin-configurator.glade.h:4
-msgid "Show a notification:"
-msgstr ""
-
-#: ../data/nautilus-pastebin-configurator.glade.h:5
-msgid "Nautilus Pastebin configuration panel"
-msgstr ""
diff -Nru nautilus-pastebin-0.5.0/po/nl.po nautilus-pastebin-0.7.1/po/nl.po
--- nautilus-pastebin-0.5.0/po/nl.po 2010-06-18 13:28:56.000000000 +0000
+++ nautilus-pastebin-0.7.1/po/nl.po 1970-01-01 00:00:00.000000000 +0000
@@ -1,90 +0,0 @@
-# Dutch translation for nautilus-pastebin
-# Copyright (c) 2010 Rosetta Contributors and Canonical Ltd 2010
-# This file is distributed under the same license as the nautilus-pastebin package.
-# FIRST AUTHOR , 2010.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: nautilus-pastebin\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2010-06-18 15:15+0200\n"
-"PO-Revision-Date: 2010-01-23 16:00+0000\n"
-"Last-Translator: FULL NAME \n"
-"Language-Team: Dutch \n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2010-02-26 04:57+0000\n"
-"X-Generator: Launchpad (build Unknown)\n"
-
-#: ../nautilus-pastebin.py:150
-msgid ""
-"The file will be sent to the selected pastebin: are you sure to continue?"
-msgstr ""
-"Het bestand zal verstuurd worden naar de geselecteerde pastebin: weet u "
-"zeker dat u wilt doorgaan?"
-
-#: ../nautilus-pastebin.py:168
-msgid "Unable to read or parse the result page."
-msgstr "Kon de resultaatpagina niet verwerkeen of lezen."
-
-#: ../nautilus-pastebin.py:169
-msgid "It could be a server timeout or a change server side. Try later."
-msgstr ""
-"Mogelijk trad er een servertime-out op, of is er iets aan de server "
-"veranderd. Probeer het later nog eens."
-
-#: ../nautilus-pastebin.py:210
-#, fuzzy, python-format
-msgid "Pastebin to %s"
-msgstr "Pastebin"
-
-#: ../nautilus-pastebin.py:211
-#, fuzzy, python-format
-msgid "Send this file to %s"
-msgstr "Dit bestand naar een pastebin versturen"
-
-#: ../nautilus-pastebin.py:224
-msgid "Wrong configuration"
-msgstr ""
-
-#: ../nautilus-pastebin.py:224
-msgid ""
-"The selected pastebin is not available, please check your configuration."
-msgstr ""
-
-#: ../nautilus-pastebin.py:233
-msgid "Unsupported MIME type"
-msgstr ""
-
-#: ../nautilus-pastebin.py:233
-msgid "The selected file cannot be pasted."
-msgstr "Het geselecteerde bestand kan niet geplaatst worden."
-
-#: ../nautilus-pastebin-configurator.py:77
-#, python-format
-msgid "Can't find %s in any known prefix!"
-msgstr "Kan %s niet in de prefixes vinden!"
-
-#: ../data/nautilus-pastebin-configurator.glade.h:1
-msgid "Ask to confirm:"
-msgstr "Vragen om te bevestigen:"
-
-#: ../data/nautilus-pastebin-configurator.glade.h:2
-msgid "Open browser:"
-msgstr "Browser openen:"
-
-#: ../data/nautilus-pastebin-configurator.glade.h:3
-msgid "Pastebin:"
-msgstr "Pastebin:"
-
-#: ../data/nautilus-pastebin-configurator.glade.h:4
-msgid "Show a notification:"
-msgstr "Een melding weergeven:"
-
-#: ../data/nautilus-pastebin-configurator.glade.h:5
-msgid "Nautilus Pastebin configuration panel"
-msgstr "Configuratiepaneel voor Nautilus Pastebin"
-
-#~ msgid "Unable to send the file"
-#~ msgstr "Kan het bestand niet verzenden"
diff -Nru nautilus-pastebin-0.5.0/po/oc.po nautilus-pastebin-0.7.1/po/oc.po
--- nautilus-pastebin-0.5.0/po/oc.po 2010-06-18 13:28:56.000000000 +0000
+++ nautilus-pastebin-0.7.1/po/oc.po 1970-01-01 00:00:00.000000000 +0000
@@ -1,86 +0,0 @@
-# Occitan (post 1500) translation for nautilus-pastebin
-# Copyright (c) 2010 Rosetta Contributors and Canonical Ltd 2010
-# This file is distributed under the same license as the nautilus-pastebin package.
-# FIRST AUTHOR , 2010.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: nautilus-pastebin\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2010-06-18 15:15+0200\n"
-"PO-Revision-Date: 2010-03-19 08:49+0000\n"
-"Last-Translator: Cédric VALMARY (Per Tot en òc) \n"
-"Language-Team: Occitan (post 1500) \n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2010-03-20 04:59+0000\n"
-"X-Generator: Launchpad (build Unknown)\n"
-
-#: ../nautilus-pastebin.py:150
-msgid ""
-"The file will be sent to the selected pastebin: are you sure to continue?"
-msgstr ""
-
-#: ../nautilus-pastebin.py:168
-msgid "Unable to read or parse the result page."
-msgstr ""
-
-#: ../nautilus-pastebin.py:169
-msgid "It could be a server timeout or a change server side. Try later."
-msgstr ""
-
-#: ../nautilus-pastebin.py:210
-#, fuzzy, python-format
-msgid "Pastebin to %s"
-msgstr "Pastebin"
-
-#: ../nautilus-pastebin.py:211
-#, python-format
-msgid "Send this file to %s"
-msgstr ""
-
-#: ../nautilus-pastebin.py:224
-msgid "Wrong configuration"
-msgstr ""
-
-#: ../nautilus-pastebin.py:224
-msgid ""
-"The selected pastebin is not available, please check your configuration."
-msgstr ""
-
-#: ../nautilus-pastebin.py:233
-msgid "Unsupported MIME type"
-msgstr ""
-
-#: ../nautilus-pastebin.py:233
-msgid "The selected file cannot be pasted."
-msgstr ""
-
-#: ../nautilus-pastebin-configurator.py:77
-#, python-format
-msgid "Can't find %s in any known prefix!"
-msgstr ""
-
-#: ../data/nautilus-pastebin-configurator.glade.h:1
-msgid "Ask to confirm:"
-msgstr "Demandar de confirmar:"
-
-#: ../data/nautilus-pastebin-configurator.glade.h:2
-msgid "Open browser:"
-msgstr ""
-
-#: ../data/nautilus-pastebin-configurator.glade.h:3
-msgid "Pastebin:"
-msgstr "Pastebin:"
-
-#: ../data/nautilus-pastebin-configurator.glade.h:4
-msgid "Show a notification:"
-msgstr "Afichar una notificacion:"
-
-#: ../data/nautilus-pastebin-configurator.glade.h:5
-msgid "Nautilus Pastebin configuration panel"
-msgstr "Panèl de configuracion de Nautilus Pastebin"
-
-#~ msgid "Unable to send the file"
-#~ msgstr "Impossible de mandar lo fichièr"
diff -Nru nautilus-pastebin-0.5.0/po/POTFILES.in nautilus-pastebin-0.7.1/po/POTFILES.in
--- nautilus-pastebin-0.5.0/po/POTFILES.in 2010-06-17 13:39:25.000000000 +0000
+++ nautilus-pastebin-0.7.1/po/POTFILES.in 2012-02-01 09:23:33.000000000 +0000
@@ -1,5 +1,5 @@
nautilus-pastebin.py
nautilus-pastebin-configurator.py
-data/nautilus-pastebin-configurator.glade
+data/nautilus-pastebin-configurator.ui
data/nautilus-pastebin-configurator.desktop
-data/nautilus-pastebin.schemas
+data/nautilus-pastebin.gschema.xml
diff -Nru nautilus-pastebin-0.5.0/po/ro.po nautilus-pastebin-0.7.1/po/ro.po
--- nautilus-pastebin-0.5.0/po/ro.po 2010-06-18 13:28:56.000000000 +0000
+++ nautilus-pastebin-0.7.1/po/ro.po 1970-01-01 00:00:00.000000000 +0000
@@ -1,83 +0,0 @@
-# Romanian translation for nautilus-pastebin
-# Copyright (c) 2010 Rosetta Contributors and Canonical Ltd 2010
-# This file is distributed under the same license as the nautilus-pastebin package.
-# FIRST AUTHOR , 2010.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: nautilus-pastebin\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2010-06-18 15:15+0200\n"
-"PO-Revision-Date: 2010-06-01 09:32+0000\n"
-"Last-Translator: FULL NAME \n"
-"Language-Team: Romanian \n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2010-06-02 03:40+0000\n"
-"X-Generator: Launchpad (build Unknown)\n"
-
-#: ../nautilus-pastebin.py:150
-msgid ""
-"The file will be sent to the selected pastebin: are you sure to continue?"
-msgstr ""
-
-#: ../nautilus-pastebin.py:168
-msgid "Unable to read or parse the result page."
-msgstr ""
-
-#: ../nautilus-pastebin.py:169
-msgid "It could be a server timeout or a change server side. Try later."
-msgstr ""
-
-#: ../nautilus-pastebin.py:210
-#, python-format
-msgid "Pastebin to %s"
-msgstr ""
-
-#: ../nautilus-pastebin.py:211
-#, python-format
-msgid "Send this file to %s"
-msgstr ""
-
-#: ../nautilus-pastebin.py:224
-msgid "Wrong configuration"
-msgstr ""
-
-#: ../nautilus-pastebin.py:224
-msgid ""
-"The selected pastebin is not available, please check your configuration."
-msgstr ""
-
-#: ../nautilus-pastebin.py:233
-msgid "Unsupported MIME type"
-msgstr ""
-
-#: ../nautilus-pastebin.py:233
-msgid "The selected file cannot be pasted."
-msgstr ""
-
-#: ../nautilus-pastebin-configurator.py:77
-#, python-format
-msgid "Can't find %s in any known prefix!"
-msgstr ""
-
-#: ../data/nautilus-pastebin-configurator.glade.h:1
-msgid "Ask to confirm:"
-msgstr ""
-
-#: ../data/nautilus-pastebin-configurator.glade.h:2
-msgid "Open browser:"
-msgstr ""
-
-#: ../data/nautilus-pastebin-configurator.glade.h:3
-msgid "Pastebin:"
-msgstr ""
-
-#: ../data/nautilus-pastebin-configurator.glade.h:4
-msgid "Show a notification:"
-msgstr ""
-
-#: ../data/nautilus-pastebin-configurator.glade.h:5
-msgid "Nautilus Pastebin configuration panel"
-msgstr ""
diff -Nru nautilus-pastebin-0.5.0/po/ru.po nautilus-pastebin-0.7.1/po/ru.po
--- nautilus-pastebin-0.5.0/po/ru.po 2010-06-18 13:28:56.000000000 +0000
+++ nautilus-pastebin-0.7.1/po/ru.po 1970-01-01 00:00:00.000000000 +0000
@@ -1,88 +0,0 @@
-# Russian translation for nautilus-pastebin
-# Copyright (c) 2009 Rosetta Contributors and Canonical Ltd 2009
-# This file is distributed under the same license as the nautilus-pastebin package.
-# FIRST AUTHOR , 2009.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: nautilus-pastebin\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2010-06-18 15:15+0200\n"
-"PO-Revision-Date: 2010-03-03 05:54+0000\n"
-"Last-Translator: Alessio Treglia \n"
-"Language-Team: Russian \n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2010-03-04 05:05+0000\n"
-"X-Generator: Launchpad (build Unknown)\n"
-
-#: ../nautilus-pastebin.py:150
-msgid ""
-"The file will be sent to the selected pastebin: are you sure to continue?"
-msgstr "Файл будет послан в выбранное хранилище: продолжить?"
-
-#: ../nautilus-pastebin.py:168
-msgid "Unable to read or parse the result page."
-msgstr "Невозможно обработать страницу с результатами."
-
-#: ../nautilus-pastebin.py:169
-msgid "It could be a server timeout or a change server side. Try later."
-msgstr ""
-"Возможно причина в задержке от сервера или в изменениях на стороне сервера. "
-"Попробуйте позже."
-
-#: ../nautilus-pastebin.py:210
-#, fuzzy, python-format
-msgid "Pastebin to %s"
-msgstr "Pastebin"
-
-#: ../nautilus-pastebin.py:211
-#, fuzzy, python-format
-msgid "Send this file to %s"
-msgstr "Отправить файл в pastebin"
-
-#: ../nautilus-pastebin.py:224
-msgid "Wrong configuration"
-msgstr ""
-
-#: ../nautilus-pastebin.py:224
-msgid ""
-"The selected pastebin is not available, please check your configuration."
-msgstr ""
-
-#: ../nautilus-pastebin.py:233
-msgid "Unsupported MIME type"
-msgstr ""
-
-#: ../nautilus-pastebin.py:233
-msgid "The selected file cannot be pasted."
-msgstr "Выбранный файл не может быть загружен."
-
-#: ../nautilus-pastebin-configurator.py:77
-#, python-format
-msgid "Can't find %s in any known prefix!"
-msgstr "Не удается найти %s в любом известном префиксе!"
-
-#: ../data/nautilus-pastebin-configurator.glade.h:1
-msgid "Ask to confirm:"
-msgstr "Подтверждение"
-
-#: ../data/nautilus-pastebin-configurator.glade.h:2
-msgid "Open browser:"
-msgstr "Открыть браузер"
-
-#: ../data/nautilus-pastebin-configurator.glade.h:3
-msgid "Pastebin:"
-msgstr "Pastebin"
-
-#: ../data/nautilus-pastebin-configurator.glade.h:4
-msgid "Show a notification:"
-msgstr "Показать уведомление"
-
-#: ../data/nautilus-pastebin-configurator.glade.h:5
-msgid "Nautilus Pastebin configuration panel"
-msgstr "Nautilus Pastebin панель настроек"
-
-#~ msgid "Unable to send the file"
-#~ msgstr "Не удалось отправить файл"
diff -Nru nautilus-pastebin-0.5.0/po/sk.po nautilus-pastebin-0.7.1/po/sk.po
--- nautilus-pastebin-0.5.0/po/sk.po 2010-06-18 13:28:56.000000000 +0000
+++ nautilus-pastebin-0.7.1/po/sk.po 1970-01-01 00:00:00.000000000 +0000
@@ -1,86 +0,0 @@
-# Slovak translation for nautilus-pastebin
-# Copyright (c) 2010 Rosetta Contributors and Canonical Ltd 2010
-# This file is distributed under the same license as the nautilus-pastebin package.
-# FIRST AUTHOR , 2010.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: nautilus-pastebin\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2010-06-18 15:15+0200\n"
-"PO-Revision-Date: 2010-05-09 17:55+0000\n"
-"Last-Translator: FULL NAME \n"
-"Language-Team: Slovak \n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2010-05-20 05:46+0000\n"
-"X-Generator: Launchpad (build Unknown)\n"
-
-#: ../nautilus-pastebin.py:150
-msgid ""
-"The file will be sent to the selected pastebin: are you sure to continue?"
-msgstr ""
-
-#: ../nautilus-pastebin.py:168
-msgid "Unable to read or parse the result page."
-msgstr ""
-
-#: ../nautilus-pastebin.py:169
-msgid "It could be a server timeout or a change server side. Try later."
-msgstr ""
-
-#: ../nautilus-pastebin.py:210
-#, fuzzy, python-format
-msgid "Pastebin to %s"
-msgstr "Pastebin"
-
-#: ../nautilus-pastebin.py:211
-#, fuzzy, python-format
-msgid "Send this file to %s"
-msgstr "Poslať tento súbor do pastebin"
-
-#: ../nautilus-pastebin.py:224
-msgid "Wrong configuration"
-msgstr ""
-
-#: ../nautilus-pastebin.py:224
-msgid ""
-"The selected pastebin is not available, please check your configuration."
-msgstr ""
-
-#: ../nautilus-pastebin.py:233
-msgid "Unsupported MIME type"
-msgstr ""
-
-#: ../nautilus-pastebin.py:233
-msgid "The selected file cannot be pasted."
-msgstr ""
-
-#: ../nautilus-pastebin-configurator.py:77
-#, python-format
-msgid "Can't find %s in any known prefix!"
-msgstr ""
-
-#: ../data/nautilus-pastebin-configurator.glade.h:1
-msgid "Ask to confirm:"
-msgstr "Spýtať sa na potvrdenie:"
-
-#: ../data/nautilus-pastebin-configurator.glade.h:2
-msgid "Open browser:"
-msgstr "Otvoriť prehliadač:"
-
-#: ../data/nautilus-pastebin-configurator.glade.h:3
-msgid "Pastebin:"
-msgstr "Pastebin:"
-
-#: ../data/nautilus-pastebin-configurator.glade.h:4
-msgid "Show a notification:"
-msgstr "Zobraziť oznámenie:"
-
-#: ../data/nautilus-pastebin-configurator.glade.h:5
-msgid "Nautilus Pastebin configuration panel"
-msgstr "Konfiguračný panel Nautilus Pastebin"
-
-#~ msgid "Unable to send the file"
-#~ msgstr "Súbor sa nedá poslať"
diff -Nru nautilus-pastebin-0.5.0/po/tr.po nautilus-pastebin-0.7.1/po/tr.po
--- nautilus-pastebin-0.5.0/po/tr.po 2010-06-18 13:28:56.000000000 +0000
+++ nautilus-pastebin-0.7.1/po/tr.po 1970-01-01 00:00:00.000000000 +0000
@@ -1,88 +0,0 @@
-# Turkish translation for nautilus-pastebin
-# Copyright (c) 2010 Rosetta Contributors and Canonical Ltd 2010
-# This file is distributed under the same license as the nautilus-pastebin package.
-# FIRST AUTHOR , 2010.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: nautilus-pastebin\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2010-06-18 15:15+0200\n"
-"PO-Revision-Date: 2010-06-14 04:34+0000\n"
-"Last-Translator: newzath \n"
-"Language-Team: Turkish \n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2010-06-15 03:41+0000\n"
-"X-Generator: Launchpad (build Unknown)\n"
-
-#: ../nautilus-pastebin.py:150
-msgid ""
-"The file will be sent to the selected pastebin: are you sure to continue?"
-msgstr "Dosya seçilen uzak kutuya gönderilecek: devam ediyor musunuz?"
-
-#: ../nautilus-pastebin.py:168
-msgid "Unable to read or parse the result page."
-msgstr "Sonuç sayfası okunamıyor ya da ayrıştırılamıyor."
-
-#: ../nautilus-pastebin.py:169
-msgid "It could be a server timeout or a change server side. Try later."
-msgstr ""
-"Bu durum bir sunucunun zaman aşımından ya da sunucu tarfında bir "
-"değişikliğin yapılmakta olmasından oluşabilir. Daha sonra tekrar deneyin."
-
-#: ../nautilus-pastebin.py:210
-#, fuzzy, python-format
-msgid "Pastebin to %s"
-msgstr "Uzak Kutu"
-
-#: ../nautilus-pastebin.py:211
-#, fuzzy, python-format
-msgid "Send this file to %s"
-msgstr "Bu dosyayı uzak kutuya gönder"
-
-#: ../nautilus-pastebin.py:224
-msgid "Wrong configuration"
-msgstr ""
-
-#: ../nautilus-pastebin.py:224
-msgid ""
-"The selected pastebin is not available, please check your configuration."
-msgstr ""
-
-#: ../nautilus-pastebin.py:233
-msgid "Unsupported MIME type"
-msgstr ""
-
-#: ../nautilus-pastebin.py:233
-msgid "The selected file cannot be pasted."
-msgstr "Seçilen dosya yapıştırılamıyor."
-
-#: ../nautilus-pastebin-configurator.py:77
-#, python-format
-msgid "Can't find %s in any known prefix!"
-msgstr "%s tüm bilinen uzantılar içinde bulunamıyor!"
-
-#: ../data/nautilus-pastebin-configurator.glade.h:1
-msgid "Ask to confirm:"
-msgstr "Onay iste:"
-
-#: ../data/nautilus-pastebin-configurator.glade.h:2
-msgid "Open browser:"
-msgstr "Tarayıcı aç:"
-
-#: ../data/nautilus-pastebin-configurator.glade.h:3
-msgid "Pastebin:"
-msgstr "Uzak Kutu:"
-
-#: ../data/nautilus-pastebin-configurator.glade.h:4
-msgid "Show a notification:"
-msgstr "Bir bildirim göster:"
-
-#: ../data/nautilus-pastebin-configurator.glade.h:5
-msgid "Nautilus Pastebin configuration panel"
-msgstr "Nautilus Uzak Kutu yapılandırıcı paneli"
-
-#~ msgid "Unable to send the file"
-#~ msgstr "Dosya gönderilemedi"
diff -Nru nautilus-pastebin-0.5.0/po/zh_CN.po nautilus-pastebin-0.7.1/po/zh_CN.po
--- nautilus-pastebin-0.5.0/po/zh_CN.po 2010-06-18 13:28:56.000000000 +0000
+++ nautilus-pastebin-0.7.1/po/zh_CN.po 1970-01-01 00:00:00.000000000 +0000
@@ -1,86 +0,0 @@
-# Simplified Chinese translation for nautilus-pastebin
-# Copyright (c) 2009 Rosetta Contributors and Canonical Ltd 2009
-# This file is distributed under the same license as the nautilus-pastebin package.
-# FIRST AUTHOR , 2009.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: nautilus-pastebin\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2010-06-18 15:15+0200\n"
-"PO-Revision-Date: 2010-06-09 04:29+0000\n"
-"Last-Translator: Alessio Treglia \n"
-"Language-Team: Simplified Chinese \n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2010-06-10 03:46+0000\n"
-"X-Generator: Launchpad (build Unknown)\n"
-
-#: ../nautilus-pastebin.py:150
-msgid ""
-"The file will be sent to the selected pastebin: are you sure to continue?"
-msgstr "此文件将被发送至指定的 pastebin,确定继续吗?"
-
-#: ../nautilus-pastebin.py:168
-msgid "Unable to read or parse the result page."
-msgstr "无法读取或解析结果页。"
-
-#: ../nautilus-pastebin.py:169
-msgid "It could be a server timeout or a change server side. Try later."
-msgstr "可能是服务器超时或服务器调整,请稍后重试。"
-
-#: ../nautilus-pastebin.py:210
-#, fuzzy, python-format
-msgid "Pastebin to %s"
-msgstr "Pastebin"
-
-#: ../nautilus-pastebin.py:211
-#, fuzzy, python-format
-msgid "Send this file to %s"
-msgstr "将此文件发送到 pastebin"
-
-#: ../nautilus-pastebin.py:224
-msgid "Wrong configuration"
-msgstr ""
-
-#: ../nautilus-pastebin.py:224
-msgid ""
-"The selected pastebin is not available, please check your configuration."
-msgstr ""
-
-#: ../nautilus-pastebin.py:233
-msgid "Unsupported MIME type"
-msgstr ""
-
-#: ../nautilus-pastebin.py:233
-msgid "The selected file cannot be pasted."
-msgstr "无法粘贴选定的文件。"
-
-#: ../nautilus-pastebin-configurator.py:77
-#, python-format
-msgid "Can't find %s in any known prefix!"
-msgstr "在已知前缀中无法找到 %s !"
-
-#: ../data/nautilus-pastebin-configurator.glade.h:1
-msgid "Ask to confirm:"
-msgstr "询问以确认:"
-
-#: ../data/nautilus-pastebin-configurator.glade.h:2
-msgid "Open browser:"
-msgstr "打开浏览器:"
-
-#: ../data/nautilus-pastebin-configurator.glade.h:3
-msgid "Pastebin:"
-msgstr "Pastebin:"
-
-#: ../data/nautilus-pastebin-configurator.glade.h:4
-msgid "Show a notification:"
-msgstr "显示通知:"
-
-#: ../data/nautilus-pastebin-configurator.glade.h:5
-msgid "Nautilus Pastebin configuration panel"
-msgstr "Nautilus Pastebin 配置面板"
-
-#~ msgid "Unable to send the file"
-#~ msgstr "无法发送文件"
diff -Nru nautilus-pastebin-0.5.0/setup.py nautilus-pastebin-0.7.1/setup.py
--- nautilus-pastebin-0.5.0/setup.py 2010-06-17 13:35:17.000000000 +0000
+++ nautilus-pastebin-0.7.1/setup.py 2012-02-01 19:25:16.000000000 +0000
@@ -24,26 +24,18 @@
from distutils.core import setup
from DistUtilsExtra.command import *
-def get_presets():
- path = 'data/presets'
- dot_conf_files = filter(lambda x: x.endswith('.conf'), os.listdir(path))
- return map(
- lambda x: os.path.join(path,x),
- dot_conf_files
- )
-
def get_app_path_files():
return [
+ 'data/nautilus-pastebin.png',
'data/nautilus-pastebin-notification',
- 'data/nautilus-pastebin-configurator.glade'
+ 'data/nautilus-pastebin-configurator.ui'
]
pkg_data_files = [
- ('share/pixmaps/', ['data/nautilus-pastebin.png']),
+ ('share/pixmaps/', ['data/nautilus-pastebin.svg']),
('share/applications/', ['data/nautilus-pastebin-configurator.desktop']),
- ('share/gconf/schemas/', ['data/nautilus-pastebin.schemas']),
+ ('share/glib-2.0/schemas/', ['data/nautilus-pastebin.gschema.xml']),
('share/nautilus-pastebin/', get_app_path_files()),
- ('share/nautilus-pastebin/presets/', get_presets())
]
pkg_scripts = [
@@ -56,7 +48,7 @@
pkg_long_dsc = """nautilus-pastebin is a Nautilus extension written in Python, which allows users to upload text-only files to a pastebin service just by right-clicking on them. Users can also add their favorite service just by creatine new presets."""
setup(name='nautilus-pastebin',
- version='0.5.0',
+ version='0.7.1',
platforms=['all'],
author='Alessio Treglia',
author_email='quadrispro@ubuntu.com',
@@ -64,7 +56,6 @@
url='https://launchpad.net/nautilus-pastebin',
description=pkg_short_dsc,
long_description=pkg_long_dsc,
- packages=['pastebin'],
data_files=pkg_data_files,
scripts=pkg_scripts,
cmdclass = { "build" : build_extra.build_extra,