Permalink
Switch branches/tags
Nothing to show
Commits on Sep 22, 2015
  1. Merge pull request #846 from spaceone/patch-1

    keesbos committed Sep 22, 2015
    Fix remote code execution vulnerability
Commits on Sep 18, 2015
  1. Fix remote code execution vulnerability

    spaceone committed Sep 18, 2015
    SmartCookie as well as SerialCookie are vulnerable to code injection in python2.
    For example, the following cookie header would shutdown your server:
    Set-Cookie: foo="cposix\012_exit\012p1\012(I1\012tp2\012Rp3\012."
Commits on Jun 14, 2015
  1. Merge pull request #836 from WesTyler/patch-1

    eukreign committed Jun 14, 2015
    Update README.rst for mistakes and clarifications.
  2. Update README.rst for mistakes and clarifications.

    WesTyler committed Jun 14, 2015
    typo: libraris -> libraries
    
    Update phrasing for consistency in sentence formats and style. Help new users get to the root of what the libraries can accomplish.
Commits on Jun 20, 2014
  1. Delete DEVELOPER.RULES

    anthonyrisinger committed Jun 20, 2014
    outdated... and preachy
  2. Merge pull request #827 from DavidRagazzi/patch-3

    anthonyrisinger committed Jun 20, 2014
    Delete INSTALL.txt
  3. Merge pull request #828 from DavidRagazzi/patch-4

    anthonyrisinger committed Jun 20, 2014
    README simplified
Commits on Jun 17, 2014
  1. README simplified

    david-ragazzi committed Jun 17, 2014
  2. Delete INSTALL.txt

    david-ragazzi committed Jun 17, 2014
Commits on May 29, 2014
  1. Merge pull request #823 from janjaapbos/master

    anthonyrisinger committed May 29, 2014
    Minor fix and added dependency on six
Commits on May 28, 2014
  1. Fix for JSONTranslations empty keyword

    janjaapbos committed May 28, 2014
    Cannot localize zero space.
  2. Fix for IE 11 (Focus)

    janjaapbos committed May 28, 2014
    IE presents itself as mozilla, so it trips on the bug.
  3. Chrome workaround for Maximum call stack size exceeded

    janjaapbos committed May 28, 2014
    Removed the "debugger" statement workaround, as it impacts working
    with Chrome in developer mode.
    
    A simple statement appears to do the job.
    
    Remove do/while statement and get 'Maximum call stack size exceeded'
           do { return new $int(value, radix); } while (0);
  4. Minor fix and added dependency on six

    janjaapbos committed May 28, 2014
    Fixes to make it work on python2.7 again.
    Dependency for package six.
Commits on Apr 5, 2014
  1. Merge pull request #820 from atupal/patch-1

    eukreign committed Apr 5, 2014
    typo: "java script" -> "javascript"
  2. Merge pull request #819 from duly/master

    eukreign committed Apr 5, 2014
    `pip install pyjs`
