1. Dashboard
  2. Artikel
  3. Mitglieder
    1. Letzte Aktivitäten
    2. Benutzer online
    3. Team
    4. Mitgliedersuche
  4. Forum
    1. Unerledigte Themen
  • Anmelden
  • Registrieren
  • Suche
Dieses Thema
  1. HTML - Webmaster Forum
  2. Programmierung - Entwickler Forum
  3. Zope & Plone - das deutsche Hilfeforum

CMFSin

  • beautyIAF
  • 30. Mai 2006 um 10:43
  • beautyIAF
    Teeny
    Beiträge
    20
    • 30. Mai 2006 um 10:43
    • #1

    Hallo liebe Ploner,

    ich möchte auf meiner Ploneseite gern heisse News einbinden, habe mir dazu das CMFSin Product runtergeladen, aus den heisse newsfeed link in die Config eingefügt:
    heisse=http://www.heise.de/newsticker/heise.rdf

    anschließend und combined feed:

    heissenews=heisse

    und den Link für die Box im rechten Slot habe ich ebenfalls gesetzt, nun wird mir heissenews zwar angezeigt, jedoch keine aktuellen News. wenn ich auf more klicke, dann gelange ich auf eine Seite, dort steht dann keine News items found in this feed.

    Muss ich irgendwo nochmal eine Updatehäufigkeit angeben, kann ich das Update eventuell auch irgenwo manuell anstoßen?

  • beautyIAF
    Teeny
    Beiträge
    20
    • 8. Juni 2006 um 10:58
    • #2

    Nachdem ich mit dem CMFSin nicht zu gewünschten Erfolg gelangt bin, habe ich das Product PloneRSS installiert, allerdings kommt es hier ebenfalls zu Fehlermeldungen:

    Zitat

    Zeit
    2006/06/08 10:51:05.549 GMT+2
    Request URL
    http://localhost/rss_manager.2006-06-08.0170639758
    Exception Type
    AttributeError
    Exception Value
    The database connection PloneRSS_SQL_connection cannot be found.

    Alles anzeigen


    Traceback spuckt folgendes aus:

    Zitat von beautyIAF


    Traceback (innermost last):
    Module ZPublisher.Publish, line 101, in publish
    Module ZPublisher.mapply, line 88, in mapply
    Module ZPublisher.Publish, line 39, in call_object
    Module Products.Archetypes.BaseFolder, line 61, in __call__
    Module Shared.DC.Scripts.Bindings, line 306, in __call__
    Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
    Module Products.CMFCore.FSPageTemplate, line 195, in _exec
    Module Products.CMFCore.FSPageTemplate, line 134, in pt_render
    Module Products.PageTemplates.PageTemplate, line 96, in pt_render
    - <FSPageTemplate at /Plone/base_view used for /Plone/rss_manager.2006-06-08.0170639758>
    Module TAL.TALInterpreter, line 190, in __call__
    Module TAL.TALInterpreter, line 234, in interpret
    Module TAL.TALInterpreter, line 671, in do_useMacro
    Module TAL.TALInterpreter, line 234, in interpret
    Module TAL.TALInterpreter, line 409, in do_optTag_tal
    Module TAL.TALInterpreter, line 394, in do_optTag
    Module TAL.TALInterpreter, line 389, in no_tag
    Module TAL.TALInterpreter, line 234, in interpret
    Module TAL.TALInterpreter, line 702, in do_defineSlot
    Module TAL.TALInterpreter, line 234, in interpret
    Module TAL.TALInterpreter, line 409, in do_optTag_tal
    Module TAL.TALInterpreter, line 394, in do_optTag
    Module TAL.TALInterpreter, line 389, in no_tag
    Module TAL.TALInterpreter, line 234, in interpret
    Module TAL.TALInterpreter, line 650, in do_defineMacro
    Module TAL.TALInterpreter, line 234, in interpret
    Module TAL.TALInterpreter, line 694, in do_defineSlot
    Module TAL.TALInterpreter, line 234, in interpret
    Module TAL.TALInterpreter, line 409, in do_optTag_tal
    Module TAL.TALInterpreter, line 394, in do_optTag
    Module TAL.TALInterpreter, line 389, in no_tag
    Module TAL.TALInterpreter, line 234, in interpret
    Module TAL.TALInterpreter, line 650, in do_defineMacro
    Module TAL.TALInterpreter, line 234, in interpret
    Module TAL.TALInterpreter, line 409, in do_optTag_tal
    Module TAL.TALInterpreter, line 394, in do_optTag
    Module TAL.TALInterpreter, line 389, in no_tag
    Module TAL.TALInterpreter, line 234, in interpret
    Module TAL.TALInterpreter, line 671, in do_useMacro
    Module TAL.TALInterpreter, line 234, in interpret
    Module TAL.TALInterpreter, line 569, in do_insertStructure_tal
    Module Products.PageTemplates.TALES, line 221, in evaluate
    - URL: file:PloneRSS/skins/PloneRSS/rss_manager_view.pt
    - Line 2, Column 1
    - Expression: <PythonExpr here.rss_manager_view_overview()>
    - Names:
    {'container': <PloneSite instance at 03BABBF0>,
    'context': <rss_manager instance at 03D13E90>,
    'default': <Products.PageTemplates.TALES.Default instance at 0x00EADA30>,
    'here': <rss_manager instance at 03D13E90>,
    'loop': <SafeMapping instance at 03DE09D0>,
    'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at 0x00EB6DC8>,
    'nothing': None,
    'options': {'args': ()},
    'repeat': <SafeMapping instance at 03DE09D0>,
    'request': <HTTPRequest, URL=http://localhost/rss_manager.2006-06-08.0170639758>,
    'root': <Application instance at 03965F80>,
    'template': <FSPageTemplate at /Plone/base_view used for /Plone/rss_manager.2006-06-08.0170639758>,
    'traverse_subpath': [],
    'user': POtt}
    Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__
    - __traceback_info__: here.rss_manager_view_overview()
    Module Python expression "here.rss_manager_view_overview()", line 1, in <expression>
    Module Products.CMFCore.FSPythonScript, line 108, in __call__
    Module Shared.DC.Scripts.Bindings, line 306, in __call__
    Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
    Module Products.CMFCore.FSPythonScript, line 163, in _exec
    Module None, line 181, in rss_manager_view_overview
    - <FSPythonScript at /Plone/rss_manager_view_overview used for /Plone/rss_manager.2006-06-08.0170639758>
    - Line 181
    Module None, line 32, in process_feeds
    - <FSPythonScript at /Plone/rss_manager_view_overview used for /Plone/rss_manager.2006-06-08.0170639758>
    - Line 32
    Module Shared.DC.ZRDB.DA, line 420, in __call__
    - <FSZSQLMethod instance at 03E2B710>
    AttributeError: The database connection PloneRSS_SQL_connection cannot be found.

    Alles anzeigen

    Ich habe dieses Product mit Hilfe des Installationsservice unter Konfiguration "hinzufügen und Entfernen von Producten" installiert, die Installation verlief auch reibungslos, jedoch taucht dieser Fehler auf, wenn ich auf neuen Artikel erstellen --> rss manager klicke und diesen dann speichern möchte.

    Hat jemand von euch Erfahrung mit diesem Product oder kann mir ein ähnliches empfehlen, dass ich installieren kann, um externe News z.B. von heisse oder plone.org selbst auf meiner Seite anzeigen kann?

    Schöne Grüße
    Patrick.

  • Torty
    Kaiserliche Hoheit
    Beiträge
    1.558
    • 8. Juni 2006 um 19:11
    • #3

    Ich kenne das Produkt nicht, aber es sieht so aus, als wenn eine SQL-Datenbank angesprochen werden will, die nicht vorhanden ist.
    Was steht denn zum Thema SQL in der Produkt-Anleitung?

    "Carpe Diem" powered by positiv Feelings

  • beautyIAF
    Teeny
    Beiträge
    20
    • 9. Juni 2006 um 07:54
    • #4

    Das ist das große Problem, was ich nicht verstehe, warum gibt es denn ein Product, das auf einer extra Datenbank basiert...

    Es gibt ein sql File, in dem eine DB sowie eine Tabelle "feeds" erzeugt werden soll, doch wird das während der Installation scheinbar nicht gemacht.

    Ich habe bereits eine SQL Verbindung hinzugefügt, allerding habe ich noch nicht gefunden, wo ich eintragen kann, z.B.:
    $dbserver = 'localhost'
    $dbusername= 'xyz'
    usw...

    Somit erhalte ich inzwischen einen DatabaseError, da ja keine entsprechende DB gefunden werden kann.

    dies ist leider alles, was die beiliegende Docu hergibt:

    Zitat


    The purpose of this module is to allow end-users to draw down news information in RSS format from other web sites and to incorporate it into their local information database. This product is a rewrite of a product called CMFFeed which we released in January 2005.
    Working with external news items

    In order to see external news items, your system administrator must first have installed the PloneRSS package and the associated portlet which allows new news to be viewed either down to the left or the right hand side of the screen. Assuming this has been done, whether you see any RSS news depends on two things:

    * Whether your current location within the database (i.e. the page you are viewing) is set to display news
    * Whether there is any news matching that selected for display with this page

    Specifying an external Feed

    Let's assume for a second that nobody else is using the system and there are no pre-defined news feeds. The first thing you will need to do it to create one or more RSS Feed items.

    Click on 'My Folder' (top right) , then 'Add Item', then 'RSS Feed'.

    Fill in the following fields;

    * Title: Flash Linux
    * Description: An RSS feed from flashlinux.org.uk
    * URL: http://flashlinux.org.uk/news/RSS
    * Update Frequency: 1 day

    Then click on 'Save'.

    You will see in the top right of the new page something saying "State: Public Draft", click on this and select "Submit", which will put in a request to the system administrator to 'Ok' your new news feed. (the system administrator 'can' turn this off so administrative approval is not required, however by default, the entry needs double-checking)
    Displaying an external Feed

    Now that you have a feed, you need to tell the system where to display it. For now, let's assume you want to display this feed in your own folder and any folders 'underneath' your own folder. Add an RSS Instance item to your home folder;

    Click on 'My Folder' (top right) , then 'Add Item', then 'RSS Instance'.

    Fill in the following fields;

    * Title: My RSS News
    * Active: Yes
    * Display Count: 5
    * Select: Flash Linux

    Then click on 'Save'.

    You should now be able to see the RSS portlet (wherever your system administrator has decided to put it) which is displaying the message;

    * Flash Linux is [pending] and needs to be [published]

    Which means just what it says, before the system will retrieve any news, the system administrator (or a system 'reviewer') needs to publish your news feed. (you may have to wait for this, or you may be able to do it yourself)

    Once published, this box will become an empty box just showing a title, until the system refreshed it's news feeds at which point your news items should start to appear.
    Notes

    1. Once 'someone' has defined a news feed, you will be able to make use of it. When you create an instance all available feeds on the system will be presented and you may select the one(s) you wish to display.
    2. A number of feeds may be displayed. When editing an instance, either check the boxes of the feeds you wish to see (if check boxes are presented) or use <Ctrl>-Click to select one or more feeds from the drop-down list.
    3. When displaying a number of feeds, the resulting items are sorted by date of creation, not by date of acquisition. (so a feed with a more frequent refresh may make other feeds 'invisible')
    4. Clicking on 'More News' at the foot of the portlet will display all news items for that Instance. On the full listing page, the RSSÂ symbol will produce an RSS feed of the merges input feeds. (which can then be exported and used elsewhere)
    5. Some sites will box people who update their feeds too frequently. (some larger sites in particular) You may want to read the suppliers terms and conditions before lowering the frequency below one hour.
    6. The Date format displayed in the feed is 'system wide' and can be changed by your system administrator
    7. You can have different instances in different folders (i.e. context sensitive RSS)
    8. You can have multiple enabled Instances in one folder and a number of portlet boxes will be displayed
    9. The portlet box can be hidden by adding an Instance and by not enabling any feeds for it

    Alles anzeigen

    Ich habe mir nun den MS SQL Server installiert und werde versuchen, die DB Verbindung herzustellen.

    Für Ratschläge und Tips wäre ich euch trotzdem sehr sehr dankbar!

    beautyIAF

  • majoversum
    Samurai
    Beiträge
    204
    • 12. Juni 2006 um 13:01
    • #5

    der fehler liegt, soweit ich das beurteilen kann, an der fehlenden verbindung zur datenbank...
    AttributeError: The database connection PloneRSS_SQL_connection cannot be found.

    Wenn du den MS-SQL Server benutzt, brauchst du noch nen database connector. der hier sollte für die ms sql db funktionieren.

    http://www.zope.org/Products/DA/ZODBCDA

    meines Erachtens sollte das Objekt bzw. die Datenbankverbindung in zope folgenden namen haben: PloneRSS_SQL_connection

    vielleicht hilft dir das weiter... :wink:

    mehr zum thema relationale datenbanken und zope findest du hier:
    http://www.zope.org/Documentation/…alDatabases.stx

    nur mal ne frage am rande: hat plone nicht nen rss reader direkt dabei?

    Keep it simple and stupid!

  • beautyIAF
    Teeny
    Beiträge
    20
    • 13. Juni 2006 um 10:37
    • #6

    Ja hat Plone einen RSS Reader? Kann ich mit dem auch von externen Seiten RSS Feed holen und anzeigen lassen?

Tags

  • hilfe
  • www
  • link
  • tex
  • http
  • web
  • text
  • anzeige
  • news
  • anleitung
  • thema
  • installieren
  • datenbank
  • bank
  • fehlermeldungen
  • erfahrung
  • repeat
  • box
  • leitung
  • config
  • container
  • root
  • sql
  • produkt
  • slot
  • newsfeed
  1. Datenschutzerklärung
  2. Impressum
Community-Software: WoltLab Suite™
  • Alles
  • Dieses Thema
  • Dieses Forum
  • Artikel
  • Seiten
  • Forum
  • Erweiterte Suche