entity
Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 185
Myco::Entity 1.22
Myco::Entity is a common base class for all Myco entity classes. more>>
Myco::Entity is a common base class for all Myco entity classes.
SYNOPSIS
### Entity class definition
package Myco::Foo;
use base qw(Myco::Entity);
# Start building metadata
my $metadata = Myco::Entity::Meta->new
( name => __PACKAGE__,
tangram => { table => Foo }
);
$metadata->add_attribute(name => attr1, type => string);
$metadata->add_attribute(name => attr2, type => string);
# class-specific methods defined ...
#
# Fill in $schema with all added_attributes and discover other metadata
$metadata->activate_class;
### Entity class usage
use Myco::Foo;
# Constructor
$obj = Myco::Foo->new;
$obj = Myco::Foo->new(attr1 => value, attr2 => value);
# Access class metadata (see Myco::Entity::Meta)
$meta = Myco::Foo->introspect;
$meta = $obj->introspect;
# Accessors
$obj->get_attr1; # get attribute value
$obj->set_attr1(value); # set attribute value
# Instance methods
$id = $obj->save; # update objects state in persistent
# storage, create new record if needed;
# returns objects Tangram id
$obj->destroy;
$obj->modify(attr1 => val, attr2 => val);
$object_id = $obj->id;
$obj->is_transient; # returns true if object is in Tangram
# transient storage
## object retrieval (see class Myco documentation
# for full detail)
$obj = Myco->load($object_id);
# fetch all objects of given type
@objects = Myco->select(ref $obj);
Provides, via inheritence, common interface in support of basic lifecycle needs for myco entity objects.
This is accomplished through the encapsulation of the CPAN module Class::Tangram which provides a basis for "in-memory" object behavior. Consult its documentation for details on schema definition syntax, getter/setter behavior, check functions, etc.
The common interface for object persistence behavior (referred within myco as "transaction" behavior) is provided through defintion of a handful of related instance methods. This is done with reliance on the services of the class Myco, which encapsulates the functionality of Tangram::Storage and provides system-wide connection handling.
<<lessSYNOPSIS
### Entity class definition
package Myco::Foo;
use base qw(Myco::Entity);
# Start building metadata
my $metadata = Myco::Entity::Meta->new
( name => __PACKAGE__,
tangram => { table => Foo }
);
$metadata->add_attribute(name => attr1, type => string);
$metadata->add_attribute(name => attr2, type => string);
# class-specific methods defined ...
#
# Fill in $schema with all added_attributes and discover other metadata
$metadata->activate_class;
### Entity class usage
use Myco::Foo;
# Constructor
$obj = Myco::Foo->new;
$obj = Myco::Foo->new(attr1 => value, attr2 => value);
# Access class metadata (see Myco::Entity::Meta)
$meta = Myco::Foo->introspect;
$meta = $obj->introspect;
# Accessors
$obj->get_attr1; # get attribute value
$obj->set_attr1(value); # set attribute value
# Instance methods
$id = $obj->save; # update objects state in persistent
# storage, create new record if needed;
# returns objects Tangram id
$obj->destroy;
$obj->modify(attr1 => val, attr2 => val);
$object_id = $obj->id;
$obj->is_transient; # returns true if object is in Tangram
# transient storage
## object retrieval (see class Myco documentation
# for full detail)
$obj = Myco->load($object_id);
# fetch all objects of given type
@objects = Myco->select(ref $obj);
Provides, via inheritence, common interface in support of basic lifecycle needs for myco entity objects.
This is accomplished through the encapsulation of the CPAN module Class::Tangram which provides a basis for "in-memory" object behavior. Consult its documentation for details on schema definition syntax, getter/setter behavior, check functions, etc.
The common interface for object persistence behavior (referred within myco as "transaction" behavior) is provided through defintion of a handful of related instance methods. This is done with reliance on the services of the class Myco, which encapsulates the functionality of Tangram::Storage and provides system-wide connection handling.
Download (0.10MB)
Added: 2006-10-20 License: Perl Artistic License Price:
639 downloads
XML::Mini::Element::Entity 1.2.8
XML::Mini::Element::Entity Perl module is used internally to represent < !ENTITY name stuff >. more>>
XML::Mini::Element::Entity Perl module is used internally to represent < !ENTITY name "stuff" >.
You shouldnt need to use it directly, see XML::Mini::Elements entity() method.
<<lessYou shouldnt need to use it directly, see XML::Mini::Elements entity() method.
Download (0.034MB)
Added: 2007-03-08 License: Perl Artistic License Price:
960 downloads
HTML Entity Based Codepage Inference 0.01
HEBCI is a technique that allows a Web form handler to transparently detect the character set with which its data was encoded. more>> <<less
Download (0.005MB)
Added: 2005-07-05 License: GPL (GNU General Public License) Price:
1575 downloads
XML::DOM::EntityReference 1.44
XML::DOM::EntityReference is an XML ENTITY reference in XML::DOM. more>>
XML::DOM::EntityReference is an XML ENTITY reference in XML::DOM.
XML::DOM::EntityReference extends XML::DOM::Node.
EntityReference objects may be inserted into the structure model when an entity reference is in the source document, or when the user wishes to insert an entity reference. Note that character references and references to predefined entities are considered to be expanded by the HTML or XML processor so that characters are represented by their Unicode equivalent rather than by an entity reference.
Moreover, the XML processor may completely expand references to entities while building the structure model, instead of providing EntityReference objects. If it does provide such objects, then for a given EntityReference node, it may be that there is no Entity node representing the referenced entity; but if such an Entity exists, then the child list of the EntityReference node is the same as that of the Entity node. As with the Entity node, all descendants of the EntityReference are readonly.
The resolution of the children of the EntityReference (the replacement value of the referenced Entity) may be lazily evaluated; actions by the user (such as calling the childNodes method on the EntityReference node) are assumed to trigger the evaluation.
<<lessXML::DOM::EntityReference extends XML::DOM::Node.
EntityReference objects may be inserted into the structure model when an entity reference is in the source document, or when the user wishes to insert an entity reference. Note that character references and references to predefined entities are considered to be expanded by the HTML or XML processor so that characters are represented by their Unicode equivalent rather than by an entity reference.
Moreover, the XML processor may completely expand references to entities while building the structure model, instead of providing EntityReference objects. If it does provide such objects, then for a given EntityReference node, it may be that there is no Entity node representing the referenced entity; but if such an Entity exists, then the child list of the EntityReference node is the same as that of the Entity node. As with the Entity node, all descendants of the EntityReference are readonly.
The resolution of the children of the EntityReference (the replacement value of the referenced Entity) may be lazily evaluated; actions by the user (such as calling the childNodes method on the EntityReference node) are assumed to trigger the evaluation.
Download (0.039MB)
Added: 2006-10-13 License: Perl Artistic License Price:
1106 downloads
Mail::Message::Convert::MimeEntity 2.066
Mail::Message::Convert::MimeEntity is a Perl module that can translate Mail::Message to MIME::Entity vv. more>>
Mail::Message::Convert::MimeEntity is a Perl module that can translate Mail::Message to MIME::Entity vv.
INHERITANCE
Mail::Message::Convert::MimeEntity
is a Mail::Message::Convert
is a Mail::Reporter
SYNOPSIS
use Mail::Message::Convert::MimeEntity;
my $convert = Mail::Message::Convert::MimeEntity->new;
my Mail::Message $msg = Mail::Message->new;
my MIME::Entity $entity = $convert->export($msg);
my MIME::Entity $entity = MIME::Entity->new;
my Mail::Message $msg = $convert->from($entity);
use Mail::Box::Manager;
my $mgr = Mail::Box::Manager->new;
my $folder = $mgr->open(folder => Outbox);
The MIME::Entity extends Mail::Internet message with multiparts and more methods. The Mail::Message objects are more flexible in how the message parts are stored, and uses separate header and body objects.
<<lessINHERITANCE
Mail::Message::Convert::MimeEntity
is a Mail::Message::Convert
is a Mail::Reporter
SYNOPSIS
use Mail::Message::Convert::MimeEntity;
my $convert = Mail::Message::Convert::MimeEntity->new;
my Mail::Message $msg = Mail::Message->new;
my MIME::Entity $entity = $convert->export($msg);
my MIME::Entity $entity = MIME::Entity->new;
my Mail::Message $msg = $convert->from($entity);
use Mail::Box::Manager;
my $mgr = Mail::Box::Manager->new;
my $folder = $mgr->open(folder => Outbox);
The MIME::Entity extends Mail::Internet message with multiparts and more methods. The Mail::Message objects are more flexible in how the message parts are stored, and uses separate header and body objects.
Download (0.57MB)
Added: 2006-08-08 License: GPL (GNU General Public License) Price:
1172 downloads
MathML::Entities 0.13
MathML::Entities is a Perl module that can convert XHTML+MathML Named Entities to Numeric Character References. more>> <<less
Download (0.017MB)
Added: 2006-08-11 License: Perl Artistic License Price:
1169 downloads
Term::Animation 2.3
Term::Animation is a Perl module that provides a framework to produce sprite animations using ASCII art. more>>
Term::Animation is a Perl module that provides a framework to produce sprite animations using ASCII art. Each ASCII sprite is given one or more frames, and placed into the animation as an animation entity.
An animation entity can have a callback routine that controls the position and frame of the entity. The module can also do collision detection between entities.
INSTALLATION
To install this module type the following:
perl Makefile.PL
make
make test
make install
<<lessAn animation entity can have a callback routine that controls the position and frame of the entity. The module can also do collision detection between entities.
INSTALLATION
To install this module type the following:
perl Makefile.PL
make
make test
make install
Download (0.018MB)
Added: 2006-12-19 License: Perl Artistic License Price:
1062 downloads
torrentocracy 0.0.11
torrentocracy is an RSS aggregator and bittorrent downloader for MythTV. more>>
Torrentocracy (pronounced like the word democracy) is the combination of RSS, bit torrent, your television and your remote control. In effect, it is what gives any properly motivated person or entity the ability to have their own TV station.
By running torrentocracy on a computer connected to your television, you not only become a viewer of any available content from the internet, but you also become a part of a vast grass roots media distribution network.
This is not about the illegal distribution of media, but rather its about enabling an entirely new way to receive the video which you watch on your TV.
If you ever wondered how and when your computer, the internet and your television would merge into one seemless device with access to anything and everything, then at this very moment the theme song from 2001: A Space Odyssey ("Also Sprach Zarathustra") should be resounding through your head.
<<lessBy running torrentocracy on a computer connected to your television, you not only become a viewer of any available content from the internet, but you also become a part of a vast grass roots media distribution network.
This is not about the illegal distribution of media, but rather its about enabling an entirely new way to receive the video which you watch on your TV.
If you ever wondered how and when your computer, the internet and your television would merge into one seemless device with access to anything and everything, then at this very moment the theme song from 2001: A Space Odyssey ("Also Sprach Zarathustra") should be resounding through your head.
Download (0.060MB)
Added: 2005-04-26 License: GPL (GNU General Public License) Price:
1643 downloads
HTML::Entities::Numbered 0.04
HTML::Entities::Numbered is a Perl module for conversion of numbered HTML entities. more>> <<less
Download (0008MB)
Added: 2007-07-16 License: Perl Artistic License Price:
833 downloads
Mimicry 0.4
Mimicry is a mail post-postprocessor daemon. more>>
Mimicry is a mail post-postprocessor daemon. It is easy to extend since the actual processing gets done in plugins. Mail messages are received and sent with SMTP.
Current functionality includes adding disclaimers to messages and compressing attachments on the fly. Selection of attachments to be processed is based on MIME-type, filename, receipient, sender, and (to a certain extent) the position of the message part within the message.
Main features:
- Programmed in perl
- A daemon that receives and sends mails via SMTP
- A program to inspect and manipulate mail parts (mime entities) within an SMTP flow
- Easily extendable by outsourcing the actual processing to plugins that get loaded during startup
- Coded with flexibility in mind
- Filterspecification with perl regular expressions
- A configuration file where you can specify lists of actions to be executed on mail parts, based on
- (envelope) sender and recipient
- mime type and path of mime types from top level entity to inspected entity
- recommended filenames
- and (to a certain extent) the position of the part within the mails mime tree
- And of course: licensed under the GPL
<<lessCurrent functionality includes adding disclaimers to messages and compressing attachments on the fly. Selection of attachments to be processed is based on MIME-type, filename, receipient, sender, and (to a certain extent) the position of the message part within the message.
Main features:
- Programmed in perl
- A daemon that receives and sends mails via SMTP
- A program to inspect and manipulate mail parts (mime entities) within an SMTP flow
- Easily extendable by outsourcing the actual processing to plugins that get loaded during startup
- Coded with flexibility in mind
- Filterspecification with perl regular expressions
- A configuration file where you can specify lists of actions to be executed on mail parts, based on
- (envelope) sender and recipient
- mime type and path of mime types from top level entity to inspected entity
- recommended filenames
- and (to a certain extent) the position of the part within the mails mime tree
- And of course: licensed under the GPL
Download (0.023MB)
Added: 2005-07-04 License: GPL (GNU General Public License) Price:
1577 downloads
Andutteye Software Suite 2.3 (Syslog)
Andutteye Software Suite is a systems management tool. more>>
Andutteye Software Suite is a systems management tool. Andutteye Software Suite has a modular design and every module targets different tasks of systems management.
Andutteye Software Suite will let you manage all aspects of the IT infrastructure, helping to ensure availability, monitor, tune, and optimize performance.
Andutteye Software Suite will make it easier to support and maintain your entire enterprise as a single entity from a central point of operation.
The webinterface has oustanding features like:
- css stylesheet and theme support
- Language support
- Support and complete integration for monitoring, management and change module
- Role based access control to aes objects
- Centralized configuration administration for monitoring and management
- Tweak and present aes gathered data with graphs or reports
- Rss syndication support
<<lessAndutteye Software Suite will let you manage all aspects of the IT infrastructure, helping to ensure availability, monitor, tune, and optimize performance.
Andutteye Software Suite will make it easier to support and maintain your entire enterprise as a single entity from a central point of operation.
The webinterface has oustanding features like:
- css stylesheet and theme support
- Language support
- Support and complete integration for monitoring, management and change module
- Role based access control to aes objects
- Centralized configuration administration for monitoring and management
- Tweak and present aes gathered data with graphs or reports
- Rss syndication support
Download (0.008MB)
Added: 2006-10-19 License: GPL (GNU General Public License) Price:
1102 downloads
Other version of Andutteye Software Suite
License:GPL (GNU General Public License)
License:GPL (GNU General Public License)
License:GPL (GNU General Public License)
License:GPL (GNU General Public License)
License:GPL (GNU General Public License)
License:GPL (GNU General Public License)
Elixir 0.3.0
Elixir is a declarative layer on top of SQLAlchemy. more>>
Elixir is a declarative layer on top of SQLAlchemy. The project is a fairly thin wrapper, which provides the ability to define model objects following the Active Record design pattern, and using a DSL syntax similar to that of the Ruby on Rails ActiveRecord system.
Elixir does not intend to replace SQLAlchemys core features, but instead focuses on providing a simpler syntax for defining model objects when you do not need the full expressiveness of SQLAlchemys manual mapper definitions.
Examples:
The Elixir source distribution includes a sample web application that uses the TurboGears web application framework. The application builds upon the tutorials Movie model to create a simple store for buying movies.
The Video Store sample application also includes an example of how to use Elixir with the TurboGears "identity" framework for security and authorization. If you are planning to use Elixir with your TurboGears application, and need to support authorization using identity, you can use this model as a basis:
from turbogears.database import metadata, session
from elixir import Unicode, DateTime, String, Integer
from elixir import Entity, has_field, using_options
from elixir import has_many, belongs_to, has_and_belongs_to_many
from sqlalchemy import ForeignKey
from datetime import datetime
class Visit(Entity):
has_field(visit_key, String(40), primary_key=True)
has_field(created, DateTime, nullable=False, default=datetime.now)
has_field(expiry, DateTime)
using_options(tablename=visit)
@classmethod
def lookup_visit(cls, visit_key):
return Visit.get(visit_key)
class VisitIdentity(Entity):
has_field(visit_key, String(40), primary_key=True)
has_field(user_id, Integer, ForeignKey(tg_user.user_id, name=user_id_fk, use_alter=True), index=True)
using_options(tablename=visit_identity)
class Group(Entity):
has_field(group_id, Integer, primary_key=True)
has_field(group_name, Unicode(16), unique=True)
has_field(display_name, Unicode(255)),
has_field(created, DateTime, default=datetime.now)
has_and_belongs_to_many(users, of_kind=User, inverse=groups)
has_and_belongs_to_many(permissions, of_kind=Permission, inverse=groups)
using_options(tablename=tg_group)
class User(Entity):
has_field(user_id, Integer, primary_key=True)
has_field(user_name, Unicode(16), unique=True)
has_field(email_address, Unicode(255), unique=True)
has_field(display_name, Unicode(255))
has_field(password, Unicode(40))
has_field(created, DateTime, default=datetime.now)
has_and_belongs_to_many(groups, of_kind=Group, inverse=users)
using_options(tablename=tg_user)
@property
def permissions(self):
perms = set()
for g in self.groups:
perms = perms | set(g.permissions)
return perms
class Permission(Entity):
has_field(permission_id, Integer, primary_key=True)
has_field(permission_name, Unicode(16), unique=True)
has_field(description, Unicode(255))
has_and_belongs_to_many(groups, of_kind=Group, inverse=permissions)
using_options(tablename=permission)
More Elixir examples are coming soon, and we would appreciate any additional sample applications that you could provide to illustrate more complex mappings.
<<lessElixir does not intend to replace SQLAlchemys core features, but instead focuses on providing a simpler syntax for defining model objects when you do not need the full expressiveness of SQLAlchemys manual mapper definitions.
Examples:
The Elixir source distribution includes a sample web application that uses the TurboGears web application framework. The application builds upon the tutorials Movie model to create a simple store for buying movies.
The Video Store sample application also includes an example of how to use Elixir with the TurboGears "identity" framework for security and authorization. If you are planning to use Elixir with your TurboGears application, and need to support authorization using identity, you can use this model as a basis:
from turbogears.database import metadata, session
from elixir import Unicode, DateTime, String, Integer
from elixir import Entity, has_field, using_options
from elixir import has_many, belongs_to, has_and_belongs_to_many
from sqlalchemy import ForeignKey
from datetime import datetime
class Visit(Entity):
has_field(visit_key, String(40), primary_key=True)
has_field(created, DateTime, nullable=False, default=datetime.now)
has_field(expiry, DateTime)
using_options(tablename=visit)
@classmethod
def lookup_visit(cls, visit_key):
return Visit.get(visit_key)
class VisitIdentity(Entity):
has_field(visit_key, String(40), primary_key=True)
has_field(user_id, Integer, ForeignKey(tg_user.user_id, name=user_id_fk, use_alter=True), index=True)
using_options(tablename=visit_identity)
class Group(Entity):
has_field(group_id, Integer, primary_key=True)
has_field(group_name, Unicode(16), unique=True)
has_field(display_name, Unicode(255)),
has_field(created, DateTime, default=datetime.now)
has_and_belongs_to_many(users, of_kind=User, inverse=groups)
has_and_belongs_to_many(permissions, of_kind=Permission, inverse=groups)
using_options(tablename=tg_group)
class User(Entity):
has_field(user_id, Integer, primary_key=True)
has_field(user_name, Unicode(16), unique=True)
has_field(email_address, Unicode(255), unique=True)
has_field(display_name, Unicode(255))
has_field(password, Unicode(40))
has_field(created, DateTime, default=datetime.now)
has_and_belongs_to_many(groups, of_kind=Group, inverse=users)
using_options(tablename=tg_user)
@property
def permissions(self):
perms = set()
for g in self.groups:
perms = perms | set(g.permissions)
return perms
class Permission(Entity):
has_field(permission_id, Integer, primary_key=True)
has_field(permission_name, Unicode(16), unique=True)
has_field(description, Unicode(255))
has_and_belongs_to_many(groups, of_kind=Group, inverse=permissions)
using_options(tablename=permission)
More Elixir examples are coming soon, and we would appreciate any additional sample applications that you could provide to illustrate more complex mappings.
Download (MB)
Added: 2007-03-28 License: MIT/X Consortium License Price:
941 downloads
Text::Typography 0.01
Text::Typography can markup ASCII text with correct typography for HTML. more>>
Text::Typography can markup ASCII text with correct typography for HTML.
SYNOPSIS
use Text::Typography qw(typography);
print typography($text);
This module is a thin wrapper for John Grubers SmartyPants plugin for various CMSs.
SmartyPants is a web publishing utility that translates plain ASCII punctuation characters into "smart" typographic punctuation HTML entities. SmartyPants can perform the following transformations:
Straight quotes ( " and ) into "curly" quote HTML entities
Backticks-style quotes (``like this) into "curly" quote HTML entities
Dashes (-- and ---) into en- and em-dash entities
Three consecutive dots (...) into an ellipsis entity
SmartyPants does not modify characters within < pre >, < code >, < kbd >, < script >, or < math > tag blocks. Typically, these tags are used to display text where smart quotes and other "smart punctuation" would not be appropriate, such as source code or example markup.
typography($text[, $attributes])
Returns a string marked up with the proper HTML entities for proper typography.
For fine grain control over what gets converted, use the $attributes option. The default value is 3.
The following numeric values set a group of options:
0 : do nothing
1 : set all
2 : set all, using old school en- and em- dash shortcuts (-- and ---)
3 : set all, using inverted old school en- and em- dash shortcuts (--- and --)
For even finer control, specify a string of one or more of the following characters:
q : quotes
b : backtick quotes (``double only)
B : backtick quotes (``double and `single)
d : dashes
D : old school dashes
i : inverted old school dashes
e : ellipses
w : convert " entities to " for Dreamweaver users
Backslash Escapes
If you need to use literal straight quotes (or plain hyphens and periods), SmartyPants accepts the following backslash escape sequences to force non-smart punctuation. It does so by transforming the escape sequence into a decimal-encoded HTML entity:
Escape Value Character
------ ----- ---------
\
" " "
. . .
- - -
` ` `
This is useful, for example, when you want to use straight quotes as foot and inch marks: 62" tall; a 17" iMac.
Algorithmic Shortcomings
One situation in which quotes will get curled the wrong way is when apostrophes are used at the start of leading contractions. For example:
Twas the night before Christmas.
In the case above, SmartyPants will turn the apostrophe into an opening single-quote, when in fact it should be a closing one. I dont think this problem can be solved in the general case -- every word processor Ive tried gets this wrong as well. In such cases, its best to use the proper HTML entity for closing single-quotes (’) by hand.
<<lessSYNOPSIS
use Text::Typography qw(typography);
print typography($text);
This module is a thin wrapper for John Grubers SmartyPants plugin for various CMSs.
SmartyPants is a web publishing utility that translates plain ASCII punctuation characters into "smart" typographic punctuation HTML entities. SmartyPants can perform the following transformations:
Straight quotes ( " and ) into "curly" quote HTML entities
Backticks-style quotes (``like this) into "curly" quote HTML entities
Dashes (-- and ---) into en- and em-dash entities
Three consecutive dots (...) into an ellipsis entity
SmartyPants does not modify characters within < pre >, < code >, < kbd >, < script >, or < math > tag blocks. Typically, these tags are used to display text where smart quotes and other "smart punctuation" would not be appropriate, such as source code or example markup.
typography($text[, $attributes])
Returns a string marked up with the proper HTML entities for proper typography.
For fine grain control over what gets converted, use the $attributes option. The default value is 3.
The following numeric values set a group of options:
0 : do nothing
1 : set all
2 : set all, using old school en- and em- dash shortcuts (-- and ---)
3 : set all, using inverted old school en- and em- dash shortcuts (--- and --)
For even finer control, specify a string of one or more of the following characters:
q : quotes
b : backtick quotes (``double only)
B : backtick quotes (``double and `single)
d : dashes
D : old school dashes
i : inverted old school dashes
e : ellipses
w : convert " entities to " for Dreamweaver users
Backslash Escapes
If you need to use literal straight quotes (or plain hyphens and periods), SmartyPants accepts the following backslash escape sequences to force non-smart punctuation. It does so by transforming the escape sequence into a decimal-encoded HTML entity:
Escape Value Character
------ ----- ---------
\
" " "
. . .
- - -
` ` `
This is useful, for example, when you want to use straight quotes as foot and inch marks: 62" tall; a 17" iMac.
Algorithmic Shortcomings
One situation in which quotes will get curled the wrong way is when apostrophes are used at the start of leading contractions. For example:
Twas the night before Christmas.
In the case above, SmartyPants will turn the apostrophe into an opening single-quote, when in fact it should be a closing one. I dont think this problem can be solved in the general case -- every word processor Ive tried gets this wrong as well. In such cases, its best to use the proper HTML entity for closing single-quotes (’) by hand.
Download (0.008MB)
Added: 2007-08-22 License: Other/Proprietary License Price:
507 downloads
XML::DOM::Element 1.44
XML::DOM::Element is an XML element node in XML::DOM. more>>
XML::DOM::Element is an XML element node in XML::DOM.
XML::DOM::Element extends XML::DOM::Node.
By far the vast majority of objects (apart from text) that authors encounter when traversing a document are Element nodes. Assume the following XML document:
< elementExample id="demo" >
< subelement1/ >
< subelement2 >< subsubelement/ >< /subelement2 >
< /elementExample >
When represented using DOM, the top node is an Element node for "elementExample", which contains two child Element nodes, one for "subelement1" and one for "subelement2". "subelement1" contains no child nodes.
Elements may have attributes associated with them; since the Element interface inherits from Node, the generic Node interface method getAttributes may be used to retrieve the set of all attributes for an element. There are methods on the Element interface to retrieve either an Attr object by name or an attribute value by name.
In XML, where an attribute value may contain entity references, an Attr object should be retrieved to examine the possibly fairly complex sub-tree representing the attribute value. On the other hand, in HTML, where all attributes have simple string values, methods to directly access an attribute value can safely be used as a convenience.
<<lessXML::DOM::Element extends XML::DOM::Node.
By far the vast majority of objects (apart from text) that authors encounter when traversing a document are Element nodes. Assume the following XML document:
< elementExample id="demo" >
< subelement1/ >
< subelement2 >< subsubelement/ >< /subelement2 >
< /elementExample >
When represented using DOM, the top node is an Element node for "elementExample", which contains two child Element nodes, one for "subelement1" and one for "subelement2". "subelement1" contains no child nodes.
Elements may have attributes associated with them; since the Element interface inherits from Node, the generic Node interface method getAttributes may be used to retrieve the set of all attributes for an element. There are methods on the Element interface to retrieve either an Attr object by name or an attribute value by name.
In XML, where an attribute value may contain entity references, an Attr object should be retrieved to examine the possibly fairly complex sub-tree representing the attribute value. On the other hand, in HTML, where all attributes have simple string values, methods to directly access an attribute value can safely be used as a convenience.
Download (0.11MB)
Added: 2006-07-17 License: GPL (GNU General Public License) Price:
1194 downloads
Templayer 1.4
Templayer is a layered template library for Python. more>>
Templayer is a layered template library for Python. Templayer currently supports only HTML generation, but its simple design is easily extended to support other file formats.
Templayer was created to offer an alternative to the more common ways of generating dynamic HTML: embedding code within the HTML (PHP etc.) , or embedding HTML within code (traditional CGI).
Neither of these methods allow for a clean separation of the form, or layout, of a page and the function of page generation. Instead of mixing HTML and Python, two rich and extremely expressive languages, we can add a small amount of syntax to each and keep the two separate and coherent.
Enhancements:
- Added a django_form convenience function for using Templayer with the Django web frameworks FormWrapper objects.
- Added an allow_degenerate parameter to Template.__init__. If set to True then a template file that is missing a contents block will be accepted and not cause an exception to be raised.
- Added a special layer name * that treats the entire contents of a template file as a layer.
- Added two new HTML Markup elements: - (pluralize,count,singular_markup,plural_markup) inserts singular_markup if count equals one, and plural_markup otherwise. - (&,entity) inserts the given HTML entity where valid entity values include "gt", "#161" and "#xA9".
- FileLayer.close now returns the file object to which it wrote.
- This simplifies the code required to use Templayer in Django view functions.
- Fixed a really obvious bug in the html_href function.
<<lessTemplayer was created to offer an alternative to the more common ways of generating dynamic HTML: embedding code within the HTML (PHP etc.) , or embedding HTML within code (traditional CGI).
Neither of these methods allow for a clean separation of the form, or layout, of a page and the function of page generation. Instead of mixing HTML and Python, two rich and extremely expressive languages, we can add a small amount of syntax to each and keep the two separate and coherent.
Enhancements:
- Added a django_form convenience function for using Templayer with the Django web frameworks FormWrapper objects.
- Added an allow_degenerate parameter to Template.__init__. If set to True then a template file that is missing a contents block will be accepted and not cause an exception to be raised.
- Added a special layer name * that treats the entire contents of a template file as a layer.
- Added two new HTML Markup elements: - (pluralize,count,singular_markup,plural_markup) inserts singular_markup if count equals one, and plural_markup otherwise. - (&,entity) inserts the given HTML entity where valid entity values include "gt", "#161" and "#xA9".
- FileLayer.close now returns the file object to which it wrote.
- This simplifies the code required to use Templayer in Django view functions.
- Fixed a really obvious bug in the html_href function.
Download (0.027MB)
Added: 2006-09-28 License: LGPL (GNU Lesser General Public License) Price:
1122 downloads
Secleted [ 0 ] software to compare
Copyright Notice:
Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future software development. The above entity search only lists software in full, demo and trial versions for free download. Download links are directly from our mirror sites or publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed