Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install mobile.htmlprocessing

How to install mobile.htmlprocessing

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install mobile.htmlprocessing
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
1.0.0 Available View build log
0.9.1 Available View build log
0.1 Available View build log
Windows (64-bit)
1.0.0 Available View build log
0.9.1 Available View build log
0.1 Available View build log
Mac OS X (10.5+)
1.0.0 Available View build log
0.9.1 Available View build log
0.1 Available View build log
Linux (32-bit)
1.0.0 Available View build log
0.9.1 Available View build log
0.1 Available View build log
Linux (64-bit)
1.0.0 Available View build log
0.9.1 Available View build log
0.1 Available View build log
 
License
GPL
Dependencies
Depended by
Lastest release
version 1.0.0 on Jul 6th, 2011

Introduction

mobile.htmlprocessing is a Python package providing utilities to sanitize arbitrary HTML content into mobile browser friendly format.

It is part of mFabrik Web and Mobile solutions package to build multichannel content management with Python.

Features

  • Rewrite <img> tags so that images are resized for mobile viewing
  • Make arbitraty input HTML to valid XHTML to more compatible with mobile phones
  • Enforce empty ALT text on images missing ALT attribute
  • Protect against Cross-Site Scripting Attacks (XSS) and other nastiness, as provided by lxml.html.clean. Both trusted HTML and non-trusted HTML processing modes are supported.
  • Unicode compliant - eats funky characters

This is a framework library which is designed to work with any web server or Python based CMS system. It allow rewrites HTML. You need to subclass and specialize provided base classes to match with your CMS paradigms. For examples, see Go Mobile for Plone CMS add-on product.

Requirements

Usage

Please see example code in unit tests.

Unit tests

Put mobile.htmlprocessing to your PYTHONPATH.

Run unit tests normally like:

python tests/test_image.py

Commercial support and development

This package is licenced under open source GPL 2 license.

Commercial CMS and mobile development support options are available from mFabrik's Web and Mobile product site.

Our top class Python developers are ready to help you with any software development needs.

0.9.2 - current

  • Don't choke on empty HTML documents [miohtama]

0.9.1 - 0.9.2

  • Depend on lxml [miohtama]

0.9 - 0.9.1

  • Fixed maintainer information [miohtama]

0.9

  • Major project restructuring [miohtama]

0.1

  • Initial release

Subscribe to package updates

Last updated Jul 6th, 2011

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.