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

Plone Klickzähler

  • Plone_N00b
  • 11. Januar 2007 um 08:57
  • 1
  • 2
  • 3
  • Plone_N00b
    Azubi(ne)
    Beiträge
    42
    • 1. Februar 2007 um 07:18
    • #41

    Hey jetz kann ich auf jedefall in der Testansicht schonmal die richtigen Titel sehen... aber es sind 5 mal dieselben Titel...

    Aber wenn ich direkt im Browser meine Startseite ansehen will und schauen will wie es im Portlet dargestellt wird. krieg ich diesen SiteError

    Code
    Site Error
    An error was encountered while publishing this resource. 
    
    
    RuntimeError
    
    
    Sorry, a site error occurred.
    
    
    Traceback (innermost last): 
    
    
    Module ZPublisher.Publish, line 196, in publish_module_standard 
    Module Products.PlacelessTranslationService.PatchStringIO, line 34, in new_publish 
    Module ZPublisher.Publish, line 146, in publish 
    Module Zope2.App.startup, line 222, in zpublisher_exception_hook 
    Module ZPublisher.Publish, line 115, in publish 
    Module ZPublisher.mapply, line 88, in mapply 
    Module ZPublisher.Publish, line 41, in call_object 
    Module Shared.DC.Scripts.Bindings, line 311, in __call__ 
    Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec 
    Module Products.PageTemplates.ZopePageTemplate, line 255, in _exec 
    Module Products.PageTemplates.PageTemplate, line 104, in pt_render
    <ZopePageTemplate at /willkommen/index.html> 
    Module TAL.TALInterpreter, line 238, in __call__ 
    Module TAL.TALInterpreter, line 281, in interpret 
    Module TAL.TALInterpreter, line 749, in do_useMacro 
    Module TAL.TALInterpreter, line 281, in interpret 
    Module TAL.TALInterpreter, line 457, in do_optTag_tal 
    Module TAL.TALInterpreter, line 442, in do_optTag 
    Module TAL.TALInterpreter, line 437, in no_tag 
    Module TAL.TALInterpreter, line 281, in interpret 
    Module TAL.TALInterpreter, line 780, in do_defineSlot 
    Module TAL.TALInterpreter, line 281, in interpret 
    Module TAL.TALInterpreter, line 457, in do_optTag_tal 
    Module TAL.TALInterpreter, line 442, in do_optTag 
    Module TAL.TALInterpreter, line 437, in no_tag 
    Module TAL.TALInterpreter, line 281, in interpret 
    Module TAL.TALInterpreter, line 728, in do_defineMacro 
    Module TAL.TALInterpreter, line 281, in interpret 
    Module TAL.TALInterpreter, line 715, in do_condition 
    Module TAL.TALInterpreter, line 281, in interpret 
    Module TAL.TALInterpreter, line 457, in do_optTag_tal 
    Module TAL.TALInterpreter, line 442, in do_optTag 
    Module TAL.TALInterpreter, line 437, in no_tag 
    Module TAL.TALInterpreter, line 281, in interpret 
    Module TAL.TALInterpreter, line 749, in do_useMacro 
    Module TAL.TALInterpreter, line 281, in interpret 
    Module TAL.TALInterpreter, line 507, in do_setLocal_tal 
    Module Products.PageTemplates.TALES, line 221, in evaluate
    URL: file:CMFPlone/skins/plone_templates/global_contentviews.pt
    Line 134, Column 20
    Expression: <PythonExpr here.plonifyActions(template_id=template_id, actions=actions, default_tab=default_tab)>
    Names:
    {'container': <PloneSite at /willkommen>,
     'context': <PloneSite at /willkommen>,
     'default': <Products.PageTemplates.TALES.Default instance at 0x40d9218c>,
     'here': <PloneSite at /willkommen>,
     'loop': <Products.PageTemplates.TALES.SafeMapping object at 0x441d9ccc>,
     'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at 0x40dbe24c>,
     'nothing': None,
     'options': {'args': ()},
     'repeat': <Products.PageTemplates.TALES.SafeMapping object at 0x441d9ccc>,
     'request': <HTTPRequest, URL=http://10.1.1.180/willkommen/index.html>,
     'root': <Application at >,
     'template': <ZopePageTemplate at /willkommen/index.html>,
     'traverse_subpath': [],
     'user': <PropertiedUser 'admin'>}
    Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__
    __traceback_info__: here.plonifyActions(template_id=template_id, actions=actions, default_tab=default_tab) 
    Module Python expression "here.plonifyActions(template_id=template_id, actions=actions, default_tab=default_tab)", line 1, in <expression> 
    Module Products.CMFCore.FSPythonScript, line 108, in __call__ 
    Module Shared.DC.Scripts.Bindings, line 311, in __call__ 
    Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec 
    Module Products.CMFCore.FSPythonScript, line 142, in _exec
    <FSPythonScript at /willkommen/plonifyActions> 
    RuntimeError: CMFPlone/skins/plone_scripts/plonifyActions.py has errors. (Also, the following error occurred while attempting to render the standard error message, please see the event log for full details: Page Template viewThreadsAtBottom has errors: ['Compilation failed', 'exceptions.KeyError: 307'])
    Alles anzeigen
  • Torty
    Kaiserliche Hoheit
    Beiträge
    1.558
    • 1. Februar 2007 um 11:59
    • #42

    Diese Meldung sagt dir, dass ein Plone-Script fehlerhaft ist. Dies kann man jedoch ausschliessen. Dann stimmt eher was mit deiner Installation nicht. Was das sein kann? Sorry - da fällt mir kaum was ein zu. Vielleicht stimmt dein Filesystem-Encoding nicht oder es fehlen Rechte oder ...

    Ich kann mir vorstellen, dass dies für dich sicher frustrierend ist, aber tröste dich damit, dass du so einen tieferen Einblick in das Thema bekommst, als wenn alles gleich klappen würde. *eyesroll*

    Ich werde einen Bekannten nochmal auf dieses Thema hinweisen, denn er hat seine Server alle unter Linux zu laufen.
    Mal schauen ob er dir helfen kann.

    Torty

    "Carpe Diem" powered by positiv Feelings

  • Plone_N00b
    Azubi(ne)
    Beiträge
    42
    • 2. Februar 2007 um 11:57
    • #43

    Sooo ich habe es hinbekommen dank deines neuen Quellcodes... Vielen Dank erstmal, man das war ein Krampf...

    Aber eins hätte ich da noch, die Klicks werden mir nicht mit ausgegeben, wie kann ich das denn veranlassen?


    Grüße Max

  • Torty
    Kaiserliche Hoheit
    Beiträge
    1.558
    • 2. Februar 2007 um 13:33
    • #44

    Aha - warum klappt das denn jetzt?

    Basierend auf den letzten Code hier also die Ausgabe der Hits. Die Änderung liegt in der Zeile 25 und 31.

    HTML
    <html xmlns:tal="http://xml.zope.org/namespaces/tal"
          xmlns:metal="http://xml.zope.org/namespaces/metal"
          i18n:domain="plone">
    <body>
      <div metal:define-macro="portlet"
           tal:define="utool      nocall: here/portal_url;
                       portal     utool/getPortalObject;
                       mxmCounter portal/mxm_counter;
                       hitList    mxmCounter/getSortedByHits;">
     
        <dl class="portlet" id="portlet-workflow-review">
            <dt class="portletHeader">
                <span class="portletTopLeft"></span>
                <span i18n:translate="">Site Statistic</span>
                <span class="portletTopRight"></span>
            </dt>
    
            <tal:hasHits condition="hitList">
              <tal:vars repeat="hit python: hitList[:5]">
                <dd class="portletItem"
                    tal:define="oddrow repeat/hit/odd"
                    tal:attributes="class python:test(oddrow, 'portletItem even','portletItem odd')">
    
                  <div tal:define="hitObj   python: here.restrictedTraverse(hit[0]);
                                   hitCount python: here.restrictedTraverse(hit[1]);"
                       tal:attributes="class python:'visualIcon contenttype-' + normalizeString(hitObj.portal_type)">
                    <a href="#" class="visualIconPadding tile"
                       tal:condition="not: nothing"
                       tal:attributes="href string:${hitObj/absolute_url};
                                       title hitObj/Description;"
                       tal:content="string:${repeat/hit/number}. ${hitObj/Title} ($hitCount)">
                      title of the page
                    </a>
                  </div>
    
                </dd>
              </tal:vars>
            </tal:hasHits>
    
            <tal:noHits condition="not: hitList">
              <dd class="portletItem odd">
                <div class="visualIcon"
                     i18n:translate="">
                  no hits found
                </div>
              </dd>
            </tal:noHits>
    
            <dd class="portletFooter">
    
                <span class="portletBottomLeft"></span>
                <span class="portletBottomRight"></span>
            </dd>
        </dl>
    
      </div>
    </body>
    </html>
    Alles anzeigen

    Torty

    "Carpe Diem" powered by positiv Feelings

  • Plone_N00b
    Azubi(ne)
    Beiträge
    42
    • 5. Februar 2007 um 10:37
    • #45

    Hi also wenn ich deine Änderungen vornehme bekommenich im Portlet folgendes angezeigt:

    Code
    Error exceptions.TypeError on here/portlet_stats/macros/portlet: iteration over non-sequence

    Keine Ahnung weshalb aber es kommt....

    Vielen Dank Max

  • Torty
    Kaiserliche Hoheit
    Beiträge
    1.558
    • 5. Februar 2007 um 10:39
    • #46

    Im Plonesite-Root gibts das "error.log" dort findest du den Traceback.

    Torty

    "Carpe Diem" powered by positiv Feelings

    • 1
    • 2
    • 3

Tags

  • domain
  • www
  • html
  • link
  • http
  • code
  • org
  • page
  • daten
  • bot
  • div
  • google
  • entwickler
  • xml
  • header
  • root
  • produkte
  • public
  • python
  • zope
  • plone
  1. Datenschutzerklärung
  2. Impressum
Community-Software: WoltLab Suite™
  • Alles
  • Dieses Thema
  • Dieses Forum
  • Artikel
  • Seiten
  • Forum
  • Erweiterte Suche
Zitat speichern