No subject


Thu Jun 16 07:37:48 EDT 2016


Attempting to use this ( as [[PageHits]] ) on the FrontPage gives the
following error;

=20
UnicodeDecodeError'ascii' codec can't decode byte 0xc3 in position 0:
ordinal not in range(128)=20

Please include this information in your bug reports!:
Python Python 2.4.2: C:\Python24\python.exe
Platform: win32 (nt)
MoinMoin Release 1.3.5 [Revision 1.3.5 release]
Tue Apr 11 13:38:20 2006=20

A problem occurred in a Python script. Here is the sequence of function
calls leading up to the error, in the order they occurred.

 c:\Python24\lib\site-packages\MoinMoin\request.py in
run(self=3D<MoinMoin.request.RequestCGI object>)=20
  834                     from MoinMoin.wikiaction import getHandler
=20
  835                     handler =3D getHandler(self, action)
=20
  836                     handler(self.page.page_name, self)
=20
  837=20
=20
  838             # 5. Or redirect to another page
=20
handler =3D <function do_savepage>, self =3D <MoinMoin.request.RequestCGI
object>, self.page =3D <MoinMoin.Page.Page instance>, self.page.page_name
=3D u'FrontPage'=20


 c:\Python24\lib\site-packages\MoinMoin\wikiaction.py in
do_savepage(pagename=3Du'FrontPage', request=3D<MoinMoin.request.RequestCGI
object>)=20
  636             pg =3D Page(request, backto)
=20
  637=20
=20
  638         pg.send_page(request, msg=3Dsavemsg)
=20
  639        =20
=20
  640=20
=20
pg =3D <MoinMoin.PageEditor.PageEditor instance>, pg.send_page =3D <bound
method PageEditor.send_page of <MoinMoin.PageEditor.PageEditor
instance>>, request =3D <MoinMoin.request.RequestCGI object>, msg
undefined, savemsg =3D u'Thank you for your changes. Your attention to
detail is appreciated.'=20


 c:\Python24\lib\site-packages\MoinMoin\Page.py in
send_page(self=3D<MoinMoin.PageEditor.PageEditor instance>,
request=3D<MoinMoin.request.RequestCGI object>, msg=3Du'Thank you for your
changes. Your attention to detail is appreciated.', **keywords=3D{})=20
 1152         else:
=20
 1153             # parse the text and send the page content
=20
 1154             self.send_page_content(request, Parser, body,
format_args=3Dpi_formatargs, do_cache=3Ddo_cache)
=20
 1155=20
=20
 1156             # check for pending footnotes
=20
self =3D <MoinMoin.PageEditor.PageEditor instance>, self.send_page_content
=3D <bound method PageEditor.send_page_content of
<MoinMoin.PageEditor.PageEditor instance>>, request =3D
<MoinMoin.request.RequestCGI object>, Parser =3D <class
MoinMoin.parser.wiki.Parser>, body =3D u'=3D TsmWiki =3D\n * If you are sim=
ply
looking for hel...This wiki is powered by MoinMoin. \n\n[[PageHits]]\n',
format_args undefined, pi_formatargs =3D u'', do_cache =3D 1=20


 c:\Python24\lib\site-packages\MoinMoin\Page.py in
send_page_content(self=3D<MoinMoin.PageEditor.PageEditor instance>,
request=3D<MoinMoin.request.RequestCGI object>, Parser=3D<class
MoinMoin.parser.wiki.Parser>, body=3Du'=3D TsmWiki =3D\n * If you are simply
looking for hel...This wiki is powered by MoinMoin. \n\n[[PageHits]]\n',
needsupdate=3D1, format_args=3Du'', do_cache=3D1)=20
 1312                 __file__ =3D
os.path.join(moinmodule.__loader__.archive, 'dummy')
=20
 1313=20
=20
 1314             exec code
=20
 1315         except 'CacheNeedsUpdate':
=20
 1316             # if something goes wrong, try without caching
=20
code =3D <code object ? at 00AA4420, file "FrontPage", line 2>=20


 C:\moin\TsmWiki\FrontPage =20
=20


 c:\Python24\lib\site-packages\MoinMoin\formatter\base.py in
macro(self=3D<MoinMoin.formatter.text_html.Formatter instance>,
macro_obj=3D<MoinMoin.wikimacro.Macro instance>, name=3Du'PageHits',
args=3DNone)=20
  229     def macro(self, macro_obj, name, args):
=20
  230         # call the macro
=20
  231         return macro_obj.execute(name, args)   =20
=20
  232=20
=20
  233     def _get_bang_args(self, line):
=20
macro_obj =3D <MoinMoin.wikimacro.Macro instance>, macro_obj.execute =3D
<bound method Macro.execute of <MoinMoin.wikimacro.Macro instance>>,
name =3D u'PageHits', args =3D None=20


 c:\Python24\lib\site-packages\MoinMoin\wikimacro.py in
execute(self=3D<MoinMoin.wikimacro.Macro instance>,
macro_name=3Du'PageHits', args=3DNone)=20
   99         macro =3D wikiutil.importPlugin(self.request.cfg, 'macro',
macro_name)
=20
  100         if macro:
=20
  101             return macro(self, args)
=20
  102=20
=20
  103         builtins =3D vars(self.__class__)
=20
macro =3D <function execute>, self =3D <MoinMoin.wikimacro.Macro instance>,
args =3D None=20


 c:\Python24\lib\site-packages\MoinMoin\macro\PageHits.py in
execute(macro=3D<MoinMoin.wikimacro.Macro instance>, args=3DNone)=20
  106         return ''.join(result)
=20
  107=20
=20
  108=20
=20
  109 def execute(macro, args):
=20
  110     return PageHits(macro, args).execute()
=20
global PageHits =3D <class MoinMoin.macro.PageHits.PageHits>, macro =3D
<MoinMoin.wikimacro.Macro instance>, args =3D None, ).execute undefined=20


 c:\Python24\lib\site-packages\MoinMoin\macro\PageHits.py in