Commits on Mar 20, 2014
Commits on Mar 19, 2014
  1. NameError: name 'StandardError' is not defined

    duly committed Mar 19, 2014
    "Replaced reference to StandardError with reference to Exception." -- http://bugs.python.org/issue13859
    ```
      File "\pyjs\pyjs\translator_proto.py", line 37, in <module>
        import pycompiler as compiler
      File "\pyjs\pyjs\lib_trans\pycompiler\__init__.py", line 24, in <module>
        from pycompiler.transformer import parse, parseFile
      File "\pyjs\pyjs\lib_trans\pycompiler\transformer.py", line 37, in <module>
        class WalkerError(StandardError):
    NameError: name 'StandardError' is not defined
    ```
  2. globals returns a dict not a list

    duly committed Mar 19, 2014
    globals() -- Return a dictionary representing the current global symbol table.
    
    ````
      File "c:\users\jose.torres\src\pyjs\pyjs\lib_trans\pysymbol.py", line 99, in <module>
        for _name, _value in six.iterlists(values) :
      File "C:\Users\Jose.Torres\appdata\local\scoop\apps\python\3.3.2\lib\site-packages\six.py", line 502, in iterlists
        return iter(getattr(d, _iterlists)(**kw))
    AttributeError: 'list' object has no attribute 'lists'
    ```
  3. 'list' object has no attribute 'items'

    duly committed Mar 19, 2014
    ```
      File "\pyjs\pyjs\lib_trans\pysymbol.py", line 99, in <module>
        for _name, _value in six.iteritems(values) :
      File "\python\3.3.2\lib\site-packages\six.py", line 498, in iteritems
        return iter(getattr(d, _iteritems)(**kw))
    AttributeError: 'list' object has no attribute 'items'
    ```
  4. Update pysymbol.py

    duly committed Mar 19, 2014
    ```
    RuntimeError: dictionary changed size during iteration
    ```
    http://stackoverflow.com/a/11941982
  5. import six.iteritems

    duly committed Mar 19, 2014
    Returns an iterator over dictionary‘s items. This replaces dictionary.iteritems() on Python 2 and dictionary.items() on Python 3. kwargs are passed through to the underlying method.
    ```
      File "\pyjs\pyjs\lib_trans\pysymbol.py", line 97
        for _name, _value in globals().items() if _name:
                                                       ^
    SyntaxError: invalid syntax
    ```
  6. Testing dictionary comprehension

    duly committed Mar 19, 2014
    http://stackoverflow.com/a/11941913
    ```
      File "\pyjs\pyjs\lib_trans\pysymbol.py", line 97, in <module>
        for _name, _value in globals().items():
    RuntimeError: dictionary changed size during iteration
    ```
    If this doesn't work consider six.iteritems()
  7. six.iteritems for python 2to3

    duly committed Mar 19, 2014
    """
    
    six.iteritems(dictionary, **kwargs)
    
        Returns an iterator over dictionary‘s items. This replaces dictionary.iteritems() on Python 2 and dictionary.items() on Python 3. kwargs are passed through to the underlying method.
    """
    ```
      File "\pyjs\pyjs\options.py", line 78, in __init__
        for n, g in Groups.__dict__.iteritems():
    AttributeError: 'mappingproxy' object has no attribute 'iteritems'
    ```
  8. import six for python 2to3

    duly committed Mar 19, 2014
    ```
      File "\pyjs\pyjs\options.py", line 64, in Mappings
        if six.PY2:
    NameError: name 'six' is not defined
    ```
  9. SyntaxError else without :

    duly committed Mar 19, 2014
    Better code reviews.
    ```  File "\pyjs\pyjs\options.py", line 72
        else
           ^
    SyntaxError: invalid syntax```
  10. Invalid Syntax elseif --> elif

    duly committed Mar 19, 2014
    ```  File "\pyjs\pyjs\options.py", line 68
        elseif six.PY3:
                 ^
    SyntaxError: invalid syntax```
  11. NameError: name 'long' is not defined

    duly committed Mar 19, 2014
    "Use int instead of long "
    http://stackoverflow.com/a/14904834
    six.PY2 for python 2 and six.PY3 for python 3 version detection
    ```
      File "c:\users\jose.torres\src\pyjs\pyjs\options.py", line 64, in Mappings
        _opt_types = {str: 'string', int: 'int', long: 'long',
    NameError: name 'long' is not defined
    ```
  12. add pyjs.

    duly committed Mar 19, 2014
    ```  File "\pyjs\pyjs\translator_proto.py", line 28, in <module>
        from options import (all_compile_options, add_compile_options,
    ImportError: No module named 'options'
    ```
  13. use six.moves for cStringIO

    duly committed Mar 19, 2014
    ```
      File "\pyjs\translator_proto.py", line 20, in <module>
        from cStringIO import StringIO
    ImportError: No module named 'cStringIO'
    ```
    http://pythonhosted.org/six/
  14. Update java2py.py

    duly committed Mar 19, 2014
    ```
    Traceback (most recent call last):
      File "\python\3.3.2\scripts\java2py-script.py", line 9, in <module>
        load_entry_point('pyjs==0.8.2', 'console_scripts', 'java2py')()
      File "\python\3.3.2\lib\site-packages\setuptools-1.4.1-py3.3.egg\pkg_resources.py",
     line 357, in load_entry_point
      File "\python\3.3.2\lib\site-packages\setuptools-1.4.1-py3.3.egg\pkg_resources.py",
     line 2394, in load_entry_point
      File "\python\3.3.2\lib\site-packages\setuptools-1.4.1-py3.3.egg\pkg_resources.py",
     line 2108, in load
      File "\pyjs\pyjs\contrib\java2py.py", line 168
        print txt
                ^
    SyntaxError: invalid syntax
    ```
  15. Add parentheses to java2py.py

    duly committed Mar 19, 2014
    ```
    Traceback (most recent call last):
      File "\python\3.3.2\scripts\java2py-script.py", line 9, in <module>
        load_entry_point('pyjs==0.8.2', 'console_scripts', 'java2py')()
      File "\python\3.3.2\lib\site-packages\setuptools-1.4.1-py3.3.egg\pkg_resources.py",
     line 357, in load_entry_point
      File "\python\3.3.2\lib\site-packages\setuptools-1.4.1-py3.3.egg\pkg_resources.py",
     line 2394, in load_entry_point
      File "\python\3.3.2\lib\site-packages\setuptools-1.4.1-py3.3.egg\pkg_resources.py",
     line 2108, in load
      File "\pyjs\pyjs\contrib\java2py.py", line 156
        print txt, pre
                ^
    SyntaxError: invalid syntax
    ```