Git Product home page Git Product logo

debianpaste-clients's People

Contributors

bvanrijn avatar gebi avatar

Watchers

 avatar  avatar

debianpaste-clients's Issues

Issue template

What steps will reproduce the problem?
(1) Include the steps to reproduce the problem here

What is the expected output?
What would you expect to happen?

What do you see instead?
What happened instead?

Error:
Enter the error message you received here, if applicable.

Traceback:
Enter the Traceback here, if applicable.

See #2 for an example (which is actually a bug)

`add` without pipe hangs forever

What steps will reproduce the problem?
(1) Type python3 paste.py add without arguments

What is the expected output?
That paste does something instead of waiting forever for standard input

What do you see instead?
It seems like paste hangs while it waits for standard input

Error:
No error. But after stopping paste with ^C:

KeyboardInterrupt

Traceback:

Traceback (most recent call last):
  File "paste.py", line 230, in <module>
    (msg, ret) = action.call(actions[cmd])
  File "paste.py", line 56, in call
    return self.__getattribute__(method_name)()
  File "paste.py", line 69, in actionAddPaste
    code = [ i.rstrip() for i in sys.stdin.readlines() ]
KeyboardInterrupt

A possible way to fix this issue would be to check if a pipe is being used, and if not, use a simple text editor like vi or nano.

`IndexError: pop from empty list` when calling some functions without arguments

What steps will reproduce the problem?
(1) Call python3 paste.py geturl without any arguments

What is the expected output?
Receive a friendly error, because no URL is given

What do you see instead?
An error message IndexError: pop from empty list.

Error:
IndexError: pop from empty list

Traceback:

Traceback (most recent call last):
  File "paste.py", line 201, in <module>
    (msg, ret) = action.call(actions[cmd])
  File "paste.py", line 49, in call
    return self.__getattribute__(method_name)()
  File "paste.py", line 111, in actionGetShortUrl
    url = self.args_.pop(0)
IndexError: pop from empty list

GPLv2

  • Add GPLv2 license text to a file
  • Read a summary and the full license
  • Make sure this project complies with all the rules set forth in this license.

TODO

Note: This obsoletes the TODO file. Any new TODOs must be written here as comments.

  • paste web-view url into x-buffer
  • automatic file detection from file extension
  • paste file without cat
  • 'add' per default without explicitly specifying

Format getlangs

What steps will reproduce the problem?
(1) run python paste.py getlangs

What is the expected output?
Languages ordered in 2 or 3 columns

What do you see instead?
A long list of languages

Error:
N/A

Traceback:
N/A

When `help` is called without arguments, a useless `alias:` field shows up

What steps will reproduce the problem?
(1) python3 paste.py help

What is the expected output?
When help is called without arguments, a useless alias: field shows up, that, with other commands, contains the aliases of the command. This is not required for the help command (as it does not have any alias), but could be prevented.

What do you see instead?
This is a cosmetic issue and does not affect the functioning of the program in any way, but when help is called without arguments, a useless alias: field shows up, that, with other commands, contains the aliases of the command.

Error:
N/A

Traceback:
N/A

The easiest fix is to add an alias to the help command, such as h.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.