Ignore:
Timestamp:
Sep 1, 2010, 6:48:53 PM (14 years ago)
Author:
mlg
Message:

Bug correction :
bug:0001837 : there is now a default translation file (in english), so the application won't crash when a translation is not found
bug:0001833 : the accents are manage when creating a new category
bug:0001832 : on a right click on the categories list, the selection is now visible
bug:0001830 : there is no bug on refreshing the categories tree

Features :
feature:001828 : exif and iptc tags are kept after resizing an image
feature:001827 : pwg.images.addChunk is now fully used : images are split into chunks before being sent

Other features :

  • The user can manage his preferences :

-The web images size
-The chunks size

  • The user can save the login informations (url, login, password) /!\ in a plain text file !
File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/jiwigo/trunk/src/main/java/fr/mael/jiwigo/dao/CategoryDao.java

    r6821 r6831  
    5252     */
    5353    private static CategoryDao instance;
    54     /**
    55      * Cache. non utilisé pour le moment
    56      */
    57     private List<Category> cache;
    5854
    5955    /**
     
    8177     * @throws IOException
    8278     */
    83     public List<Category> lister(boolean rafraichir, boolean recursive) throws IOException {
    84         if (cache == null || rafraichir) {
    85             Document doc = Main.sessionManager.executerReturnDocument(MethodsEnum.LISTER_CATEGORIES.getLabel(),
    86                     "recursive", String.valueOf(recursive));
    87             Element element = doc.getRootElement().getChild("categories");
    88             List<Element> listElement = (List<Element>) element.getChildren("category");
    89             ArrayList<Category> categories = new ArrayList<Category>();
    90             for (Element cat : listElement) {
    91                 Category myCat = new Category(cat);
    92                 categories.add(myCat);
    93             }
    94             this.cache = categories;
     79    public List<Category> lister(boolean recursive) throws IOException {
     80        Document doc = Main.sessionManager.executerReturnDocument(MethodsEnum.LISTER_CATEGORIES.getLabel(),
     81                "recursive", String.valueOf(recursive));
     82        Element element = doc.getRootElement().getChild("categories");
     83        List<Element> listElement = (List<Element>) element.getChildren("category");
     84        ArrayList<Category> categories = new ArrayList<Category>();
     85        for (Element cat : listElement) {
     86            Category myCat = new Category(cat);
     87            categories.add(myCat);
    9588        }
    96         return cache;
     89        return categories;
    9790    }
    9891
Note: See TracChangeset for help on using the changeset viewer.