no top-posting please, jeffrey - thanks.

On Tue, Jan 24, 2012 at 11:47 PM, Jeffrey Van Voorst
<[email protected]> wrote:
> I can cleanup the php gunk + mod_python if there is a place to put it…  In
> other words from where should the gunk used by the jsonrpc examples be
> hosted?  I don't have a site for them; may/should they be hosted from a
> separate git repo on pyjs--that need not be updated much.

 no, what you do is google the code's name then put in a link to
download it from there, unpack it into exactly the same place.

 look at that employeeadmin/download.sh script, copy it precisely: it
checks for the existence of the subdirectory, which is *not* included
in the pyjamas codebase.  PureMVC_Python_1_2.

 ok this is here:

lkcl@teenymac:~/pyjamas/examples/jsonrpc/public/services$ ls
EchoService.php  EchoService.py  jsonrpc  phpolait  simplejson
lkcl@teenymac:~/pyjamas/examples/jsonrpc/public/services$

so, phpolait has to go.  google "phpolait" ah ha!
https://sourceforge.net/projects/phpolait/

lkcl@teenymac:~/pyjamas/examples$ find . -name "phpolait"
./dynamictable/output/phpolait
./dynamictable/public/phpolait
./jsonrpc/output/services/phpolait
./jsonrpc/public/services/phpolait
./misc/flaskexamples/flaskcors/public/services/phpolait
./misc/flaskexamples/flaskcelery/public/services/phpolait
lkcl@teenymac:~/pyjamas/examples$

 see what i mean?  _three_ times it's been cut/paste copied, now, and
we're not even the maintainers of that project.

 ...  i accidentally added fckeditor to pyjamas 18 months ago, oops,
that was bad.... :)


 i think also that simplejson thing can go now - the usual trick is to do this:
 try:
    import simplejson as json
 except ImportError:
    import json

 there's a couple of others...

lkcl@teenymac:~/pyjamas$ find . -name "*.py" | xargs grep -2 simplejson
....
....
./library/gwt/JSONService.py-    try:
./library/gwt/JSONService.py-        # recommended library (python 2.5)
./library/gwt/JSONService.py:        from simplejson import dumps, loads
./library/gwt/JSONService.py-    except ImportError:
./library/gwt/JSONService.py-        # who's the pyjs daddy?

:)

l.

lkcl@teenymac:~/pyjamas$ find . -name "*.py" | xargs grep -l simplejson
./pyjs/jsonrpc/django/jsonformprocessor.py
./pyjs/jsonrpc/__init__.py
./build/lib.linux-x86_64-2.6/pyjs/jsonrpc/django/jsonformprocessor.py
./build/lib.linux-x86_64-2.6/pyjs/jsonrpc/__init__.py
./examples/jsonrpc/output/services/jsonrpc/__init__.py
./examples/jsonrpc/output/services/simplejson/jsonfilter.py
./examples/jsonrpc/output/services/simplejson/decoder.py
./examples/jsonrpc/output/services/simplejson/__init__.py
./examples/jsonrpc/public/services/jsonrpc/__init__.py
./examples/jsonrpc/public/services/simplejson/jsonfilter.py
./examples/jsonrpc/public/services/simplejson/decoder.py
./examples/jsonrpc/public/services/simplejson/__init__.py
./examples/misc/simplewiki/JsonHandler.py
./examples/misc/djangowanted/wanted/jsonrpc.py
./examples/misc/djangoweb/webpages/jsonrpc.py
./examples/misc/gaedjangononrelpuremvcblog/post/jsonrpc.py
./examples/misc/flaskexamples/flaskcors/public/services/jsonrpc/__init__.py
./examples/misc/flaskexamples/flaskcors/public/services/simplejson/jsonfilter.py
./examples/misc/flaskexamples/flaskcors/public/services/simplejson/decoder.py
./examples/misc/flaskexamples/flaskcors/public/services/simplejson/__init__.py
./examples/misc/flaskexamples/flaskcors/flask_source/requests.py
./examples/misc/flaskexamples/flaskcelery/public/services/jsonrpc/__init__.py
./examples/misc/flaskexamples/flaskcelery/public/services/simplejson/jsonfilter.py
./examples/misc/flaskexamples/flaskcelery/public/services/simplejson/decoder.py
./examples/misc/flaskexamples/flaskcelery/public/services/simplejson/__init__.py
./examples/misc/flaskexamples/flaskcelery/flask_source/requests.py
./examples/infohierarchy/output/services/jsonrpc/__init__.py
./examples/infohierarchy/public/services/jsonrpc/__init__.py
./library/gwt/JSONService.py

Reply via email to