execute(self=3D<MoinMoin.macro.PageHits.PageHits instance>)=20
   37         """ Execute the macro and return output """
=20
   38         cacheDate, hits =3D self.cachedHits()
=20
   39         self.addHitsFromLog(hits, cacheDate)
=20
   40         self.filterReadableHits(hits)
=20
   41         hits =3D [(hits[pagename], pagename) for pagename in hits]
=20
self =3D <MoinMoin.macro.PageHits.PageHits instance>, self.addHitsFromLog
=3D <bound method PageHits.addHitsFromLog of
<MoinMoin.macro.PageHits.PageHits instance>>, hits =3D {u'!=3D(notEqual)':
1, u'"accessDenied"': 8, u'"classicRestore"': 4, u'"closedSug"': 3,
u'"deleted"': 2, u'"incrementalForever"': 9, u'"ja"': 2,
u'"manySmallFiles"Problem': 6, u'"notSupported"': 6, u'"outOfBand"': 4,
.=2E.}, cacheDate =3D 1140011950000000L=20


 c:\Python24\lib\site-packages\MoinMoin\macro\PageHits.py in
addHitsFromLog(self=3D<MoinMoin.macro.PageHits.PageHits instance>,
hits=3D{u'!=3D(notEqual)': 1, u'"accessDenied"': 8, u'"classicRestore"': 4,
u'"closedSug"': 3, u'"deleted"': 2, u'"incrementalForever"': 9, u'"ja"':
2, u'"manySmallFiles"Problem': 6, u'"notSupported"': 6, u'"outOfBand"':
4, ...}, cacheDate=3D1140011950000000L)=20
   64         changed =3D False
=20
   65         event_log.set_filter(['VIEWPAGE'])
=20
   66         for event in event_log.reverse():
=20
   67             if event[0] <=3D cacheDate:
=20
   68                 break
=20
event =3D (1144682954921000L, u'VIEWPAGE', {u'HTTP_REFERER':
u'http://www.tsmwiki.com/tsmwiki/ModificationsR%C3%A9centes',
u'HTTP_USER_AGENT': u'Mozilla/5.0 (Windows; U; Windows NT 5.0; fr-FR;
rv:1.7.12) Gecko/20050919 Firefox/1.0.7', u'REMOTE_ADDR':
u'160.92.7.69', u'pagename': u'DiscussionPages/TheTsmWikiLogo'}),
event_log =3D <MoinMoin.logfile.eventlog.EventLog instance>,
event_log.reverse =3D <bound method EventLog.reverse of
<MoinMoin.logfile.eventlog.EventLog instance>>=20


 c:\Python24\lib\site-packages\MoinMoin\logfile\logfile.py in
reverse(self=3D<MoinMoin.logfile.eventlog.EventLog instance>)=20
   99         while 1:
=20
  100             try:
=20
  101                 result =3D self.previous()
=20
  102             except StopIteration:
=20
  103                 return
