├── GamezServer.Python.pyproj
├── GamezServer.Python.pyproj.user
├── GamezServer.Python.sln
├── GamezServer.db
├── GamezServer.ini
├── GamezServer.py
├── GamezServer
├── Constants.py
├── DAO.py
├── DAO.pyc
├── Searchers.py
├── Searchers.pyc
├── Service.py
├── Service.pyc
├── Task.py
├── Task.pyc
├── UsenetCrawler.py
├── UsenetCrawler.pyc
├── WebServe.py
├── WebServe.pyc
├── __init__.py
├── __init__.pyc
├── __pycache__
│ ├── DAO.cpython-34.pyc
│ ├── Searchers.cpython-34.pyc
│ ├── Service.cpython-34.pyc
│ ├── Task.cpython-34.pyc
│ ├── UsenetCrawler.cpython-34.pyc
│ ├── WebServe.cpython-34.pyc
│ └── __init__.cpython-34.pyc
└── static-web
│ ├── scripts
│ ├── Menu.js
│ ├── ajax-mocks.js
│ ├── chosen.jquery.js
│ ├── dataTables.jqueryui.js
│ ├── dataTables.tableTools.js
│ ├── jquery-ui.js
│ ├── jquery.cascadingdropdown.js
│ ├── jquery.dataTables.js
│ ├── jquery.js
│ ├── jquery.mockjax.js
│ └── toastr.js
│ └── styles
│ ├── Menu.css
│ ├── chosen.css
│ ├── dataTables.jqueryui.css
│ ├── dataTables.tableTools.css
│ ├── images
│ ├── Sorting icons.psd
│ ├── favicon.ico
│ ├── sort_asc.png
│ ├── sort_asc_disabled.png
│ ├── sort_both.png
│ ├── sort_desc.png
│ ├── sort_desc_disabled.png
│ ├── ui-bg_diagonals-small_25_c5ddfc_40x40.png
│ ├── ui-bg_diagonals-thick_20_e69700_40x40.png
│ ├── ui-bg_diagonals-thick_22_1484e6_40x40.png
│ ├── ui-bg_diagonals-thick_26_2293f7_40x40.png
│ ├── ui-bg_flat_0_e69700_40x100.png
│ ├── ui-bg_flat_0_e6b900_40x100.png
│ ├── ui-bg_highlight-soft_100_f9f9f9_1x100.png
│ ├── ui-bg_inset-hard_100_eeeeee_1x100.png
│ ├── ui-icons_0a82eb_256x240.png
│ ├── ui-icons_0b54d5_256x240.png
│ ├── ui-icons_5fa5e3_256x240.png
│ ├── ui-icons_fcdd4a_256x240.png
│ └── ui-icons_ffffff_256x240.png
│ ├── jquery-ui.css
│ ├── jquery-ui.structure.css
│ ├── jquery-ui.theme.css
│ ├── jquery.dataTables.css
│ ├── jquery.dataTables_themeroller.css
│ └── toastr.css
├── Logs
├── IntelGFX.log
└── IntelGFXCoin.log
├── OpenSSL
├── RATIONALE
├── __init__.py
├── crypto
│ ├── crl.c
│ ├── crl.h
│ ├── crypto.c
│ ├── crypto.h
│ ├── netscape_spki.c
│ ├── netscape_spki.h
│ ├── pkcs12.c
│ ├── pkcs12.h
│ ├── pkcs7.c
│ ├── pkcs7.h
│ ├── pkey.c
│ ├── pkey.h
│ ├── revoked.c
│ ├── revoked.h
│ ├── x509.c
│ ├── x509.h
│ ├── x509ext.c
│ ├── x509ext.h
│ ├── x509name.c
│ ├── x509name.h
│ ├── x509req.c
│ ├── x509req.h
│ ├── x509store.c
│ └── x509store.h
├── py3k.h
├── pymemcompat.h
├── rand
│ └── rand.c
├── ssl
│ ├── connection.c
│ ├── connection.h
│ ├── context.c
│ ├── context.h
│ ├── ssl.c
│ └── ssl.h
├── test
│ ├── __init__.py
│ ├── test_crypto.py
│ ├── test_rand.py
│ ├── test_ssl.py
│ └── util.py
├── tsafe.py
├── util.c
├── util.h
└── version.py
├── README.md
├── cherrypy
├── LICENSE.txt
├── __init__.py
├── __init__.pyc
├── __pycache__
│ ├── __init__.cpython-34.pyc
│ ├── _cpchecker.cpython-34.pyc
│ ├── _cpcompat.cpython-34.pyc
│ ├── _cpconfig.cpython-34.pyc
│ ├── _cpdispatch.cpython-34.pyc
│ ├── _cperror.cpython-34.pyc
│ ├── _cplogging.cpython-34.pyc
│ ├── _cpreqbody.cpython-34.pyc
│ ├── _cprequest.cpython-34.pyc
│ ├── _cpserver.cpython-34.pyc
│ ├── _cptools.cpython-34.pyc
│ ├── _cptree.cpython-34.pyc
│ ├── _cpwsgi.cpython-34.pyc
│ └── _cpwsgi_server.cpython-34.pyc
├── _cpchecker.py
├── _cpchecker.pyc
├── _cpcompat.py
├── _cpcompat.pyc
├── _cpcompat_subprocess.py
├── _cpconfig.py
├── _cpconfig.pyc
├── _cpdispatch.py
├── _cpdispatch.pyc
├── _cperror.py
├── _cperror.pyc
├── _cplogging.py
├── _cplogging.pyc
├── _cpmodpy.py
├── _cpnative_server.py
├── _cpreqbody.py
├── _cpreqbody.pyc
├── _cprequest.py
├── _cprequest.pyc
├── _cpserver.py
├── _cpserver.pyc
├── _cpthreadinglocal.py
├── _cptools.py
├── _cptools.pyc
├── _cptree.py
├── _cptree.pyc
├── _cpwsgi.py
├── _cpwsgi.pyc
├── _cpwsgi_server.py
├── _cpwsgi_server.pyc
├── cherryd
├── favicon.ico
├── lib
│ ├── __init__.py
│ ├── __init__.pyc
│ ├── __pycache__
│ │ ├── __init__.cpython-34.pyc
│ │ ├── auth.cpython-34.pyc
│ │ ├── auth_basic.cpython-34.pyc
│ │ ├── auth_digest.cpython-34.pyc
│ │ ├── caching.cpython-34.pyc
│ │ ├── cptools.cpython-34.pyc
│ │ ├── encoding.cpython-34.pyc
│ │ ├── httpauth.cpython-34.pyc
│ │ ├── httputil.cpython-34.pyc
│ │ ├── jsontools.cpython-34.pyc
│ │ ├── lockfile.cpython-34.pyc
│ │ ├── locking.cpython-34.pyc
│ │ ├── reprconf.cpython-34.pyc
│ │ ├── sessions.cpython-34.pyc
│ │ ├── static.cpython-34.pyc
│ │ └── xmlrpcutil.cpython-34.pyc
│ ├── auth.py
│ ├── auth.pyc
│ ├── auth_basic.py
│ ├── auth_basic.pyc
│ ├── auth_digest.py
│ ├── auth_digest.pyc
│ ├── caching.py
│ ├── caching.pyc
│ ├── covercp.py
│ ├── cpstats.py
│ ├── cptools.py
│ ├── cptools.pyc
│ ├── encoding.py
│ ├── encoding.pyc
│ ├── gctools.py
│ ├── http.py
│ ├── httpauth.py
│ ├── httpauth.pyc
│ ├── httputil.py
│ ├── httputil.pyc
│ ├── jsontools.py
│ ├── jsontools.pyc
│ ├── lockfile.py
│ ├── lockfile.pyc
│ ├── locking.py
│ ├── locking.pyc
│ ├── profiler.py
│ ├── reprconf.py
│ ├── reprconf.pyc
│ ├── sessions.py
│ ├── sessions.pyc
│ ├── static.py
│ ├── static.pyc
│ ├── xmlrpcutil.py
│ └── xmlrpcutil.pyc
├── process
│ ├── __init__.py
│ ├── __init__.pyc
│ ├── __pycache__
│ │ ├── __init__.cpython-34.pyc
│ │ ├── plugins.cpython-34.pyc
│ │ ├── servers.cpython-34.pyc
│ │ ├── win32.cpython-34.pyc
│ │ └── wspbus.cpython-34.pyc
│ ├── plugins.py
│ ├── plugins.pyc
│ ├── servers.py
│ ├── servers.pyc
│ ├── win32.py
│ ├── win32.pyc
│ ├── wspbus.py
│ └── wspbus.pyc
├── scaffold
│ ├── __init__.py
│ ├── apache-fcgi.conf
│ ├── example.conf
│ ├── site.conf
│ └── static
│ │ └── made_with_cherrypy_small.png
├── test
│ ├── __init__.py
│ ├── _test_decorators.py
│ ├── _test_states_demo.py
│ ├── benchmark.py
│ ├── checkerdemo.py
│ ├── helper.py
│ ├── logtest.py
│ ├── modfastcgi.py
│ ├── modfcgid.py
│ ├── modpy.py
│ ├── modwsgi.py
│ ├── sessiondemo.py
│ ├── static
│ │ ├── 404.html
│ │ ├── dirback.jpg
│ │ └── index.html
│ ├── style.css
│ ├── test.pem
│ ├── test_auth_basic.py
│ ├── test_auth_digest.py
│ ├── test_bus.py
│ ├── test_caching.py
│ ├── test_compat.py
│ ├── test_config.py
│ ├── test_config_server.py
│ ├── test_conn.py
│ ├── test_core.py
│ ├── test_dynamicobjectmapping.py
│ ├── test_encoding.py
│ ├── test_etags.py
│ ├── test_http.py
│ ├── test_httpauth.py
│ ├── test_httplib.py
│ ├── test_iterator.py
│ ├── test_json.py
│ ├── test_logging.py
│ ├── test_mime.py
│ ├── test_misc_tools.py
│ ├── test_objectmapping.py
│ ├── test_proxy.py
│ ├── test_refleaks.py
│ ├── test_request_obj.py
│ ├── test_routes.py
│ ├── test_session.py
│ ├── test_sessionauthenticate.py
│ ├── test_states.py
│ ├── test_static.py
│ ├── test_tools.py
│ ├── test_tutorials.py
│ ├── test_virtualhost.py
│ ├── test_wsgi_ns.py
│ ├── test_wsgi_vhost.py
│ ├── test_wsgiapps.py
│ ├── test_xmlrpc.py
│ └── webtest.py
├── tutorial
│ ├── README.txt
│ ├── __init__.py
│ ├── custom_error.html
│ ├── pdf_file.pdf
│ ├── tut01_helloworld.py
│ ├── tut02_expose_methods.py
│ ├── tut03_get_and_post.py
│ ├── tut04_complex_site.py
│ ├── tut05_derived_objects.py
│ ├── tut06_default_method.py
│ ├── tut07_sessions.py
│ ├── tut08_generators_and_yield.py
│ ├── tut09_files.py
│ ├── tut10_http_errors.py
│ └── tutorial.conf
└── wsgiserver
│ ├── __init__.py
│ ├── __init__.pyc
│ ├── __pycache__
│ ├── __init__.cpython-34.pyc
│ └── wsgiserver3.cpython-34.pyc
│ ├── ssl_builtin.py
│ ├── ssl_pyopenssl.py
│ ├── wsgiserver2.py
│ ├── wsgiserver2.pyc
│ └── wsgiserver3.py
├── dexml
├── __init__.py
├── fields.py
└── test.py
├── lxml
├── ElementInclude.py
├── __init__.py
├── __init__.pyc
├── __pycache__
│ └── __init__.cpython-34.pyc
├── _elementpath.py
├── apihelpers.pxi
├── builder.py
├── classlookup.pxi
├── cleanup.pxi
├── cssselect.py
├── cvarargs.pxd
├── debug.pxi
├── docloader.pxi
├── doctestcompare.py
├── dtd.pxi
├── extensions.pxi
├── html
│ ├── ElementSoup.py
│ ├── __init__.py
│ ├── _diffcommand.py
│ ├── _html5builder.py
│ ├── _setmixin.py
│ ├── builder.py
│ ├── clean.py
│ ├── defs.py
│ ├── diff.py
│ ├── formfill.py
│ ├── html5parser.py
│ ├── soupparser.py
│ ├── tests
│ │ ├── __init__.py
│ │ ├── feedparser-data
│ │ │ ├── entry_content_applet.data
│ │ │ ├── entry_content_blink.data
│ │ │ ├── entry_content_crazy.data
│ │ │ ├── entry_content_embed.data
│ │ │ ├── entry_content_frame.data
│ │ │ ├── entry_content_iframe.data
│ │ │ ├── entry_content_link.data
│ │ │ ├── entry_content_meta.data
│ │ │ ├── entry_content_object.data
│ │ │ ├── entry_content_onabort.data
│ │ │ ├── entry_content_onblur.data
│ │ │ ├── entry_content_onchange.data
│ │ │ ├── entry_content_onclick.data
│ │ │ ├── entry_content_ondblclick.data
│ │ │ ├── entry_content_onerror.data
│ │ │ ├── entry_content_onfocus.data
│ │ │ ├── entry_content_onkeydown.data
│ │ │ ├── entry_content_onkeypress.data
│ │ │ ├── entry_content_onkeyup.data
│ │ │ ├── entry_content_onload.data
│ │ │ ├── entry_content_onmousedown.data
│ │ │ ├── entry_content_onmouseout.data
│ │ │ ├── entry_content_onmouseover.data
│ │ │ ├── entry_content_onmouseup.data
│ │ │ ├── entry_content_onreset.data
│ │ │ ├── entry_content_onresize.data
│ │ │ ├── entry_content_onsubmit.data
│ │ │ ├── entry_content_onunload.data
│ │ │ ├── entry_content_script.data
│ │ │ ├── entry_content_script_cdata.data
│ │ │ ├── entry_content_script_inline.data
│ │ │ └── entry_content_style.data
│ │ ├── hackers-org-data
│ │ │ ├── background-image-plus.data
│ │ │ ├── background-image-with-unicoded.data
│ │ │ ├── downlevel-hidden.data
│ │ │ ├── html-plus-time.data
│ │ │ ├── javascript-link.data
│ │ │ ├── style-comment.data
│ │ │ ├── style-expression.data
│ │ │ ├── style-import.data
│ │ │ ├── style-js-tag.data
│ │ │ ├── style-url-js.data
│ │ │ ├── xml-data-island.data
│ │ │ └── xml-embedded-js.data
│ │ ├── test_autolink.py
│ │ ├── test_autolink.txt
│ │ ├── test_basic.py
│ │ ├── test_basic.txt
│ │ ├── test_clean.py
│ │ ├── test_clean.txt
│ │ ├── test_clean_embed.txt
│ │ ├── test_diff.py
│ │ ├── test_diff.txt
│ │ ├── test_elementsoup.py
│ │ ├── test_feedparser_data.py
│ │ ├── test_formfill.py
│ │ ├── test_formfill.txt
│ │ ├── test_forms.py
│ │ ├── test_forms.txt
│ │ ├── test_frames.py
│ │ ├── test_html5parser.py
│ │ ├── test_rewritelinks.py
│ │ ├── test_rewritelinks.txt
│ │ ├── test_xhtml.py
│ │ ├── test_xhtml.txt
│ │ └── transform_feedparser_data.py
│ └── usedoctest.py
├── includes
│ ├── __init__.py
│ ├── c14n.pxd
│ ├── config.pxd
│ ├── dtdvalid.pxd
│ ├── etree_defs.h
│ ├── etreepublic.pxd
│ ├── htmlparser.pxd
│ ├── lxml-version.h
│ ├── relaxng.pxd
│ ├── schematron.pxd
│ ├── tree.pxd
│ ├── uri.pxd
│ ├── xinclude.pxd
│ ├── xmlerror.pxd
│ ├── xmlparser.pxd
│ ├── xmlschema.pxd
│ ├── xpath.pxd
│ └── xslt.pxd
├── isoschematron
│ ├── __init__.py
│ └── resources
│ │ ├── rng
│ │ └── iso-schematron.rng
│ │ └── xsl
│ │ ├── RNG2Schtrn.xsl
│ │ ├── XSD2Schtrn.xsl
│ │ └── iso-schematron-xslt1
│ │ ├── iso_abstract_expand.xsl
│ │ ├── iso_dsdl_include.xsl
│ │ ├── iso_schematron_message.xsl
│ │ ├── iso_schematron_skeleton_for_xslt1.xsl
│ │ ├── iso_svrl_for_xslt1.xsl
│ │ └── readme.txt
├── iterparse.pxi
├── lxml.etree.c
├── lxml.etree.h
├── lxml.etree.pyx
├── lxml.etree_api.h
├── lxml.objectify.c
├── lxml.objectify.pyx
├── lxml_endian.h
├── nsclasses.pxi
├── objectpath.pxi
├── parser.pxi
├── parsertarget.pxi
├── proxy.pxi
├── public-api.pxi
├── pyclasslookup.py
├── python.pxd
├── readonlytree.pxi
├── relaxng.pxi
├── sax.py
├── saxparser.pxi
├── schematron.pxi
├── serializer.pxi
├── tests
│ ├── __init__.py
│ ├── common_imports.py
│ ├── dummy_http_server.py
│ ├── include
│ │ └── test_xinclude.xml
│ ├── shakespeare.html
│ ├── test-document.xslt
│ ├── test-string.xml
│ ├── test.dtd
│ ├── test.sch
│ ├── test.xml
│ ├── test.xsd
│ ├── test1.rng
│ ├── test1.xslt
│ ├── test2.rng
│ ├── test2.xslt
│ ├── test_broken.xml
│ ├── test_builder.py
│ ├── test_classlookup.py
│ ├── test_css.py
│ ├── test_doctestcompare.py
│ ├── test_dtd.py
│ ├── test_elementpath.py
│ ├── test_elementtree.py
│ ├── test_errors.py
│ ├── test_etree.py
│ ├── test_htmlparser.py
│ ├── test_http_io.py
│ ├── test_import.xsd
│ ├── test_inc.xsd
│ ├── test_incremental_xmlfile.py
│ ├── test_io.py
│ ├── test_isoschematron.py
│ ├── test_nsclasses.py
│ ├── test_objectify.py
│ ├── test_pyclasslookup.py
│ ├── test_relaxng.py
│ ├── test_sax.py
│ ├── test_schematron.py
│ ├── test_threading.py
│ ├── test_unicode.py
│ ├── test_xmlschema.py
│ ├── test_xpathevaluator.py
│ └── test_xslt.py
├── usedoctest.py
├── xinclude.pxi
├── xmlerror.pxi
├── xmlid.pxi
├── xmlschema.pxi
├── xpath.pxi
├── xslt.pxi
└── xsltext.pxi
└── post-process
└── GamezServerPostProcess.py
/GamezServer.Python.pyproj.user:
--------------------------------------------------------------------------------
1 |
2 |
53 | Isn't this exciting? There's 54 | another page, too! 55 |
56 | ''' + self.footer() 57 | index.exposed = True 58 | 59 | 60 | class AnotherPage(Page): 61 | title = 'Another Page' 62 | 63 | def index(self): 64 | return self.header() + ''' 65 |66 | And this is the amazing second page! 67 |
68 | ''' + self.footer() 69 | index.exposed = True 70 | 71 | 72 | import os.path 73 | tutconf = os.path.join(os.path.dirname(__file__), 'tutorial.conf') 74 | 75 | if __name__ == '__main__': 76 | # CherryPy always starts with app.root when trying to map request URIs 77 | # to objects, so we need to mount a request handler root. A request 78 | # to '/' will be mapped to HelloWorld().index(). 79 | cherrypy.quickstart(HomePage(), config=tutconf) 80 | else: 81 | # This branch is for the test suite; you can ignore it. 82 | cherrypy.tree.mount(HomePage(), config=tutconf) 83 | -------------------------------------------------------------------------------- /cherrypy/tutorial/tut06_default_method.py: -------------------------------------------------------------------------------- 1 | """ 2 | Tutorial - The default method 3 | 4 | Request handler objects can implement a method called "default" that 5 | is called when no other suitable method/object could be found. 6 | Essentially, if CherryPy2 can't find a matching request handler object 7 | for the given request URI, it will use the default method of the object 8 | located deepest on the URI path. 9 | 10 | Using this mechanism you can easily simulate virtual URI structures 11 | by parsing the extra URI string, which you can access through 12 | cherrypy.request.virtualPath. 13 | 14 | The application in this tutorial simulates an URI structure looking 15 | like /users/Toggle tracebacks %s
35 | 36 |37 | 38 | Use a custom error page from a file. 39 | 40 |
41 |These errors are explicitly raised by the application:
42 | 48 |You can also set the response body 49 | when you raise an error.
50 | 51 | """ % trace 52 | index.exposed = True 53 | 54 | def toggleTracebacks(self): 55 | # simple function to toggle tracebacks on and off 56 | tracebacks = cherrypy.request.show_tracebacks 57 | cherrypy.config.update({'request.show_tracebacks': not tracebacks}) 58 | 59 | # redirect back to the index 60 | raise cherrypy.HTTPRedirect('/') 61 | toggleTracebacks.exposed = True 62 | 63 | def error(self, code): 64 | # raise an error based on the get query 65 | raise cherrypy.HTTPError(status=code) 66 | error.exposed = True 67 | 68 | def messageArg(self): 69 | message = ("If you construct an HTTPError with a 'message' " 70 | "argument, it wil be placed on the error page " 71 | "(underneath the status line by default).") 72 | raise cherrypy.HTTPError(500, message=message) 73 | messageArg.exposed = True 74 | 75 | 76 | import os.path 77 | tutconf = os.path.join(os.path.dirname(__file__), 'tutorial.conf') 78 | 79 | if __name__ == '__main__': 80 | # CherryPy always starts with app.root when trying to map request URIs 81 | # to objects, so we need to mount a request handler root. A request 82 | # to '/' will be mapped to HelloWorld().index(). 83 | cherrypy.quickstart(HTTPErrorDemo(), config=tutconf) 84 | else: 85 | # This branch is for the test suite; you can ignore it. 86 | cherrypy.tree.mount(HTTPErrorDemo(), config=tutconf) 87 | -------------------------------------------------------------------------------- /cherrypy/tutorial/tutorial.conf: -------------------------------------------------------------------------------- 1 | [global] 2 | server.socket_host = "127.0.0.1" 3 | server.socket_port = 8080 4 | server.thread_pool = 10 5 | -------------------------------------------------------------------------------- /cherrypy/wsgiserver/__init__.py: -------------------------------------------------------------------------------- 1 | __all__ = ['HTTPRequest', 'HTTPConnection', 'HTTPServer', 2 | 'SizeCheckWrapper', 'KnownLengthRFile', 'ChunkedRFile', 3 | 'MaxSizeExceeded', 'NoSSLError', 'FatalSSLAlert', 4 | 'WorkerThread', 'ThreadPool', 'SSLAdapter', 5 | 'CherryPyWSGIServer', 6 | 'Gateway', 'WSGIGateway', 'WSGIGateway_10', 'WSGIGateway_u0', 7 | 'WSGIPathInfoDispatcher', 'get_ssl_adapter_class'] 8 | 9 | import sys 10 | if sys.version_info < (3, 0): 11 | from wsgiserver2 import * 12 | else: 13 | # Le sigh. Boo for backward-incompatible syntax. 14 | exec('from .wsgiserver3 import *') 15 | -------------------------------------------------------------------------------- /cherrypy/wsgiserver/__init__.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/05sonicblue/GamezServer/9634af9bd046f8135a387046a3c0c5f226eb93d0/cherrypy/wsgiserver/__init__.pyc -------------------------------------------------------------------------------- /cherrypy/wsgiserver/__pycache__/__init__.cpython-34.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/05sonicblue/GamezServer/9634af9bd046f8135a387046a3c0c5f226eb93d0/cherrypy/wsgiserver/__pycache__/__init__.cpython-34.pyc -------------------------------------------------------------------------------- /cherrypy/wsgiserver/__pycache__/wsgiserver3.cpython-34.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/05sonicblue/GamezServer/9634af9bd046f8135a387046a3c0c5f226eb93d0/cherrypy/wsgiserver/__pycache__/wsgiserver3.cpython-34.pyc -------------------------------------------------------------------------------- /cherrypy/wsgiserver/wsgiserver2.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/05sonicblue/GamezServer/9634af9bd046f8135a387046a3c0c5f226eb93d0/cherrypy/wsgiserver/wsgiserver2.pyc -------------------------------------------------------------------------------- /lxml/__init__.py: -------------------------------------------------------------------------------- 1 | # this is a package 2 | 3 | def get_include(): 4 | """ 5 | Returns a list of header include paths (for lxml itself, libxml2 6 | and libxslt) needed to compile C code against lxml if it was built 7 | with statically linked libraries. 8 | """ 9 | import os 10 | lxml_path = __path__[0] 11 | include_path = os.path.join(lxml_path, 'includes') 12 | includes = [include_path, lxml_path] 13 | 14 | for name in os.listdir(include_path): 15 | path = os.path.join(include_path, name) 16 | if os.path.isdir(path): 17 | includes.append(path) 18 | 19 | return includes 20 | 21 | -------------------------------------------------------------------------------- /lxml/__init__.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/05sonicblue/GamezServer/9634af9bd046f8135a387046a3c0c5f226eb93d0/lxml/__init__.pyc -------------------------------------------------------------------------------- /lxml/__pycache__/__init__.cpython-34.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/05sonicblue/GamezServer/9634af9bd046f8135a387046a3c0c5f226eb93d0/lxml/__pycache__/__init__.cpython-34.pyc -------------------------------------------------------------------------------- /lxml/cvarargs.pxd: -------------------------------------------------------------------------------- 1 | cdef extern from "stdarg.h": 2 | ctypedef void *va_list 3 | void va_start(va_list ap, void *last) nogil 4 | void va_end(va_list ap) nogil 5 | 6 | cdef extern from "etree_defs.h": 7 | cdef int va_int(va_list ap) nogil 8 | cdef char *va_charptr(va_list ap) nogil 9 | -------------------------------------------------------------------------------- /lxml/html/ElementSoup.py: -------------------------------------------------------------------------------- 1 | __doc__ = """Legacy interface to the BeautifulSoup HTML parser. 2 | """ 3 | 4 | __all__ = ["parse", "convert_tree"] 5 | 6 | from soupparser import convert_tree, parse as _parse 7 | 8 | def parse(file, beautifulsoup=None, makeelement=None): 9 | root = _parse(file, beautifulsoup=beautifulsoup, makeelement=makeelement) 10 | return root.getroot() 11 | -------------------------------------------------------------------------------- /lxml/html/_diffcommand.py: -------------------------------------------------------------------------------- 1 | import optparse 2 | import sys 3 | import re 4 | import os 5 | from lxml.html.diff import htmldiff 6 | 7 | description = """\ 8 | """ 9 | 10 | parser = optparse.OptionParser( 11 | usage="%prog [OPTIONS] FILE1 FILE2\n" 12 | "%prog --annotate [OPTIONS] INFO1 FILE1 INFO2 FILE2 ...", 13 | description=description, 14 | ) 15 | 16 | parser.add_option( 17 | '-o', '--output', 18 | metavar="FILE", 19 | dest="output", 20 | default="-", 21 | help="File to write the difference to", 22 | ) 23 | 24 | parser.add_option( 25 | '-a', '--annotation', 26 | action="store_true", 27 | dest="annotation", 28 | help="Do an annotation") 29 | 30 | def main(args=None): 31 | if args is None: 32 | args = sys.argv[1:] 33 | options, args = parser.parse_args(args) 34 | if options.annotation: 35 | return annotate(options, args) 36 | if len(args) != 2: 37 | print('Error: you must give two files') 38 | parser.print_help() 39 | sys.exit(1) 40 | file1, file2 = args 41 | input1 = read_file(file1) 42 | input2 = read_file(file2) 43 | body1 = split_body(input1)[1] 44 | pre, body2, post = split_body(input2) 45 | result = htmldiff(body1, body2) 46 | result = pre + result + post 47 | if options.output == '-': 48 | if not result.endswith('\n'): 49 | result += '\n' 50 | sys.stdout.write(result) 51 | else: 52 | f = open(options.output, 'wb') 53 | f.write(result) 54 | f.close() 55 | 56 | def read_file(filename): 57 | if filename == '-': 58 | c = sys.stdin.read() 59 | elif not os.path.exists(filename): 60 | raise OSError( 61 | "Input file %s does not exist" % filename) 62 | else: 63 | f = open(filename, 'rb') 64 | c = f.read() 65 | f.close() 66 | return c 67 | 68 | body_start_re = re.compile( 69 | r"