Apache-SdnFw
view release on metacpan or search on metacpan
0.92 Fri Mar 25 08:07:00 2011
- make username login lowercase all the time
- allow login cookies to live for more than a day with ETERNAL_COOKIE
- move crypt key out to CRYPT_KEY in site config file
- only load javascript files when needed
- only load favicon.ico if it exists
- load the css into the head instead of including it as a link
- in order to reduce multiple requests
- read apache min/max/clients/etc settings from sdnfw.conf file
- extend format_percent to allow control over number of decimals shown
- add file_path, filename, and content_type automatically when doing a csv db query
- add in_to_hash function
- add no_css flag to not include css in header
- break out common javascript into individual files and rework
add_js functionality a bit
- add html_caption_scroll function to make changing tbody elements scrollable
- add /code to PERL5LIB in apachectl to help with Apache::StatINC issues
- add html_input_number and html_input_email
- added object menu template selection and css and footer template
- added object head option
lib/Apache/SdnFw/js/effects.js view on Meta::CPAN
};
Element.collectTextNodesIgnoreClass = function(element, className) {
return $A($(element).childNodes).collect( function(node) {
return (node.nodeType==3 ? node.nodeValue :
((node.hasChildNodes() && !Element.hasClassName(node,className)) ?
Element.collectTextNodesIgnoreClass(node, className) : ''));
}).flatten().join('');
};
Element.setContentZoom = function(element, percent) {
element = $(element);
element.setStyle({fontSize: (percent/100) + 'em'});
if (Prototype.Browser.WebKit) window.scrollBy(0,0);
return element;
};
Element.getInlineOpacity = function(element){
return $(element).style.opacity || '';
};
Element.forceRerendering = function(element) {
try {
lib/Apache/SdnFw/js/effects.js view on Meta::CPAN
}
});
// for backwards compatibility
Effect.MoveBy = function(element, toTop, toLeft) {
return new Effect.Move(element,
Object.extend({ x: toLeft, y: toTop }, arguments[3] || { }));
};
Effect.Scale = Class.create(Effect.Base, {
initialize: function(element, percent) {
this.element = $(element);
if (!this.element) throw(Effect._elementDoesNotExistError);
var options = Object.extend({
scaleX: true,
scaleY: true,
scaleContent: true,
scaleFromCenter: false,
scaleMode: 'box', // 'box' or 'contents' or { } with provided values
scaleFrom: 100.0,
scaleTo: percent
}, arguments[2] || { });
this.start(options);
},
setup: function() {
this.restoreAfterFinish = this.options.restoreAfterFinish || false;
this.elementPositioning = this.element.getStyle('position');
this.originalStyle = { };
['top','left','width','height','fontSize'].each( function(k) {
this.originalStyle[k] = this.element.style[k];
lib/Apache/SdnFw/js/tinymce/changelog.txt view on Meta::CPAN
Fixed so dynamic loading doesn't require eval calls on non IE browsers for better Air support.
Fixed bug where the editor wasn't treated as empty if the remaining paragraph had attributes.
Fixed bug where id's of elements was removed ones they got wrapped in paragraphs. Patch contributed by ChronoZ.
Fixed bug where WebKit browsers where placing list elements inside paragraph elements.
Fixed bug where inserting images or links would produce absolute urls on WebKit browsers.
Fixed bug where values for checked, readonly, disabled and selected attributes was incorrect on IE.
Fixed bug where positive values for checked, readonly, disabled and selected attributes wasn't forced to valid values.
Fixed bug where selecting the first option in a native select box would produce an undefined error.
Fixed bug where tabindex 32768 could be outputted on IE if element attributes where cloned.
Fixed bug where the media dialogs preview window would display incorrect contents due to duplicate clsid prefixes.
Fixed bug where non pixel or percent heights for textarea elements would produce errors on IE.
Fixed bug where cdata sections in script elements wasn't handled correctly.
Fixed bug where nowrap of table cells would produce a 65535 value output.
Fixed bug where media plugin would produce an error if you selected the first item in the items list.
Fixed bug where media plugin would modify links with the item _value in them.
Fixed so table width/height is better forced if inline_styles is enabled. Patch contributed by daKmoR.
Fixed css for IE 8 such as opacity and other rendering quirks.
Version 3.2.0.2 (2008-10-02)
Fixed bug where the SelectBox and NativeSelectBox wasn't updated correctly if undefined was passed to them.
Fixed bug where the style dropdown wasn't correctly changed back to it's original state when element had no class.
Fixed bug where multiple pending font styles wasn't handled correctly.
lib/Apache/SdnFw/js/tinymce/changelog.txt view on Meta::CPAN
Removed the util/mclayer.js file since it's no longer used by any of the TinyMCE dialogs and is considered deprecated.
Version 3.0.5 (2008-03-12)
Added new black skin variant to the o2k7 skin contributed by Stefan Moonen.
Added new explode method to the tinymce core class. This does a split but removed whitespace it also defaults to a , delimiter.
Added new detection logic for IE 8 standards mode into the DOMUtils class strMode can now be checked to see if that mode is on/off.
Added new noscale option value for the scale select box for Flash in the media plugin.
Fixed bug where the menu for the ColorSplitButton wasn't removed when the editor was removed.
Fixed bug where font colors couldn't be edited correctly since the style of the element didn't get updated correctly.
Fixed bug where class of elements would get lost when TinyMCE was fixing incorrect HTML markup.
Fixed bug where table editing would produce double height values.
Fixed bug where width style value wouldn't be removed if you switched width unit from cm/em to pixels or percent.
Fixed bug where the search/replace input box wasn't auto focused like the other dialogs.
Fixed bug where the old mceAddControl command would use the fullscreen settings next time it created an instance.
Fixed bug where multiple lines where added to the target cell if you merged multiple empty cells.
Fixed bug where drop down menus would be incorrectly positioned inside scrollable divs.
Fixed bug where the separators of the silver skin variant didn't display correctly in IE 6.
Fixed bug where createStyleSheet seems to load scripts at opposite order in some IE versions.
Fixed bug where directionality could produce odd results for the UI and the dialogs.
Fixed bug where the DOM serializer wouldn't serialize custom namespaced attributes in IE 6 using the *[*] valid elements rule.
Fixed bug where table caption would be inserted after the thead element if you swapped a tr to be inside the thead.
Fixed bug where the youtube detection logic for the media plugin was to generic.
lib/Apache/SdnFw/lib/Core.pm view on Meta::CPAN
=cut
my $s = shift;
my $value = shift;
return $value if ($value eq '');
return 'Yes' if ($value);
return 'No' if (!$value);
}
sub format_percent {
=head2 format_percent
my $string = $s->format_percent($number);
Given 0.123, returns 12.3%.
=cut
my $s = shift;
my $number = shift;
my $d = shift;
$d = 1 unless(defined($d));
lib/Apache/SdnFw/tt/display.tt view on Meta::CPAN
<td>[% IF f.r && f.i %]
<a href="[% s.ubase %]/[% f.r %]/display?[% f.i %]=[% hash.${f.i} %]">[% hash.${f.k} %]</a>
[% ELSIF f.textarea %]
<pre>[% hash.${f.k} %]</pre>
[% ELSE %]
[% IF f.verify == 'phone' %][% s.format_phone(hash.${f.k}) %]
[% ELSIF f.boolean %]
[% s.format_boolean(hash.${f.k}) %]
[% ELSIF f.textarea %]
[% s.format_text(hash.${f.k}) %]
[% ELSIF f.format == 'percent' %]
[% s.format_percent(hash.${f.k}) %]
[% ELSE %][% hash.${f.k} %][% END %]
[% END %]</td>
</tr>
[% END -%]
</tbody>
</table>
</div>
[% FOREACH r IN s.o.relations %]
<div class="floatleft">
<table>
lib/Apache/SdnFw/tt/display.tt.xml view on Meta::CPAN
<[% s.object %]>
<[% s.o.id %]>[% hash.${s.o.id} %]</[% s.o.id %]>
[% FOREACH f IN s.o.fields -%]
<[% f.k %]>[% IF f.r && f.i %]
<[% f.i %]>[% hash.${f.i} %]</[% f.i %]>
<name>[% s.escape(hash.${f.k}) %]</name>[% ELSE %]
[% IF f.verify == 'phone' %][% s.format_phone(hash.${f.k}) %]
[% ELSIF f.boolean %]
[% s.format_boolean(hash.${f.k}) %]
[% ELSIF f.format == 'percent' %]
[% s.format_percent(hash.${f.k}) %]
[% ELSE %][% s.escape(hash.${f.k}) %][% END %]
[% END %]</[% f.k %]>
[% END %]
<relations>
[% FOREACH r IN s.o.relations %]
<[% r.t %]>
[% FOREACH d IN hash.relation.${r.t} -%]
<[% r.o %]>
<object>[% r.o %]</object>
<[% r.k %]>[% d.${r.k} %]</[% r.k %]>
( run in 0.470 second using v1.01-cache-2.11-cpan-10c994e2082 )