From 7efeada6278513554147ee692a7aab75d4c0dd15 Mon Sep 17 00:00:00 2001 From: helge Date: Tue, 23 Aug 2005 21:26:35 +0000 Subject: [PATCH] prepared RSS10 feed git-svn-id: http://svn.opengroupware.org/SOPE/trunk@1069 e4a50df8-12e2-0310-a44c-efbce7f8a7e3 --- .../samples/CoreDataBlog/GNUmakefile | 8 +- .../CoreDataBlog/MonthPage.wo/MonthPage.wod | 2 +- sope-appserver/samples/CoreDataBlog/RSS10.m | 44 +++++ .../samples/CoreDataBlog/RSS10.wo/RSS10.html | 39 +++++ .../samples/CoreDataBlog/RSS10.wo/RSS10.wod | 150 ++++++++++++++++ .../samples/CoreDataBlog/RSS10.wo/RSS10.woo | 33 ++++ .../samples/CoreDataBlog/mulle-nat.rdf | 164 ++++++++++++++++++ 7 files changed, 437 insertions(+), 3 deletions(-) create mode 100644 sope-appserver/samples/CoreDataBlog/RSS10.m create mode 100644 sope-appserver/samples/CoreDataBlog/RSS10.wo/RSS10.html create mode 100644 sope-appserver/samples/CoreDataBlog/RSS10.wo/RSS10.wod create mode 100644 sope-appserver/samples/CoreDataBlog/RSS10.wo/RSS10.woo create mode 100644 sope-appserver/samples/CoreDataBlog/mulle-nat.rdf diff --git a/sope-appserver/samples/CoreDataBlog/GNUmakefile b/sope-appserver/samples/CoreDataBlog/GNUmakefile index a1bc32ce..48dd0ad5 100644 --- a/sope-appserver/samples/CoreDataBlog/GNUmakefile +++ b/sope-appserver/samples/CoreDataBlog/GNUmakefile @@ -13,9 +13,13 @@ CoreDataBlog_OBJC_FILES += \ Session.m \ Main.m \ \ - MonthPage.m + MonthPage.m \ + RSS10.m \ -CoreDataBlog_COMPONENTS += Main.wo MonthPage.wo +CoreDataBlog_COMPONENTS += \ + Main.wo \ + MonthPage.wo \ + RSS10.wo CoreDataBlog_COREDATA_MODELS += \ BlogDemo_DataModel.xcdatamodel diff --git a/sope-appserver/samples/CoreDataBlog/MonthPage.wo/MonthPage.wod b/sope-appserver/samples/CoreDataBlog/MonthPage.wo/MonthPage.wod index 466501be..357e3904 100644 --- a/sope-appserver/samples/CoreDataBlog/MonthPage.wo/MonthPage.wod +++ b/sope-appserver/samples/CoreDataBlog/MonthPage.wo/MonthPage.wod @@ -73,7 +73,7 @@ SetupCalDayDisplayGroup: WOCopyValue { "calendarDisplayGroup.queryMax.creationDate" = "day.tomorrow.beginOfDay"; }; finishValues = { - dummy = "calendarDisplayGroup.qualifyDataSource"; + // dummy = "calendarDisplayGroup.qualifyDataSource"; }; } diff --git a/sope-appserver/samples/CoreDataBlog/RSS10.m b/sope-appserver/samples/CoreDataBlog/RSS10.m new file mode 100644 index 00000000..332d0866 --- /dev/null +++ b/sope-appserver/samples/CoreDataBlog/RSS10.m @@ -0,0 +1,44 @@ +/* + Copyright (C) 2005 SKYRIX Software AG + + This file is part of SOPE. + + SOPE is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License as published by the + Free Software Foundation; either version 2, or (at your option) any + later version. + + SOPE is distributed in the hope that it will be useful, but WITHOUT ANY + WARRANTY; without even the implied warranty of MERCHANTABILITY or + FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public + License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with SOPE; see the file COPYING. If not, write to the + Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA + 02111-1307, USA. +*/ + +#include + +@class NSArray; + +@interface RSS10 : WOComponent +{ +} + +@end + +#include "WOSession+CoreData.h" +#include +#include "common.h" + +@implementation RSS10 + +/* accessors */ + +- (NSCalendarDate *)date { + return [NSCalendarDate date]; +} + +@end /* RSS10 */ diff --git a/sope-appserver/samples/CoreDataBlog/RSS10.wo/RSS10.html b/sope-appserver/samples/CoreDataBlog/RSS10.wo/RSS10.html new file mode 100644 index 00000000..671967a4 --- /dev/null +++ b/sope-appserver/samples/CoreDataBlog/RSS10.wo/RSS10.html @@ -0,0 +1,39 @@ + +<#SetContentType/> + + + <#FeedTitle/> + http://www.mulle-kybernetik.com/weblog/ + + en-us + + <#FeedDate/> + + + + + <#ResourceList> + + + + + + + <#ResourceList> + + <#ItemTitle /> + <#ItemHref /> + <#ItemDescription/> + <#ItemDcSubject /> + <#ItemDcCreator /> + <#ItemDcDate /> + + + diff --git a/sope-appserver/samples/CoreDataBlog/RSS10.wo/RSS10.wod b/sope-appserver/samples/CoreDataBlog/RSS10.wo/RSS10.wod new file mode 100644 index 00000000..a3e5298f --- /dev/null +++ b/sope-appserver/samples/CoreDataBlog/RSS10.wo/RSS10.wod @@ -0,0 +1,150 @@ +// bind template to controller + +SetContentType: WOSetHeader { + header = "content-type"; + //value = "application/rdf+xml"; + value = "text/xml"; +} + +FeedTitle: WOString { + value = application.name; +} +FeedDate: WOString { + value = date; + dateformat = "%Y-%m-%dT%H:%M:%S+00:00"; +} + + +ItemHref: WOString { value = item.href; } +ItemTitle: WOString { value = item.title; } +ItemDescription: WOString { value = item.description; } +ItemDcSubject: WOString { value = item.dcSubject; } +ItemDcCreator: WOString { value = item.dcCreator; } +ItemDcDate: WOString { value = item.dcDate; } + + +ResourceList: WORepetition { + list = ( + { href = "http://www.mulle-kybernetik.com/weblog/archives/000681.html"; + title = "'Interesting' Example Code"; + link = ""; + description = "From an AudioCore code sample: static void BuildDeviceMenu(AudioDeviceList *devlist, NSPopUpButton *menu, AudioDeviceID initSel) { [menu removeAllItems]; AudioDeviceList::DeviceList &#38;thelist = devlist->GetList(); int index = 0; for (AudioDeviceList::DeviceList::iterator i = thelist.begin(); i != thelist.end(); ++i, ++index) { while([menu itemWithTitle:[NSString stringWithCString: (*i).mName]] !=..."; + dcSubject = ""; + dcCreator = "Nat!"; + dcDate = "2005-08-04T00:55:55+00:00"; + }, + { href = "http://www.mulle-kybernetik.com/weblog/archives/000680.html"; + title = ""; + link = ""; + description = ""; + dcSubject = ""; + dcCreator = "Nat!"; + dcDate = "2005-08-04T00:55:55+00:00"; + }, + { href = "http://www.mulle-kybernetik.com/weblog/archives/000677.html"; + title = ""; + link = ""; + description = ""; + dcSubject = ""; + dcCreator = "Nat!"; + dcDate = "2005-08-04T00:55:55+00:00"; + }, + { href = "http://www.mulle-kybernetik.com/weblog/archives/000676.html"; + title = ""; + link = ""; + description = ""; + dcSubject = ""; + dcCreator = "Nat!"; + dcDate = "2005-08-04T00:55:55+00:00"; + }, + { href = "http://www.mulle-kybernetik.com/weblog/archives/000675.html"; + title = ""; + link = ""; + description = ""; + dcSubject = ""; + dcCreator = "Nat!"; + dcDate = "2005-08-04T00:55:55+00:00"; + }, + { href = "http://www.mulle-kybernetik.com/weblog/archives/000674.html"; + title = ""; + link = ""; + description = ""; + dcSubject = ""; + dcCreator = "Nat!"; + dcDate = "2005-08-04T00:55:55+00:00"; + }, + { href = "http://www.mulle-kybernetik.com/weblog/archives/000673.html"; + title = ""; + link = ""; + description = ""; + dcSubject = ""; + dcCreator = "Nat!"; + dcDate = "2005-08-04T00:55:55+00:00"; + }, + { href = "http://www.mulle-kybernetik.com/weblog/archives/000672.html"; + title = ""; + link = ""; + description = ""; + dcSubject = ""; + dcCreator = "Nat!"; + dcDate = "2005-08-04T00:55:55+00:00"; + }, + { href = "http://www.mulle-kybernetik.com/weblog/archives/000671.html"; + title = ""; + link = ""; + description = ""; + dcSubject = ""; + dcCreator = "Nat!"; + dcDate = "2005-08-04T00:55:55+00:00"; + }, + { href = "http://www.mulle-kybernetik.com/weblog/archives/000669.html"; + title = ""; + link = ""; + description = ""; + dcSubject = ""; + dcCreator = "Nat!"; + dcDate = "2005-08-04T00:55:55+00:00"; + }, + { href = "http://www.mulle-kybernetik.com/weblog/archives/000668.html"; + title = ""; + link = ""; + description = ""; + dcSubject = ""; + dcCreator = "Nat!"; + dcDate = "2005-08-04T00:55:55+00:00"; + }, + { href = "http://www.mulle-kybernetik.com/weblog/archives/000667.html"; + title = ""; + link = ""; + description = ""; + dcSubject = ""; + dcCreator = "Nat!"; + dcDate = "2005-08-04T00:55:55+00:00"; + }, + { href = "http://www.mulle-kybernetik.com/weblog/archives/000664.html"; + title = ""; + link = ""; + description = ""; + dcSubject = ""; + dcCreator = "Nat!"; + dcDate = "2005-08-04T00:55:55+00:00"; + }, + { href = "http://www.mulle-kybernetik.com/weblog/archives/000663.html"; + title = ""; + link = ""; + description = ""; + dcSubject = ""; + dcCreator = "Nat!"; + dcDate = "2005-08-04T00:55:55+00:00"; + }, + { href = "http://www.mulle-kybernetik.com/weblog/archives/000660.html"; + title = ""; + link = ""; + description = ""; + dcSubject = ""; + dcCreator = "Nat!"; + dcDate = "2005-08-04T00:55:55+00:00"; + } + ); + item = item; +} diff --git a/sope-appserver/samples/CoreDataBlog/RSS10.wo/RSS10.woo b/sope-appserver/samples/CoreDataBlog/RSS10.wo/RSS10.woo new file mode 100644 index 00000000..9bf84249 --- /dev/null +++ b/sope-appserver/samples/CoreDataBlog/RSS10.wo/RSS10.woo @@ -0,0 +1,33 @@ +{ + variables = { + recentPostsDisplayGroup = { + class = WODisplayGroup; + dataSource = { + class = EOCoreDataSource; + editingContext = session.defaultManagedObjectContext; + fetchSpecification = { + class = EOFetchSpecification; + entityName = Post; + fetchLimit = 10; + isDeep = YES; + sortOrderings = ( + { class = EOSortOrdering; + key = "creationDate"; + selector = "compareDescending:"; + } + ); + qualifier = { + class = "EOKeyValueQualifier"; + key = "creationDate"; + value = ""; + }; + }; + }; + formatForLikeQualifier = "%@*"; + localKeys = (); + numberOfObjectsPerBatch = 0; + selectsFirstObjectAfterFetch = YES; + fetchesOnLoad = YES; + }; + }; +} diff --git a/sope-appserver/samples/CoreDataBlog/mulle-nat.rdf b/sope-appserver/samples/CoreDataBlog/mulle-nat.rdf new file mode 100644 index 00000000..7966176b --- /dev/null +++ b/sope-appserver/samples/CoreDataBlog/mulle-nat.rdf @@ -0,0 +1,164 @@ + + + + + +Nat!'s Web Journal +http://www.mulle-kybernetik.com/weblog/ + +en-us + +2005-08-23T00:56:21+01:00 + + + + + + + + + + + + + + + + + + + + + + + + + +"Interesting" Example Code +http://www.mulle-kybernetik.com/weblog/archives/000681.html +From an AudioCore code sample: static void BuildDeviceMenu(AudioDeviceList *devlist, NSPopUpButton *menu, AudioDeviceID initSel) { [menu removeAllItems]; AudioDeviceList::DeviceList &#38;thelist = devlist->GetList(); int index = 0; for (AudioDeviceList::DeviceList::iterator i = thelist.begin(); i != thelist.end(); ++i, ++index) { while([menu itemWithTitle:[NSString stringWithCString: (*i).mName]] !=... + +Nat! +2005-08-23T00:56:21+01:00 + + +Server migration +http://www.mulle-kybernetik.com/weblog/archives/000680.html +The Mulle kybernetiK server will move tomorrow. So you can expect some downtime.... + +Nat! +2005-08-19T00:59:00+01:00 + + +Zero Filling - Part VII - Hyperthreads a related problem +http://www.mulle-kybernetik.com/weblog/archives/000677.html +A long time ago, about two years back, I was unhappy about zero filling. I am still unhappy about it. One of the main arguments for zero filling is security. On a multi-user system you enter your password, which invariably... + +Nat! +2005-08-09T23:40:54+01:00 + + +The Mac swears at you! +http://www.mulle-kybernetik.com/weblog/archives/000676.html + I think this could be worded in much more explecitive and redundant way, still giving away as little information as possible: %@!!! The %@ preferences pane could not be removed because a %@ error occurred. Something apparently has gone... + +Nat! +2005-08-04T23:33:10+01:00 + + +Grow RPG +http://www.mulle-kybernetik.com/weblog/archives/000675.html + There is a new version of Grow available. It's as good as the old one and I solved it :)... + +Nat! +2005-07-25T00:05:50+01:00 + + +Wie schlecht ist das denn ? +http://www.mulle-kybernetik.com/weblog/archives/000674.html + + +Nat! +2005-07-18T00:19:47+01:00 + + +Garageband Latency, excellent +http://www.mulle-kybernetik.com/weblog/archives/000673.html +I was wondering how much latency there is when using Garageband. If I am playing with the metronome, the metronome sound bits get "rendered" into a buffer. That incurs a little lag as sounds are usually rendered a few samples... + +Nat! +2005-07-15T02:11:50+01:00 + + +Home Network Suckage Supreme +http://www.mulle-kybernetik.com/weblog/archives/000672.html +In my old flat I had like 20 meters of cable canal to connect my room that contained all the computers to the DSL modem in another room. The DSL line went into the linux router, and that was it.... + +Nat! +2005-07-07T02:44:56+01:00 + + +Whatever happened to Asteroid ? +http://www.mulle-kybernetik.com/weblog/archives/000671.html + It's exactly what I want to connect my guitar with my Mac, but its not on the market. Now should I wait or not ? Has this product been cancelled ? Was it just a hoax ? Argh! Firewire... + +Nat! +2005-07-06T11:34:42+01:00 + + +MulleSybaseEOAdaptor - a new beginning +http://www.mulle-kybernetik.com/weblog/archives/000669.html +Today a new version of MulleSybase adaptor will be released. Here are some more or less relevant snippets from the release notes with respect to the last release 1.5.2. There have been quite a lot of changes and improvements over... + +Nat! +2005-07-04T13:06:58+01:00 + + +Poetic Spam +http://www.mulle-kybernetik.com/weblog/archives/000668.html +To keep up to date with the latest in spam, I sample a few of the hundreds of letters that I receive at work. That way I learn for instance that the "Viagra Party Pack" can be delievered to my... + +Nat! +2005-06-28T22:56:31+01:00 + + +A peculiar new input device +http://www.mulle-kybernetik.com/weblog/archives/000667.html + + +Nat! +2005-06-28T22:44:47+01:00 + + +Guest Article: ZNeK needs NeXTstep 2.1 +http://www.mulle-kybernetik.com/weblog/archives/000664.html +The first guest entry on this weblog. Enjoy: After reading yet another hillariously stupid article in the totally braindead OSNews series "My workstation OS" I figured I might contribute with yet another senseless OS review ... how about "NeXTstep 2.1"?!... + +Nat! +2005-06-12T19:53:01+01:00 + + +The Emperor has chosen a new Apprentice +http://www.mulle-kybernetik.com/weblog/archives/000663.html +Image stolen from www.templetons.comAnd what a surprise it was. It was none other than Jar Jar Binks, that the emperor had tempted to the dark side. Now folks with a sense for aesthetics, or common sense for that matter, were... + +Nat! +2005-06-06T23:22:18+01:00 + + +Devious Guitar Circles +http://www.mulle-kybernetik.com/weblog/archives/000660.html +||------------------------|| ||-------------3----------|| ||----2-----4-----2-------|| ||-1-----3-----------3----|| ||----------------------2-|| repeat ||------------------------|| in the search for simple little patterns to get my fret fingers more nimble, I created this one. I like it, because it seems to make two circles. Now I can play the... + +Nat! +2005-05-30T23:46:58+01:00 + + + + \ No newline at end of file -- 2.39.5