1 2010-09-16T00:06:15  <dreimark> gn
   2 2010-09-16T00:23:22  <CIA-36> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 9942:0e79e76c822f 2.0-dev/docs/REQUIREMENTS: add flask-themes 0.1
   3 2010-09-16T00:23:24  <CIA-36> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 9943:bd986f78e971 2.0-dev/MoinMoin/support/flaskext/themes.py: add flask-themes code file (missing in last changeset)
   4 2010-09-16T00:23:34  <CIA-36> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 9944:e1c0a8741d44 2.0-dev/MoinMoin/ (10 files in 10 dirs): (log message trimmed)
   5 2010-09-16T00:23:34  <CIA-36> use flask-theme - code parts of integration (css/images broken)
   6 2010-09-16T00:23:34  <CIA-36> MoinMoin/themes/ is the place for builtin themes - currently there is
   7 2010-09-16T00:23:34  <CIA-36> just a mostly empty 'modernized' directory (static files will be moved there
   8 2010-09-16T00:23:35  <CIA-36> in a separate changeset)
   9 2010-09-16T00:23:35  <CIA-36> moved the UserSettingsUIForm class definition to a place where the app is
  10 2010-09-16T00:23:36  <CIA-36> initialized, so we can get the list of available themes.
  11 2010-09-16T00:23:36  <CIA-36> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 9945:4e275ab26dc6 2.0-dev/MoinMoin/ (12 files in 2 dirs): move modernized css to new home
  12 2010-09-16T00:23:37  <CIA-36> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 9946:e7be9f1f1fc5 2.0-dev/MoinMoin/static/ (50 files in 2 dirs): move smileys to new home
  13 2010-09-16T00:23:38  <CIA-36> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 9947:b074dd00f6a4 2.0-dev/MoinMoin/ (82 files in 4 dirs): move modernized images to new home
  14 2010-09-16T00:23:42  <CIA-36> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 9948:838c8ca18e5d 2.0-dev/MoinMoin/themes/modernized/static/css/common.css: fix admonition image urls in modernized css
  15 2010-09-16T00:23:42  <CIA-36> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 9949:48baae96dd9f 2.0-dev/MoinMoin/ (5 files in 5 dirs): merged main
  16 2010-09-16T00:34:15  <ThomasWaldmann> diofeher: ^^
  17 2010-09-16T01:19:23  <eSyr> ThomasWaldmann: Dmitry asked me to say that currently he has some problems with his laptop, so he has some problems with finishing his work. But he'll promise to be back soon.
  18 2010-09-16T01:20:20  <ThomasWaldmann> ah, thanks for telling
  19 2010-09-16T01:21:35  <eSyr> sorry for being abscent for a long time, have much work irl.
  20 2010-09-16T01:46:55  <CIA-36> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 9950:be5460d9b503 2.0-dev/MoinMoin/templates/content.html: remove content.html (not used any more)
  21 2010-09-16T01:46:55  <CIA-36> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 9951:280f55bc1e40 2.0-dev/MoinMoin/templates/ (23 files): load layout/show.html using theme()
  22 2010-09-16T01:49:28  <ThomasWaldmann> ok, themes work \o/
  23 2010-09-16T01:49:48  <ThomasWaldmann> i tried with a modified copy of modernized.
  24 2010-09-16T02:16:20  <CIA-36> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 9952:5fab5cbe98ed 2.0-dev/MoinMoin/items/__init__.py: add clocks for the converter stages
  25 2010-09-16T08:38:06  *** gwork has joined #moin-dev
  26 2010-09-16T08:56:23  <dreimark> moin
  27 2010-09-16T09:35:52  *** gwork has quit IRC
  28 2010-09-16T09:36:11  *** gwork has joined #moin-dev
  29 2010-09-16T09:38:10  *** gwork has quit IRC
  30 2010-09-16T09:38:36  *** gwork has joined #moin-dev
  31 2010-09-16T09:41:49  *** gwork has quit IRC
  32 2010-09-16T09:42:07  *** gwork has joined #moin-dev
  33 2010-09-16T11:34:14  *** dennda has joined #moin-dev
  34 2010-09-16T11:34:34  *** dennda has joined #moin-dev
  35 2010-09-16T11:36:06  *** dennda has left #moin-dev
  36 2010-09-16T13:02:26  *** ronnie_vd_c has joined #moin-dev
  37 2010-09-16T13:03:36  <ronnie_vd_c> Can somebody give info about the caching in 1.9.x . I have a page that loads external data (which should be updated once a day) and display that data with a macro
  38 2010-09-16T13:03:57  <ronnie_vd_c> i found this: http://moinmo.in/MoinCaching  but looks like its outdated
  39 2010-09-16T13:06:24  <ThomasWaldmann> look at the MoinMoin.caching module
  40 2010-09-16T13:07:27  <ronnie_vd_c> ThomasWaldmann, is there no howto/reference ?
  41 2010-09-16T13:07:42  <ThomasWaldmann> the source has docstrings
  42 2010-09-16T13:08:29  <ThomasWaldmann> you can also just grep the other source for "caching" to get lots of examples
  43 2010-09-16T13:08:54  <ThomasWaldmann> or look at the unittests of caching module
  44 2010-09-16T13:10:27  <ronnie_vd_c> ThomasWaldmann: in which folder can i find unittests?
  45 2010-09-16T13:12:11  <ThomasWaldmann> _tests
  46 2010-09-16T13:26:39  <ronnie_vd_c> ThomasWaldmann: Thx, caching is now working. But how can i decide when the cache is updated, for example once a day
  47 2010-09-16T13:29:39  <CIA-36> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 9953:1f8a2b0dabde 2.0-dev/MoinMoin/util/paramparser.py: convert paramparser to newstyle gettext, this fixes some failing tests
  48 2010-09-16T13:31:00  <ThomasWaldmann> ronnie_vd_c: you could add some timestamp to the data you store into the cache
  49 2010-09-16T13:31:32  <ronnie_vd_c> ok, so there is no default way to do this...
  50 2010-09-16T13:32:07  <ronnie_vd_c> is it possible to update the cache, but still load the old one, so there is no delay when updating
  51 2010-09-16T13:34:05  <ThomasWaldmann> well, in the dark past, we sometimes used the mtime of the cache file, but that is not recommended
  52 2010-09-16T13:35:28  <ronnie_vd_c> why isn't that?
  53 2010-09-16T13:35:45  <ronnie_vd_c> ow, because the syncing of the farms?
  54 2010-09-16T13:36:43  <ThomasWaldmann> if you write to the cache, it's write to a temp file and rename it over the real cache file on close()
  55 2010-09-16T13:37:09  <ronnie_vd_c> ThomasWaldmann: but is it possible to start updating the cache, and immidialty show the old one, so users do not have to wait till the cache is updated
  56 2010-09-16T13:37:44  <ronnie_vd_c> then i use a timestap in the cache itself, for that part.
  57 2010-09-16T13:38:13  <ThomasWaldmann> what you are telling sounds a bit like doing it in a separate thread or process
  58 2010-09-16T13:38:40  <ronnie_vd_c> yes, but i never done any threading of processign
  59 2010-09-16T13:38:42  <ThomasWaldmann> you can do that, but first think about whether it is really worth the additional complexityy
  60 2010-09-16T13:39:19  <ronnie_vd_c> i think it is, because it takes 5 seconds to load the external data
  61 2010-09-16T13:39:39  <ThomasWaldmann> and how often shall it do that?
  62 2010-09-16T13:39:42  <ronnie_vd_c> waiting 5 seconds to load a page (once in a while) seemes to much for me
  63 2010-09-16T13:40:34  <ronnie_vd_c> i think one update a day should be enough. but i guess there are only looking 2 ppl a day to that content. so 50% of it has to wait 5 secs
  64 2010-09-16T13:41:39  <ThomasWaldmann> if it is that heavily used, don't cache and let them both wait :D
  65 2010-09-16T13:41:44  <ThomasWaldmann> just to be fair
  66 2010-09-16T13:42:25  <ronnie_vd_c> ok, then we do disagree about that part ;)
  67 2010-09-16T13:43:35  <ronnie_vd_c> do you have some experience with threading
  68 2010-09-16T13:43:56  <ThomasWaldmann> yes, it can easily make troubles :)
  69 2010-09-16T13:44:22  <ronnie_vd_c> didn't know it was that difficult
  70 2010-09-16T13:45:21  <ThomasWaldmann> btw, a q&d solution would be to have a cron script that does request this page twice a day or so, so it'll trigger the update and human users usually don't have to wait
  71 2010-09-16T13:45:27  <ronnie_vd_c> vvvubuntuvvvgclkvluvnddfbhhlkdletkllggggitrb
  72 2010-09-16T13:45:32  <ronnie_vd_c> oops - yubikey
  73 2010-09-16T13:46:18  <ronnie_vd_c> ThomasWaldmann, that could be an option, but i dont know if the sysadmin is happy with that ;)
  74 2010-09-16T13:46:35  <ronnie_vd_c> and it could be different pages
  75 2010-09-16T13:46:54  <ronnie_vd_c> its a macro that can be inclueded in different pages
  76 2010-09-16T13:47:24  <ThomasWaldmann> what is it doing btw?
  77 2010-09-16T13:48:38  <ronnie_vd_c> its getting a list om members from different Launchpad teams and shows it on the wiki
  78 2010-09-16T13:48:54  <ronnie_vd_c> but i guess more info from launchpad will follow
  79 2010-09-16T13:49:05  <ronnie_vd_c> do you know launchpad?
  80 2010-09-16T13:51:56  <ThomasWaldmann> yes
  81 2010-09-16T13:52:56  <ThomasWaldmann> be careful btw, ubuntu wiki is still 1.6.3 :|
  82 2010-09-16T13:53:10  <ronnie_vd_c> but in other projects i like to add even more launchpad data. therefore i need a clean caching system
  83 2010-09-16T13:53:28  <ronnie_vd_c> the dutch ubuntu wiki will be 1.9 soom ( i hope)
  84 2010-09-16T13:54:07  <ronnie_vd_c> does version 1.6.3 also support the same caching system?
  85 2010-09-16T14:08:05  <ThomasWaldmann> similar, maybe with some more bugs and less features :)
  86 2010-09-16T14:08:36  <ThomasWaldmann> e.g. the file-like interface was not there from the beginning
  87 2010-09-16T14:29:34  <dreimark> ronnie_vd_c: look at the sendcache module
  88 2010-09-16T14:29:55  <dreimark> and create cache by this
  89 2010-09-16T14:30:24  <ronnie_vd_c> dreimark, in which folder can i find sendcache?
  90 2010-09-16T14:33:04  <dreimark> action.cache for an example see  http://hg.moinmo.in/moin/extensions/file/8893fdfafd75/data/plugin/parser/text_x_mathtran.py
  91 2010-09-16T14:34:57  <ronnie_vd_c> is it also possible to load data trough Ajax. so the page displays, and will be updated when the data arrives?
  92 2010-09-16T14:35:57  <dreimark> we currently have no ajax implemented
  93 2010-09-16T14:41:45  <ronnie_vd_c> dreimark: you say: just use cache.put instead of cache.update() ?
  94 2010-09-16T14:47:03  <dreimark> action.cache has no update
  95 2010-09-16T14:47:16  <dreimark> you can create a new key dependent of the content
  96 2010-09-16T14:47:26  <dreimark> and process the data
  97 2010-09-16T14:48:08  <dreimark> you just need to force the processing and this can be done by a simple script accessing the page
  98 2010-09-16T14:54:14  <ronnie_vd_c> dreimark: hmm, i dont see the purpose of action.cache in my exampel
  99 2010-09-16T15:00:32  <CIA-36> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 9954:79fdadfe6fb5 2.0-dev/MoinMoin/config/default.py: remove cfg.moinmoin_dir and tmp_dir (not used any more)
 100 2010-09-16T15:00:32  <CIA-36> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 9955:b34e226ee814 2.0-dev/ (docs/REQUIREMENTS MoinMoin/support/speaklater.py): added speaklater 1.2(pre?) from speaklater repo
 101 2010-09-16T15:00:34  <CIA-36> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 9956:77e8ffdf72d7 2.0-dev/MoinMoin/ (__init__.py apps/frontend/views.py): N_ is lazy_gettext, NOT ngettext
 102 2010-09-16T15:10:33  <CIA-36> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 9957:3b1a66ca06ff 2.0-dev/docs/config_examples/snippets/ (ui_wikiconfig_snippet user_wikiconfig_snippet): remove severely outdated user and ui config snippet
 103 2010-09-16T15:17:30  <dreimark> ronnie_vd_c: it is much faster
 104 2010-09-16T15:18:15  <ronnie_vd_c> why is it faster, i cant see much difference
 105 2010-09-16T15:20:40  <CIA-36> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 9958:0dc7c3e34af7 2.0-dev/docs/ (CHANGES CHANGES_1.x_and_0.x): begin a new CHANGES document, rename old one
 106 2010-09-16T15:24:13  <ThomasWaldmann> whether one uses action.cache or caching module depends on the usecase
 107 2010-09-16T15:24:41  <ThomasWaldmann> action.cache is for cases where you want to have data in the cache requestable by some URL
 108 2010-09-16T15:25:15  <ThomasWaldmann> e.g. you can cache thumbnails of original images using that
 109 2010-09-16T15:26:24  <ThomasWaldmann> (or any other data that get's sent "raw", that means without the theme)
 110 2010-09-16T15:27:10  <ThomasWaldmann> while the caching module is rather for internal use, it is not exposed / accessible via some url
 111 2010-09-16T15:37:58  <ronnie_vd_c> ThomasWaldmann: so in my case, caching module is the best option? (not actions.cache)
 112 2010-09-16T15:38:31  <ThomasWaldmann> yes, i think so
 113 2010-09-16T15:38:53  <ronnie_vd_c> ow wait, maybe i can use the caching mechanism of LP API. lets have a look at that one
 114 2010-09-16T16:35:41  <CIA-36> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 9959:ebf7fb65c4fd 2.0-dev/docs/ (2.0-TODO CHANGES.storage TODO.dom): docs updates
 115 2010-09-16T16:35:41  <CIA-36> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 9960:a7b5adf8bb92 2.0-dev/wiki/data/tmp/README: remove data/tmp (== cfg.tmp_dir) - unused
 116 2010-09-16T16:35:42  <CIA-36> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 9961:408d15cd63bf 2.0-dev/MoinMoin/ (5 files in 3 dirs): move wikiname quoting/unquoting helpers from wikiutil to storage.backends._fsutils
 117 2010-09-16T16:35:49  <CIA-36> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 9962:0ac5716100df 2.0-dev/MoinMoin/ (4 files in 2 dirs): move helpers for flatfile meta/data storage from wikiutil to storage.backends._flatutils
 118 2010-09-16T17:23:39  *** gwork has quit IRC
 119 2010-09-16T17:48:06  <CIA-36> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 9963:60253cf46434 2.0-dev/MoinMoin/ (15 files in 11 dirs): remove self.request implanting from all test objects, remove unneeded usage of it
 120 2010-09-16T18:10:00  <CIA-36> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 9964:9fa942c1c3ac 2.0-dev/MoinMoin/ (15 files in 4 dirs): datastruct: remove request params, not needed
 121 2010-09-16T18:46:14  *** ronnie_vd_c has left #moin-dev
 122 2010-09-16T18:48:13  *** RogerHaase has joined #moin-dev
 123 2010-09-16T19:22:47  <ThomasWaldmann> RogerHaase: hi. we have themes now. :)
 124 2010-09-16T19:28:59  <RogerHaase> ThomasWaldmann: :) I saw note in the log and was about to try it out.
 125 2010-09-16T19:33:38  *** RogerHaase has quit IRC
 126 2010-09-16T19:34:28  *** RogerHaase has joined #moin-dev
 127 2010-09-16T20:16:59  *** grzywacz has joined #moin-dev
 128 2010-09-16T20:30:16  <ThomasWaldmann> RogerHaase: i tried with a small "moin dump" like theme
 129 2010-09-16T20:31:20  <ThomasWaldmann> so, as far as templates are concerned, it works. it also loads the css and images from the theme specific url.
 130 2010-09-16T20:31:58  <ThomasWaldmann> so the remaining question is maybe how to avoid duplication within the static data
 131 2010-09-16T20:32:45  <RogerHaase> ThomasWaldmann: I saw modernized.py was deleted.  Where does a mytheme.py go?
 132 2010-09-16T20:34:11  <ThomasWaldmann> there is no theme-specific python code any more
 133 2010-09-16T20:37:36  <RogerHaase> template extensions go into /moinmoin/themes/mytheme/templates?  If the template calls new code, where does the  newcode go?
 134 2010-09-16T20:43:27  <ThomasWaldmann> currently there is no new code
 135 2010-09-16T21:16:25  <RogerHaase> Have created a theme with a modified layout.html and changed my preferences to new theme. :)
 136 2010-09-16T21:17:16  <ThomasWaldmann> \o/
 137 2010-09-16T21:26:25  <CIA-36> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 9965:3da4b1d7fbfc 2.0-dev/MoinMoin/ (5 files in 5 dirs): remove flaskg.context, some references to request
 138 2010-09-16T21:34:04  *** RogerHaase1 has joined #moin-dev
 139 2010-09-16T21:34:11  *** RogerHaase has quit IRC
 140 2010-09-16T22:13:17  <CIA-36> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 9966:40123ef2f6e5 2.0-dev/MoinMoin/apps/admin/templates/ (index.html sysitems_upgrade.html userbrowser.html): admin templates: add theme()
 141 2010-09-16T22:45:33  <CIA-36> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 9967:e515335d069b 2.0-dev/MoinMoin/ (templates/base.html theme/__init__.py): simplify html head meta tag generation
 142 2010-09-16T23:07:34  *** RogerHaase1 has quit IRC
 143 2010-09-16T23:07:35  *** RogerHaase has joined #moin-dev
 144 2010-09-16T23:18:00  <CIA-36> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 9968:99d68e55f900 2.0-dev/MoinMoin/templates/layout.html: render navibar <ul> only if it is not empty
 145 2010-09-16T23:34:22  * dreimark svg-edit works now in ie9
 146 2010-09-16T23:39:46  *** grzywacz has quit IRC
 147 

MoinMoin: MoinMoinChat/Logs/moin-dev/2010-09-16 (last edited 2010-09-15 22:45:03 by IrcLogImporter)