source: extras/pLoader/trunk/src/Uploader/PWG.pm @ 3284

Last change on this file since 3284 was 2661, checked in by ronosman, 16 years ago
  • remove Save and Cancel buttons from properties panels. Use callbacks instead.
  • limit Global settings panel instances to one.
  • fix resize crash with huge images. use Wx::Image methods when IM fails.
  • add categories is implemented in tree control. right click popup menu with Add an Refresh commands.
  • Property svn:eol-style set to LF
File size: 2.1 KB
Line 
1# +-----------------------------------------------------------------------+
2# | pLoader - a Perl photo uploader for Piwigo                            |
3# +-----------------------------------------------------------------------+
4# | Copyright(C) 2008      Piwigo Team                  http://piwigo.org |
5# +-----------------------------------------------------------------------+
6# | This program is free software; you can redistribute it and/or modify  |
7# | it under the terms of the GNU General Public License as published by  |
8# | the Free Software Foundation                                          |
9# |                                                                       |
10# | This program is distributed in the hope that it will be useful, but   |
11# | WITHOUT ANY WARRANTY; without even the implied warranty of            |
12# | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
13# | General Public License for more details.                              |
14# |                                                                       |
15# | You should have received a copy of the GNU General Public License     |
16# | along with this program; if not, write to the Free Software           |
17# | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
18# | USA.                                                                  |
19# +-----------------------------------------------------------------------+
20package Uploader::PWG;
21use strict;
22use Data::Dumper;
23use Uploader::PWG::WebServices;
24use Uploader::PWG::Categories;
25use base qw/
26           Uploader::Object
27           Class::Accessor::Fast
28           Uploader::PWG::WebServices
29           Uploader::PWG::Categories
30           /;
31
32__PACKAGE__->mk_accessors( 
33    qw/
34           site_url
35           site_username
36           site_password
37      / 
38);
39
40$|=1;
41
42
43sub Init {
44    my ( $self ) = @_;
45
46    # for web services   
47    $self->SUPER::Init();
48   
49    $self->RefreshCategories;   
50
51}
52
53sub RefreshCategories {
54    my ( $self ) = @_;
55
56    $self->categories(
57        $self->prepare_items(
58            $self->GetCategories
59        )
60    );
61}
62
63
641;
Note: See TracBrowser for help on using the repository browser.