|
From: <ix...@us...> - 2001-12-19 05:31:14
|
ixjonez 01/12/18 21:31:13
Modified: lib/LiveFrame/Lab Tag: Ó `¶@h¶@h¶@§ § Ðy Ðy øp
Hx y y ¶@¶@ Æ Æ
¶@ ¶@¨¶@¨¶@°¶@°¶@¸´ 0Ç
À¶@À¶@ȶ@ȶ@ж@ж@ض@ض@à¶@à¶@è¶@è¶@ð¶@ð¶@ø¶@ø¶@
/tmp/cvs-serv8167/lab/lib/LiveFrame/Lab/GalleryAction.pm
No tag GalleryAction.pm
Log:
work in progress: stub creating the gallery on disk
Revision Changes Path
No revision
No revision
No revision
No revision
No revision
No revision
No revision
No revision
No revision
No revision
No revision
No revision
No revision
No revision
No revision
1.3 +21 -1 lab/lib/LiveFrame/Lab/GalleryAction.pm
Index: /tmp/cvs-serv8167/lab/lib/LiveFrame/Lab/GalleryAction.pm
===================================================================
RCS file: /cvsroot/liveframe/lab/lib/LiveFrame/Lab/GalleryAction.pm,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- /tmp/cvs-serv8167/lab/lib/LiveFrame/Lab/GalleryAction.pm 2001/12/02 12:48:11 1.2
+++ /tmp/cvs-serv8167/lab/lib/LiveFrame/Lab/GalleryAction.pm 2001/12/19 05:31:12 1.3
@@ -4,11 +4,31 @@
use strict;
use LiveFrame::Action ();
+use LiveFrame::Site ();
+use LiveFrame::Gallery ();
@LiveFrame::Lab::GalleryAction::ISA = ('LiveFrame::Action');
sub perform {
- my ($self, $lab) = @_;
+ my ($self, $lab, $form) = @_;
+
+ my $site = LiveFrame::Site->new($form->site_dir());
+ $site->galleries();
+
+ my $gallery = LiveFrame::Gallery->new($site, $form->gallery_dir());
+ $gallery->title($form->gallery_title());
+ $gallery->description($form->gallery_description());
+
+ my $pos = $form->gallery_position();
+ if ($pos eq 'hide') {
+ $gallery->hide();
+ }
+
+# $gallery->create();
+
+# $site->insert_gallery($pos);
+
+ use Data::Denter; warn Denter $gallery;
return $lab->send_page('image');
}
No revision
No revision
1.3 +21 -1 lab/lib/LiveFrame/Lab/GalleryAction.pm
Index: GalleryAction.pm
===================================================================
RCS file: /cvsroot/liveframe/lab/lib/LiveFrame/Lab/GalleryAction.pm,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- GalleryAction.pm 2001/12/02 12:48:11 1.2
+++ GalleryAction.pm 2001/12/19 05:31:12 1.3
@@ -4,11 +4,31 @@
use strict;
use LiveFrame::Action ();
+use LiveFrame::Site ();
+use LiveFrame::Gallery ();
@LiveFrame::Lab::GalleryAction::ISA = ('LiveFrame::Action');
sub perform {
- my ($self, $lab) = @_;
+ my ($self, $lab, $form) = @_;
+
+ my $site = LiveFrame::Site->new($form->site_dir());
+ $site->galleries();
+
+ my $gallery = LiveFrame::Gallery->new($site, $form->gallery_dir());
+ $gallery->title($form->gallery_title());
+ $gallery->description($form->gallery_description());
+
+ my $pos = $form->gallery_position();
+ if ($pos eq 'hide') {
+ $gallery->hide();
+ }
+
+# $gallery->create();
+
+# $site->insert_gallery($pos);
+
+ use Data::Denter; warn Denter $gallery;
return $lab->send_page('image');
}
|