Skip to content. Skip to navigation

mix1009.net

Sections
Personal tools
You are here: Home 블로그 Categories Plone
Document Actions

Plone

Up one level

Document Actions

트랙백 테스트

by mix1009 posted at 2006-10-01 00:00 last modified 2007-05-03 20:15


Trackback 테스트입니다. plone -> tattertools.

Category(s)
Plone

lighttpd 1.4.12 bug

Posted by mix1009.net at 2006-10-16 08:59
1.4.12로 업그레이드한 후 서버가 가끔씩 죽었었는데 버그 찾아보니 해결되었다. 1.4.11로 다운그레이드했었는데 소스 패치해서 다시 올려야겠다. 1.4.11은 POST할때 가끔 먹통되는 버그가 있었는데, 해결은 아래 링크를 참조:http://trac.lighttpd.net/trac/changeset/1352FreeBSD 4.10에서 컴파일 안되는 버그도 있는데, 아래 URL을 참조:http://trac.lighttpd.net/trac/ticket..

CoreBlog에서 달력 한글 문제 해결~

by mix1009 posted at 2006-10-02 21:55 last modified 2007-05-03 21:03

블로그 달력에서 달이 영어로 나오고, 요일도 영어로 나와서 이유를 파악해서 고쳤습니다. Plone하고 CoreBlog 모두 처음이라 익숙해지는데 시간이 좀 걸렸네요. Plone에 포함된 portlet_calendar는 한글로 잘 나오기 때문에 이 소스를 보고, portlet_coreblogcalndar를 고쳤습니다.

/portal_skins/plone_portlets에 보면 portlet_calendar 소스를 볼수 있고,

/portal_skins/CoreBlog2에 보면 portet_coreblogcalendar 소스가 있습니다. 소스를 고치기 위해서는 먼저 커스터마이즈 버튼을 누르고, custom(또는 지정한 폴더)로 이동하여 편집하면 됩니다.

변경된 소스는 아래와 같습니다:

<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:omit-tag=""
tal:define="DateTime python:modules['DateTime'].DateTime;
current python:DateTime();
yearmonth here/getYearAndMonthToDisplay;
year options/year | python:yearmonth[0];
month options/month | python:yearmonth[1];
prevMonthTime python:here.getPreviousMonth(month, year);
nextMonthTime python:here.getNextMonth(month, year);
translation_service nocall:here/translation_service;
utranslate nocall:here/utranslate;
weekday_english nocall:translation_service/weekday_english;
day_msgid nocall:translation_service/day_msgid;
weeks python:here.portal_calendar.getEntryForCalendar(month=month, year=year);">
<!-- The calendar, rendered as a table -->

<table cellspacing="0" class="ploneCalendar" id="portlet-coreblog2calendar" summary="Calendar" i18n:attributes="summary">
<thead>
<tr>
<th id="calendar-previous">
<a href="#" tal:attributes="href python:'%s/archives/%d/%d' % (here.blog_url(),prevMonthTime.year(),prevMonthTime.month())">&laquo;</a>
</th>
<th colspan="5"
tal:define="date python:DateTime(year, month, 1);">
<a href="#"
tal:attributes="href python:'%s/archives/%d/%d' % (here.blog_url(),year,month)">
<span i18n:translate="" tal:omit-tag="">

<span i18n:name="monthname"
tal:define="month_english python:translation_service.month_english(month);"
tal:attributes="id string:calendar-month-$month_english"
tal:content="python: utranslate(translation_service.month_msgid(month), default=month_english)"
tal:omit-tag=""
id="calendar-month-month">monthname</span>

<span i18n:name="year"
tal:define="year python:date.year()"
tal:content="string:$year"
tal:attributes="id string:calendar-year-$year;"
id="calendar-year">&nbsp;</span>
</span>
</a>
</th>
<th id="calendar-next">
<a href="#" tal:attributes="href python:'%s/archives/%d/%d' % (here.blog_url(),nextMonthTime.year(), nextMonthTime.month())">&raquo;</a>
</th>
</tr>
<tr tal:define="weekdaynumbers here/portal_calendar/getDayNumbers" class="weekdays">
<tal:data tal:repeat="daynumber weekdaynumbers">
<td tal:define="weekday_english python:weekday_english(daynumber,format='a');"
tal:content="python: utranslate(day_msgid(daynumber, format='s'), default=weekday_english)">Su</td>
</tal:data>
</tr>

</thead>
<tbody>
<tr tal:repeat="week weeks">
<tal:block repeat="day week">
<tal:block define="daynumber day/day;
datestring python: '%d%0.2d%0.2d' % (year, month, daynumber);
javascriptstring string:javascript:%sDay('%s');">
<td class="event" tal:condition="day/entry"
tal:attributes="class python:test(current.year()==year and current.month()==month and current.day()==int(daynumber), 'todayevent', 'event')">
<a href="" tal:attributes="href python:'%s/archives/%d/%d/%d' % (here.blog_url(),year,month,daynumber)">
<span tal:replace="python: daynumber or default">&nbsp;</span>
</a>
</td>
<tal:notdayevent tal:condition="not:day/entry">
<td tal:condition="python: current.year()==year and current.month()==month and current.day()==int(daynumber)"
tal:content="python: daynumber or default" class="todaynoevent">
&nbsp;
</td>
<td tal:condition="not: python: current.year()==year and current.month()==month and current.day()==int(daynumber)"
tal:content="python: daynumber or default">
&nbsp;
</td>
</tal:notdayevent>
</tal:block>
</tal:block>
</tr>
</tbody>
</table>


</div>

</body>

</html>


« May 2012 »
Su Mo Tu We Th Fr Sa
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    
Recent comments
sandboxie 좀더 써보고... mix1009 2006-10-07
Re:Varnish HTTP Cache Project & 웹서버 최적화 mix1009 2006-10-07