Bug 865972 - [RFE] Add configuration file to fpaste to permit usage of any sticky-notes server
Summary: [RFE] Add configuration file to fpaste to permit usage of any sticky-notes se...
Alias: None
Product: Fedora
Classification: Fedora
Component: fpaste
Version: rawhide
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Ankur Sinha (FranciscoD)
QA Contact: Fedora Extras Quality Assurance
Keywords: EasyFix
Depends On:
TreeView+ depends on / blocked
Reported: 2012-10-13 00:14 UTC by Ankur Sinha (FranciscoD)
Modified: 2013-04-28 03:48 UTC (History)
2 users (show)

See Also:
Clone Of:
Last Closed: 2013-04-26 01:04:32 UTC

Attachments (Terms of Use)
Patch: adds an option for URL (2.25 KB, patch)
2013-04-14 03:37 UTC, Ankur Sinha (FranciscoD)
no flags Details | Diff

External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Bugzilla 865971 None None None Never

Internal Trackers: 865971

Description Ankur Sinha (FranciscoD) 2012-10-13 00:14:43 UTC
It would be good to make fpaste read a configuration file that would let users point it to their own sticky notes instances if required. The fedora default will be to point it to our sticky notes instance.

Comment 1 Ankur Sinha (FranciscoD) 2012-10-18 23:21:38 UTC
Filed upstream. 


Keeping ticket open to track progress. 


Comment 2 Ankur Sinha (FranciscoD) 2013-04-14 03:37:13 UTC
Created attachment 735521 [details]
Patch: adds an option for URL

I've written a patch that adds an option that enables the user to use another fpaste server. I haven't gotten down to including a configuration file yet.

[ankur@localhost  fpaste- %=)]$ python fpaste
Uploading (0.1KiB)...
[ankur@localhost  fpaste- %=)]$ python fpaste -U http://paste.stg.fedoraproject.org/  #trailingSlashIsImportant
Uploading (0.1KiB)...
[ankur@localhost  fpaste- %=)]$ python fpaste -h
Usage: fpaste [OPTION]... [FILE]...
  send text file(s), stdin, or clipboard to the http://paste.fedoraproject.org/ pastebin and return the URL.

  fpaste file1.txt file2.txt
  dmesg | fpaste
  (prog1; prog2; prog3) | fpaste
  fpaste --sysinfo -d "my laptop" --confirm
  fpaste -n codemonkey -d "problem with foo" -l python foo.py

  --version             show program's version number and exit
  -h, --help            show this help message and exit

  fpaste.org Options:
    -n "NICKNAME"       your nickname; default is ""
    -d "DESCRIPTION"    description of paste; default appends filename(s)
    -l "LANGUAGE"       language of content for syntax highlighting; default
                        is "text"; use "list" to show all 160 supported langs
    -x EXPIRES          time before paste is removed; default is 86400
                        seconds; valid options: 3600, 10800, 43200, 86400
    -P "PRIVATE", --private="PRIVATE"
                        make paste private; default is no; valid options: yes,
                        URL of fpaste server; default is

  Input/Output Options:
    -i, --clipin        read paste text from current X clipboard selection
                        [requires: xsel]
    -o, --clipout       save returned paste URL to X clipboard
    --selection=CLIP    specify which X clipboard to use. valid options:
                        "primary" (default; middle-mouse-button paste),
                        "secondary" (uncommon), or "clipboard" (ctrl-v paste)
    --fullpath          use pathname VS basename for file description(s)
    --pasteself         paste this script itself
    --sysinfo           paste system information
    --printonly         print paste, but do not send
    --confirm           print paste, and prompt for confirmation before
[ankur@localhost  fpaste- %=)]$

I'll post the patch upstream.


Comment 3 Fedora Update System 2013-04-17 13:57:46 UTC
fpaste- has been submitted as an update for Fedora 18.

Comment 4 Fedora Update System 2013-04-17 13:58:11 UTC
fpaste- has been submitted as an update for Fedora 19.

Comment 5 Fedora Update System 2013-04-18 02:33:37 UTC
Package fpaste-
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing fpaste-'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2013-04-26 01:04:34 UTC
fpaste- has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 7 Fedora Update System 2013-04-28 03:48:11 UTC
fpaste- has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.

Note You need to log in before you can comment on or make changes to this bug.