Skip to content

Instantly share code, notes, and snippets.

View perlDreamer's full-sized avatar

Colin Kuskie perlDreamer

View GitHub Profile
YAHOO.namespace('WebGUI.Form');
YAHOO.WebGUI.Form.DatePicker = {
init: function() {
YAHOO.WebGUI.Form.DatePicker.i18n = new WebGUI.i18n({
namespaces : {
'Form_Date' : [
'Choose a date'
],
'DateTime' : [
'january', 'july',
YAHOO.namespace('WebGUI.Form');
YAHOO.WebGUI.Form.DatePicker = {
init: function() {
YAHOO.WebGUI.Form.DatePicker.i18n = new WebGUI.i18n({
namespaces : {
'Form_Date' : [
'Choose a date'
],
'DateTime' : [
'january', 'july',
[root@localhost sbin]# wgd -F /data/WebGUI/etc/mywebgui.conf import ~colink/Download/root_import_storymanager.wgpkg
utf8 "\x8B" does not map to Unicode at /usr/local/lib/perl5/site_perl/5.10.0/WGDev/Command/Import.pm line 18, <$fh> chunk 1.
Use of uninitialized value $class in substitution (s///) at /usr/local/lib/perl5/site_perl/5.10.0/WGDev/Asset.pm line 67.
Bad asset class specified
my $paginator = $self->entryClass->getPaginator($self);
foreach my $entryProperties ( @{ $paginator->getPageData} ) {
my $entry = $self->entryClass->new($self);
$entry->setFromHash($entryProperties);
my $entryData = $entry->fields;
for my $field (@{ $fields }) {
my $form = $self->_createForm($fieldConfig->{$field}, $entryData->{$field});
if ($form->can('getStorageLocation')) {
my $storage = $form->getStorageLocation;
$storage->delete if $storage;
sub setDataByCallback {
my $self = shift;
my $callback = shift;
my $pageNumber = $self->getPageNumber;
my $rowsPerPage = $self->{_rpp};
my $start = ( ($pageNumber - 1) * $rowsPerPage );
my $obj = $callback->($start, $rowsPerPage);
1..8
ok 1 - The object isa WebGUI::Asset::Wobject::InOutBoard
Use of uninitialized value $url in hash element at /data/webgui/t/Asset/Wobject/../../lib/WebGUI/Test.pm line 377.
ok 2 - www_setStatus: set status for a user
ok 3 - ... set statusLog for a user
ok 4 - ... no status table entry made when the users's status is blank
ok 5 - ... no statusLog set when status is blank
ok 6
ok 7 - purge: cleans up status table
ok 8 - ... cleans up statusLog table
commit 62d4e7ed3baa52ae505cba007dc841c6b4f9a927
Author: Colin Kuskie <colink@perldreamer.com>
Date: Wed Sep 23 21:09:38 2009 -0700
Bad hack to make testing work again. Need some cleaner way to init the module.
diff --git a/t/lib/WebGUI/Test.pm b/t/lib/WebGUI/Test.pm
index 092ab63..8f54a57 100644
--- a/t/lib/WebGUI/Test.pm
+++ b/t/lib/WebGUI/Test.pm
diff --git a/sbin/syncToCdn.pl b/sbin/syncToCdn.pl
index 0673962..b94daa0 100644
--- a/sbin/syncToCdn.pl
+++ b/sbin/syncToCdn.pl
@@ -20,6 +20,7 @@ use Fcntl ':flock';
use Getopt::Long;
use WebGUI::Session;
use WebGUI::Storage;
+use Pod::Usage;
# Main test session: Fj0GhuHNA1LQ6EvfqjUYRA
# session ids:
# [
# 'Fj0GhuHNA1LQ6EvfqjUYRA',
# 'IRNXlYYjE_lPXZYA3jKXqw',
# 'QU2jgQmwJiKchbwuIQgzfg',
# 'rraV5-OsolH1HZf_mrvOPw'
# ]
# session scratch ids:
# [
Deleting file cache.
cannot remove directory for /tmp/WebGUICache/www.k3b.org.conf/wE401EXjGiFZwb-riCuiEg: Directory not empty at upgrade.pl line
148
cannot remove directory for /tmp/WebGUICache/www.k3b.org.conf: Directory not empty at upgrade.pl line 148
cannot remove directory for /tmp/WebGUICache/betatraining.plainblack.com.conf: Directory not empty at upgrade.pl line 148
cannot remove directory for /tmp/WebGUICache: Directory not empty at upgrade.pl line 148