=20
result =3D (1144682954921000L, u'VIEWPAGE', {u'HTTP_REFERER':
u'http://www.tsmwiki.com/tsmwiki/ModificationsR%C3%A9centes',
u'HTTP_USER_AGENT': u'Mozilla/5.0 (Windows; U; Windows NT 5.0; fr-FR;
rv:1.7.12) Gecko/20050919 Firefox/1.0.7', u'REMOTE_ADDR':
u'160.92.7.69', u'pagename': u'DiscussionPages/TheTsmWikiLogo'}), self =3D
<MoinMoin.logfile.eventlog.EventLog instance>, self.previous =3D <bound
method EventLog.previous of <MoinMoin.logfile.eventlog.EventLog
instance>>=20


 c:\Python24\lib\site-packages\MoinMoin\logfile\logfile.py in
previous(self=3D<MoinMoin.logfile.eventlog.EventLog instance>)=20
  294         while result =3D=3D None:
=20
  295             while result =3D=3D None:
=20
  296                 result =3D self.__previous()
=20
  297             if self.filter and not self.filter(result):
=20
  298                 result =3D None
=20
result =3D None, self =3D <MoinMoin.logfile.eventlog.EventLog instance>,
self.__previous undefined=20


 c:\Python24\lib\site-packages\MoinMoin\logfile\logfile.py in
__previous(self=3D<MoinMoin.logfile.eventlog.EventLog instance>)=20
  284     def __previous(self):
=20
  285         if self.peek(-1): raise StopIteration
=20
  286         return self.parser(self.__buffer.lines[self.__rel_index])
=20
  287=20
=20
  288     def previous(self):
=20
self =3D <MoinMoin.logfile.eventlog.EventLog instance>, self.parser =3D
<bound method EventLog.parser of <MoinMoin.logfile.eventlog.EventLog
instance>>, self.__buffer undefined, self.__rel_index undefined=20


 c:\Python24\lib\site-packages\MoinMoin\logfile\eventlog.py in
parser(self=3D<MoinMoin.logfile.eventlog.EventLog instance>,
line=3Du'1144682941906000\tVIEWPAGE\tpagename=3DModifications...%3Faction%3D
LocalSiteMap&REMOTE_ADDR=3D160.92.7.69\n')=20
   53             # badly formatted line in file, skip it
=20
   54             return None
=20
   55         return long(time_usecs), eventtype,
web.parseQueryString(kvpairs)
=20
   56

=20
   57     def set_filter(self, event_types =3D None):
=20
long undefined, time_usecs =3D u'1144682941906000', eventtype =3D
u'VIEWPAGE', global web =3D <module 'MoinMoin.util.web' from
'c:\Python24\lib\site-packages\MoinMoin\util\web.pyc'>,
web.parseQueryString =3D <function parseQueryString>, kvpairs =3D
u'pagename=3DModificationsR%C3%A9centes&HTTP_USER_AG...i%3Faction%3DLocalS
iteMap&REMOTE_ADDR=3D160.92.7.69'=20


 c:\Python24\lib\site-packages\MoinMoin\util\web.py in
parseQueryString(qstr=3Du'pagename=3DModificationsR%C3%A9centes&HTTP_USER_AG
.=2E.i%3Faction%3DLocalSiteMap&REMOTE_ADDR=3D160.92.7.69')=20
   28     import cgi
=20
   29     values =3D {}
=20
   30     for key, value in cgi.parse_qs(qstr).items():
=20
   31         if len(value) < 2:
=20
   32             values[key] =3D ''.join(value)
=20
key undefined, value undefined, cgi =3D <module 'cgi' from
'C:\Python24\lib\cgi.pyc'>, cgi.parse_qs =3D <function parse_qs>, qstr =3D
u'pagename=3DModificationsR%C3%A9centes&HTTP_USER_AG...i%3Faction%3DLocalS
iteMap&REMOTE_ADDR=3D160.92.7.69', ).items undefined=20


 C:\Python24\lib\cgi.py in
parse_qs(qs=3Du'pagename=3DModificationsR%C3%A9centes&HTTP_USER_AG...i%3Fact
ion%3DLocalSiteMap&REMOTE_ADDR=3D160.92.7.69', keep_blank_values=3D0,
strict_parsing=3D0)=20
  181     """
=20
  182     dict =3D {}
=20
  183     for name, value in parse_qsl(qs, keep_blank_values,
strict_parsing):
=20
  184         if name in dict:
=20
  185             dict[name].append(value)
=20
name undefined, value undefined, global parse_qsl =3D <function
parse_qsl>, qs =3D
u'pagename=3DModificationsR%C3%A9centes&HTTP_USER_AG...i%3Faction%3DLocalS
iteMap&REMOTE_ADDR=3D160.92.7.69', keep_blank_values =3D 0, strict_parsing =
=3D
0=20


 C:\Python24\lib\cgi.py in
parse_qsl(qs=3Du'pagename=3DModificationsR%C3%A9centes&HTTP_USER_AG...i%3Fac
tion%3DLocalSiteMap&REMOTE_ADDR=3D160.92.7.69', keep_blank_values=3D0,
strict_parsing=3D0)=20
  223         if len(nv[1]) or keep_blank_values:
=20
  224             name =3D urllib.unquote(nv[0].replace('+', ' '))
=20
  225             value =3D urllib.unquote(nv[1].replace('+', ' '))
=20
  226             r.append((name, value))
=20
  227=20
=20
value undefined, global urllib =3D <module 'urllib' from
'C:\Python24\lib\urllib.pyc'>, urllib.unquote =3D <function unquote>, nv =
=3D
[u'pagename', u'ModificationsR%C3%A9centes'], ].replace undefined=20


 C:\Python24\lib\urllib.py in unquote(s=3Du'ModificationsR%C3%A9centes')=20
 1059         item =3D res[i]
=20
 1060         try:
=20
 1061             res[i] =3D _hextochr[item[:2]] + item[2:]
=20
 1062         except KeyError:
=20
 1063             res[i] =3D '%' + item
=20
res =3D [u'ModificationsR', u'C3', u'A9centes'], i =3D 1, global _hextochr =
=3D
{'00': '\x00', '01': '\x01', '02': '\x02', '03': '\x03', '04': '\x04',
'05': '\x05', '06': '\x06', '07': '\x07', '08': '\x08', '09': '\t',
.=2E.}, item =3D u'C3'=20


UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 0:
ordinal not in range(128)=20
      __doc__ =3D 'Unicode decoding error.'=20
      __getitem__ =3D <bound method UnicodeDecodeError.__getitem__ of
<exceptions.UnicodeDecodeError instance>>=20
      __init__ =3D <bound method UnicodeDecodeError.__init__ of
<exceptions.UnicodeDecodeError instance>>=20
      __module__ =3D 'exceptions'=20
      __str__ =3D <bound method UnicodeDecodeError.__str__ of
<exceptions.UnicodeDecodeError instance>>=20
      args =3D ('ascii', '\xc3', 0, 1, 'ordinal not in range(128)')=20
      encoding =3D 'ascii'=20
      end =3D 1=20
      object =3D '\xc3'=20
      reason =3D 'ordinal not in range(128)'=20
      start =3D 0=20




Does anyone have an idea as to whats happening? I have a CGI moinmoin
setup on Pentium wintel XP Pro served via Apache.

The page in error is currently 'live' so I have removed the offending
line, but if you wish to view the page, edit it and insert [[PageHits]]
you will recreate the error.

http://tsmwiki.com/tsmwiki



--------------------------
Matthew Warren.
matthew.warren at eon-uk.com
matthew_j_warren at hotmail.com
http://tsmwiki.com/tsmwiki/MatthewWarren



-----Original Message-----
From: moin-user-admin at lists.sourceforge.net
[mailto:moin-user-admin at lists.sourceforge.net] On Behalf Of Uriel Avalos
Sent: 10 April 2006 20:48
To: moin-user at lists.sourceforge.net
Subject: [Moin-user] DesktopEdition Questions


Hello All. I'm currently using Desktop Edition 1.5.2-1 for windows.
However, I've noticed that several features are not working. Have these=20
been disabled from the Desktop Edition?

(1) user accounts---I create an account, but then logging in doesn't=20
seem to work.
(2) search---I create a page, but then title search comes up with 0
hits.
(3) categories---am I using categories correctly? I create a page with a

"CategoryAlgebra" link at the bottom, then edit the "CategoryAlgebra"=20
page, but then the list all pages within a category macro gives no
pages.

--Thanks!


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language that extends applications into web and mobile media. Attend the
live webcast and join the prime developer group breaking into this new
coding territory!
http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D110944&bid=3D241720&dat=3D1=
21642
_______________________________________________
Moin-user mailing list
Moin-user at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user
___________________________ Disclaimer Notice ____________________
This message and any attachments are confidential and should only
be read by those to whom they are addressed. If you are not the
intended recipient, please contact us, delete the message from your
computer and destroy any copies. Any distribution or copying without
our prior permission is prohibited.

Internet communications are not always secure and therefore the
E=2EON Group does not accept legal responsibility for this message.
The recipient is responsible for verifying its authenticity before
acting on the contents. Any views or opinions presented are solely
those of the author and do not necessarily
represent those of the E.ON Group.

E=2EON IS UK Limited, Westwood Way, Westwood Business Park,
Coventry, CV4 8LG.
Registered in England & Wales No. 5617434

Telephone +44 (0) 2476 42 4000
Fax +44 (0) 2476 42 5432




More information about the Moin-user mailing list