Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.077.945 Times

commentator for Linux 0.1

Company: Jeff Hammel
Date Added: October 11, 2013  |  Visits: 326

commentator for Linux

Report Broken Link
Printer Friendly Version


Product Homepage
Download (41 downloads)



Usage:<br />Make a factory wrapping your app in the commentator middleware. Currently, commentator only pickles comments. To the constructor of Commentator, pass a database (the path to the pickle) and a pattern. The pattern is in the form of<br />< URL pattern >#< xpath pattern > -> URL<br />The URL pattern is a python regular expression to match against the request's PATH_INFO.<br />The xpath pattern is where you want to place the comments on the page. See http://www.w3schools.com/XPath/ for more about xpath expressions.<br />The URL is a python string template that is substituted for groups in the URL regular expression and element attributes in the found nodes. The element attributes are referenced by name (${id}, ${class}, etc) and the groups are referenced by number (${1}, ...).<br />Example:<br />A reference implementation is illustrated in the commentator.ini file. This uses the pattern:<br /> commentator.pattern = (.*)#.//div[@id='comment_on_this'] -> ${1}<br />What this pattern says is<br /> * comment on every PATH_INFO (.*)<br /> * append the rendered content template to div[@id='comment_on_this']<br /> * reference the PATH_INFO as the canonical URL ${1}<br />To comment on every HTML page at the end of the body, you would use<br /> commentator.pattern = (.*)#.//body -> ${1}<br />A more complex example is in the .ini file, commented out, for use with bitsyblog :<br /> commentator.pattern = /blog/.*#.//div[@class='blog-entry'] -> /blog/${id}<br />This pattern says:<br /> * comment on all paths under blog<br /> * put the comments at the end of each div[@class='blog-entry']<br /> * get the URI from the div's id, not from the PATH_INFO

Requirements: No special requirements
Platforms: *nix, Linux
Keyword: Append Attributes Comment Commentator Commentator Linux Commentatorpattern Comments Divid Comment Element Expression Factory Groups Linux Path Info Pattern Python Reference Referenced Regular Template Xpath
Users rating: 0/10

License: Freeware Size: 20.48 KB
USER REVIEWS
More Reviews or Write Review


COMMENTATOR FOR LINUX RELATED
Development Editors  -  Tiny Pic Bootloader for Linux 0.6.6
Tinybldlin is a GNU/Linux port written in python for Tiny PIC Bootloader (tinybldWin.exe) for Microchip PIC microcontrollers.
122.88 KB  
Utilities  -  linux-metrics 0.1.2
linux-metrics is a Python package containing modules for getting OS metrics on systems running the Linux (2.6) kernel. It is a pure python library with no external dependencies. This project is under development, and nowhere near...
10.24 KB  
Utilities  -  System Health Monitor 0.8
System Health Monitor for Linux is a handy python program that will setup your system to generate RRD Graphs of network interface traffic, system load, memory usage, disk space and inode usage and graphs of the number of running processes....
17.41 KB  
Science  -  PyDespike 1.0.0
PyDespike is a cross platform (Windows, Mac, Linux) program written in Python using the PyQt and PyQwt libraries used to graphically process (despike) raman or other spectroscopic data in an efficient manner.
3.21 MB  
Modules  -  Vertical scroll recent comments 7.0
Live DemoMore infoComments/SuggestionAbout authorClick to see my other pluginsThis will vertically scroll the recent comments in site side bar or any desired location with avatar or name or none.Version 3.0We can use this plug-in in two different...
368.64 KB  
Audio Tools  -  Scour for Linux 0.24
Scour is a Python script that can be used to clean SVG files saved from Inkscape, Adobe Illustrator, etc. Scouring SVG files is useful to reduce file size and complexity (often speeding up rendering). The goal of scour is to provide an...
30.72 KB  
Server Tools  -  eftepede for Linux New
eftepede - a FTP server that doesn't suck So, here is the story: I got a linux box and proftpd. If you know proftpd, and you know me, you know that at this point I am angry. I have a very simple task: * Setup an FTP server with n users *...
7.16 MB  
Development Editors  -  Pyicos For Linux 1.0.4
Pyicos is a Deep-seq analysis tool and library written in Python. It???*a*?s designed to be flexible. It can used several in ways: * Command line linux tool * Integrated as part of a bigger pipeline * Auxiliary libraries for python scripting
1.66 MB  
Utilities  -  Nmap for Linux 5.61 Test 2
Nmap is a utility for network exploration or security auditing. It supports ping scanning (determine which hosts are up), many port scanning techniques (determine what services the hosts are offering), version detection (determine what...
20.63 MB  
Libraries  -  Embedix::ECD 0.09
Embedix::ECD is a Perl module with Embedix Component Descriptions as objects. SYNOPSIS instantiate from a file my $ecd = Embedix::ECD->newFromFile(busybox.ecd); my $other_ecd = Embedix::ECD->newFromFile(tinylogin.ecd); access nodes my...
40.96 KB  
NEW DOWNLOADS IN LINUX SOFTWARE, PROGRAMMING
Linux Software  -  EasyEDA PCB Designer for Linux 2.0.0
EasyEDA, a great web based EDA(Electronics Design Automation) tool, online PCB tool, online PCB software for electronics engineers, educators, students, makers and enthusiasts. Theres no need to install any software. Just open EasyEDA in any...
34.4 MB  
Linux Software  -  wpCache® WordPress HTTP Cache 1.9
wpCache® is a high-performance, distributed object, caching system application, generic in nature, but intended for use in speeding up dynamic web applications, by decreasing database load time. wpCache® decreases dramatically the page...
3.51 MB  
Linux Software  -  Polling Autodialer Software 3.4
ICTBroadcast Auto Dialer software has a survey campaign for telephone surveys and polls. This auto dialer software automatically dials a list of numbers and asks them a set of questions that they can respond to, by using their telephone keypad....
488 B  
Linux Software  -  Total Video Converter Mac Free 3.5.5
Total Video Converter Mac Free developed by EffectMatrix Ltd is the official legal version of Total Video Converter which was a globally recognized brand since 2006. Total Video Converter Mac Free is a free but powerful all-in-one video...
17.7 MB  
Linux Software  -  Skeith mod_log_sql Analyzer 2.10beta2
Skeith is a php based front end for analyzing logs for Apache using mod_log_sql.
47.5 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB