2009-03-01T00:59:52  <dreimark> re
2009-03-01T01:00:09  <ThomasWaldmann> hi dreimark
2009-03-01T01:00:30  * ThomasWaldmann has some changesets pending, just doing final tests
2009-03-01T01:00:55  <dreimark> l
2009-03-01T01:01:05  * dreimark looks at 1.9 changes
2009-03-01T01:03:24  <dreimark> what is the reason for a cache_timeout?
2009-03-01T01:05:23  <ThomasWaldmann> context?
2009-03-01T01:08:23  <dreimark> :Param cache_timeout: the cache timeout in seconds for the headers.
2009-03-01T01:08:46  <dreimark> I just want to know why one wants that.
2009-03-01T01:09:06  <dreimark> currently we invalidate it with a new aliaas
2009-03-01T01:09:59  <ThomasWaldmann> file?
2009-03-01T01:10:20  <dreimark> MoinMoin/support/werkzeug/utils.py
2009-03-01T01:11:15  <dreimark> default is  cache_timeout=60 * 60 * 12
2009-03-01T01:11:23  <ThomasWaldmann> that's new, mitsuhiko made it configurable on my request
2009-03-01T01:11:46  <ThomasWaldmann> we can set it to 1y or so if we like
2009-03-01T01:11:55  <dreimark> it is ok to have it configurabel I just want to know why or for what
2009-03-01T01:12:11  <ThomasWaldmann> it is for the static files expires header
2009-03-01T01:13:19  <dreimark> I assume the default was before the change only short time.
2009-03-01T01:14:14  <ThomasWaldmann> ?
2009-03-01T01:16:44  <dreimark> I try to understand why you wanted to have it configurable
2009-03-01T01:17:11  <ThomasWaldmann> because a long expiry creates less traffic
2009-03-01T01:17:22  <dreimark> or can I now invoke from a script a reload by changing?
2009-03-01T01:17:36  <ThomasWaldmann> ?
2009-03-01T01:17:50  <ThomasWaldmann> i can't follow you, sorry
2009-03-01T01:18:25  <dreimark> can I cahnge the cache timeout for static files from a macro?
2009-03-01T01:18:48  <ThomasWaldmann> no
2009-03-01T01:19:00  <ThomasWaldmann> why would one want to?
2009-03-01T01:19:08  <ThomasWaldmann> they are static :)
2009-03-01T01:20:02  * ThomasWaldmann fights with distutils
2009-03-01T01:20:16  <dreimark> the thing is why they become static. I assume the browser remembers it and until he doesn't get a timeout he does not try to reload
2009-03-01T01:21:09  <TheSheep> it's for htdoc stuff, it doesn't change
2009-03-01T01:21:21  * dreimark thinks about page_header content line
2009-03-01T01:22:16  <dreimark> html_head = '''
2009-03-01T01:22:16  <dreimark> <link rel="stylesheet" type="text/css" charset="utf-8" media="all" href="%(url_prefix_static)s/arnica/css/text_x_arnica.css">
2009-03-01T01:22:51  <dreimark> have to be added in wikiconfig to get arnicas css files loaded
2009-03-01T01:23:27  <dreimark> this means a restart
2009-03-01T01:23:57  <ThomasWaldmann> wtf is that package_data stuff not working?
2009-03-01T01:24:00  <dreimark> while it doesn't if the browser would have been inected by the content of that file from within the macro
2009-03-01T01:24:08  <dreimark> ThomasWaldmann: tell more
2009-03-01T01:25:36  <ThomasWaldmann> http://paste.pocoo.org/show/105982/ - i18n works (since long), web/static/htdocs/* does not get included in the tarball
2009-03-01T01:26:53  <dreimark> must it be a list ? 'htdocs/*', ?
2009-03-01T01:27:21  <ThomasWaldmann> it is a list
2009-03-01T01:27:58  <ThomasWaldmann> (the problem you have in mind only exists for (), not for [])
2009-03-01T01:28:08  <dreimark> ok
2009-03-01T01:30:41  <dreimark> I assumue you have static below web (because I haven't)
2009-03-01T01:30:51  <ThomasWaldmann> yes
2009-03-01T01:30:53  <TheSheep> I think docutils has some functions for handling globbing wildcards
2009-03-01T01:31:08  <TheSheep> distutitls
2009-03-01T01:31:12  <TheSheep> soryr
2009-03-01T01:32:02  <ThomasWaldmann> TheSheep: it works for our i18n stuff
2009-03-01T01:32:19  <TheSheep> :/
2009-03-01T01:32:23  <ThomasWaldmann> e.g. the jabberbot subdir of it is in the dist tarball
2009-03-01T01:32:25  <dreimark> may be it depends on the amount of levels? (dirs / files)
2009-03-01T01:32:44  <TheSheep> that would be silly
2009-03-01T01:32:44  <ThomasWaldmann> no
2009-03-01T01:32:55  <dreimark> tool and jabberbot have no subdir
2009-03-01T01:32:59  <ThomasWaldmann> i tested that right now with i18n/jabberbot/foo/bar/baz
2009-03-01T01:33:03  <ThomasWaldmann> it is included
2009-03-01T01:33:08  <TheSheep> (not that silly things don't happen)
2009-03-01T01:33:24  <TheSheep> rights?
2009-03-01T01:33:41  <ThomasWaldmann> all my uid
2009-03-01T01:37:49  <dreimark> ThomasWaldmann: a simulation with build works here
2009-03-01T01:38:01  <dreimark> I have copied htdocs below MoinMoin.web.static
2009-03-01T01:39:02  <dreimark> no sorry - mistake
2009-03-01T01:39:33  <TheSheep> ThomasWaldmann: are you sure it rebuilds?
2009-03-01T01:39:44  <TheSheep> ThomasWaldmann: and doesn't stop on some error?
2009-03-01T01:40:02  <TheSheep> ThomasWaldmann: I had something like that with distutils, it's hard to notice because of all the noise
2009-03-01T01:41:25  <ThomasWaldmann> ah, fixing MANIFEST.in with an include helped
2009-03-01T01:41:53  <dreimark> recursive-include
2009-03-01T01:42:04  <dreimark> (so it is a bit that silly)
2009-03-01T01:43:32  <dreimark> lobal-include */_tests/*
2009-03-01T01:43:35  <dreimark> +g
2009-03-01T01:43:54  <dreimark> and the whole tests stuff do you want to install that
2009-03-01T01:44:31  <dreimark> global-exclude */CVS/*
2009-03-01T01:44:37  <dreimark> can be removed also
2009-03-01T01:44:50  <dreimark> or replaced by .hg
2009-03-01T01:45:46  <ThomasWaldmann> omg
2009-03-01T01:45:48  <ThomasWaldmann> error: can't copy 'MoinMoin/web/static/htdocs/modern': doesn't exist or not a regular file
2009-03-01T01:45:56  <ThomasWaldmann> that stuff is so broken :|
2009-03-01T01:47:32  <ThomasWaldmann> (that is when doing python setup.py install)
2009-03-01T02:00:01  <dreimark> looks like it wants package extended and __init__ files everywhere
2009-03-01T02:00:08  <dreimark> packages
2009-03-01T02:00:34  <ThomasWaldmann> no, but it falls over directories
2009-03-01T02:07:02  <ThomasWaldmann> http://www.gossamer-threads.com/lists/python/bugs/721888
2009-03-01T02:12:46  <dreimark> oao my intention was correct
2009-03-01T02:12:51  <dreimark> aua
2009-03-01T02:13:09  * ThomasWaldmann feels some temptation to hg rm setup.py
2009-03-01T02:13:36  <dreimark> currently I don't understand why it works with i18n
2009-03-01T02:13:56  <ThomasWaldmann> because the globs don't match directories
2009-03-01T02:36:41  <dreimark> ThomasWaldmann: http://paste.pocoo.org/show/105999/
2009-03-01T02:37:12  <dreimark> ~/workspace/moin-1.9/MoinMoin/web/static/htdocs
2009-03-01T02:42:58  <ThomasWaldmann> what about .js and .foo and .nobodyexpectedthespanishinquisition ?
2009-03-01T02:44:18  * ThomasWaldmann thinks he has a better solution
2009-03-01T02:45:06  <ThomasWaldmann> works \o/
2009-03-01T02:45:40  <dreimark> :)
2009-03-01T02:45:47  <ThomasWaldmann> just feed the bloody glob with a dynamically created FILE list of all files
2009-03-01T02:45:56  <ronny> yo
2009-03-01T02:46:18  <ThomasWaldmann> ronny: you also had that already?
2009-03-01T02:47:00  <ronny> ThomasWaldmann: glob of all files?! why not just store a set?
2009-03-01T02:47:32  <ThomasWaldmann> set of what?
2009-03-01T02:47:51  <dreimark> in suse11.1 you have trouble to get wsgi working because of a conflict in distutils
2009-03-01T02:47:55  <ronny> paths?
2009-03-01T02:48:04  <ThomasWaldmann> i just give package_data a list of all file names
2009-03-01T02:48:51  <ThomasWaldmann> so it doesn't fall over unexpected directory names
2009-03-01T02:49:07  <dreimark> hmm, that makes it difficult for one who likes to use setup.py with a patched MM installation
2009-03-01T02:49:33  <ThomasWaldmann> why?
2009-03-01T02:49:58  <dreimark> e.g. I usually add all plugins I want to add to my instances to a clone of the repo
2009-03-01T02:50:22  <dreimark> and then i patch everything else and install it by setup.py
2009-03-01T02:50:40  <dreimark> what happens now if I have more files e.g. arnica
2009-03-01T02:51:00  <ronny> btw, has mon any official way of installing plugins via setuptools/distutils?
2009-03-01T02:51:39  <dreimark> not now. standalone instances could have used before 1.9 the packages installer
2009-03-01T02:51:53  <ronny> k
2009-03-01T02:53:40  <ThomasWaldmann> dreimark: as it builds that filelist dynamically, it will include everything that is located there at the time you invoke setup.py install
2009-03-01T02:53:44  <dreimark> but that depends on the one who did prepare the plugin, mostly it is just copying into the right plugin class
2009-03-01T02:53:59  <dreimark> ThomasWaldmann: sounds good.
2009-03-01T02:57:05  <dreimark> pyxml fun with windows, see http://moinmo.in/MoinMoinBugs/OldXMLPathIsMissing
2009-03-01T02:58:49  <dreimark> good night
2009-03-01T03:04:00  <ThomasWaldmann> push is on the way
2009-03-01T03:05:52  <CIA-38> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 4612:a6461afbc0ce 1.9/ (1576 files in 166 dirs): hg mv wiki/htdocs MoinMoin/web/static/htdocs
2009-03-01T03:05:56  <CIA-38> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 4613:e7f1cf9eeb96 1.9/ (10 files in 6 dirs): (log message trimmed)
2009-03-01T03:05:56  <CIA-38> Static file serving built-in (see details below).
2009-03-01T03:05:56  <CIA-38> Moved wiki/htdocs to MoinMoin/web/static/htdocs.
2009-03-01T03:05:56  <CIA-38> MoinMoin.web.static has a static file serving wrapper that uses the files
2009-03-01T03:05:58  <CIA-38> from htdocs subdirectory by default (docs=True).
2009-03-01T03:06:00  <CIA-38> You can also give another path or switch off creation of that static wrapper.
2009-03-01T03:06:02  <CIA-38> See the docstring of the static package for details.
2009-03-01T03:08:11  <ThomasWaldmann> i did some tests with wikiserver, cgi and mod_wsgi
2009-03-01T03:08:39  <ThomasWaldmann> if someone could do a fastcgi test, that would be nice.
2009-03-01T03:19:00  <CIA-38> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 4614:159902268129 1.9/MoinMoin/support/werkzeug/ (7 files in 2 dirs): upgraded werkzeug
2009-03-01T03:27:15  <CIA-38> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 4615:8456e790eb58 1.9/MoinMoin/ (script/server/standalone.py web/serving.py): run_server param name need to match Config attribute name 'debug'
2009-03-01T03:49:12  <CIA-38> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 4616:995e39af3f7c 1.9/ (7 files in 2 dirs): remove MoinMoin.support.wsgiref (not used by moin, not used by werkzeug any more)
2009-03-01T04:11:09  <CIA-38> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 4617:8a3c0c726d66 1.9/MoinMoin/ (_tests/ldap_testbase.py auth/smb_mount.py theme/__init__.py): remove some references to py 2.3/2.4 - 2.4 is the minimum now anyway
2009-03-01T08:33:47  *** starGaming has quit IRC
2009-03-01T11:12:26  *** starGaming has joined #moin-dev
2009-03-01T11:32:33  <dreimark> ThomasWaldmann: it works see http://paste.pocoo.org/show/106025/
2009-03-01T11:33:06  <dreimark> but it also has a side effect any idea why it is not neccessary to give the path of wikiconfig dir?
2009-03-01T11:37:44  *** starGaming has quit IRC
2009-03-01T11:38:23  *** starGaming has joined #moin-dev
2009-03-01T11:45:55  <ThomasWaldmann> moin
2009-03-01T11:47:05  <ThomasWaldmann> dreimark: it should also work without the alias
2009-03-01T11:47:32  * dreimark looks
2009-03-01T11:48:49  <dreimark> [Sun Mar 01 11:48:05 2009] [error] [client 127.0.0.1] File does not exist: /var/www/moin_static190, referer: http://localhost/mywiki3/RecentChanges
2009-03-01T11:50:15  <ThomasWaldmann> you need url_prefix_static = '/mywiki3/moin_static190'
2009-03-01T11:53:02  <dreimark> works
2009-03-01T11:54:02  <ThomasWaldmann> try it with cgi for an unforgetable experience >:P
2009-03-01T11:55:07  <dreimark> logo_string = u'<img src="%s/common/moinmoin.png" alt="MoinMoin Logo">' % url_prefix_static
2009-03-01T11:55:45  <dreimark> I am not sure if I have optimized fcgd now. I mean I have no idea if it is as fast as it was before
2009-03-01T11:57:32  <ThomasWaldmann> assuming some sane client side caching, it should be about as fast as before
2009-03-01T11:58:19  <ThomasWaldmann> for all requests except the first ones, that need to fill the cache
2009-03-01T12:00:28  <ThomasWaldmann> apropos sanity, someone should try it with IE :)
2009-03-01T12:00:35  <dreimark> switching the env. var os.environ['FCGI_FORCE_CGI'] = 'Y
2009-03-01T12:00:39  <dreimark> crashes it
2009-03-01T12:01:52  <ThomasWaldmann> it must matches your setup
2009-03-01T12:02:02  <ThomasWaldmann> Y for cgi, N for fcgi
2009-03-01T12:03:59  <dreimark> I know now. btw. we should have both scripts as templates
2009-03-01T12:05:41  <ThomasWaldmann> someone needs to update flup
2009-03-01T12:05:58  <ThomasWaldmann> after that, there will be some other possibility than this env var stuff
2009-03-01T12:06:27  <ThomasWaldmann> we still rather want to have 2 scripts, though
2009-03-01T12:08:56  <dreimark> yeah cgi is slower
2009-03-01T12:10:17  <dreimark> and Image is much faster than attachments view  on cgi. arnica works with cgi too
2009-03-01T12:11:25  <ThomasWaldmann> ok, so now just the docs need some update :)
2009-03-01T12:11:51  <dreimark> why is it not necessary to give the path of the wikiconfig file ?
2009-03-01T12:12:33  <ThomasWaldmann> i didn't change anything for config handling
2009-03-01T12:12:56  <ThomasWaldmann> it is just the static serving middleware, like it was already present for standalone
2009-03-01T12:13:40  <dreimark> I know but now I have recognized I have not to extend the path (may be I have never tried to do it without)
2009-03-01T12:14:09  <dreimark> but i think it has crashed before
2009-03-01T12:16:52  <dreimark> http://paste.pocoo.org/show/106030/ works for standalone now too
2009-03-01T12:31:42  *** RaphaelBossek has joined #moin-dev
2009-03-01T12:37:13  <dreimark> >>> import sys
2009-03-01T12:37:13  <dreimark> >>> sys.argv = ["moin.py", "server", "standalone"]
2009-03-01T12:37:13  <dreimark> >>> MoinScript().run()
2009-03-01T12:37:40  <dreimark> minimum for running standalone server and that lets me remember ghop
2009-03-01T12:47:07  <ThomasWaldmann> exactly that thing is causing problems with the reloader
2009-03-01T13:49:37  <ThomasWaldmann> hmm, when using INFO log level and not wikiserver.py, the moin log is rather silent
2009-03-01T13:50:33  <ThomasWaldmann> master19 now runs with the builtin static server
2009-03-01T14:20:12  * ThomasWaldmann updated master19 docs
2009-03-01T14:42:19  <RaphaelBossek> hi folks; I've switched development to 1.9 and looking for setting to get exception cached by my wingide development environment
2009-03-01T14:43:22  <RaphaelBossek> the old MOIN_DEBUG variable (as documented in doc/CHANGES which is obsolate) does not work anymore
2009-03-01T14:43:39  <RaphaelBossek> exceptions are cached by Werkzeug
2009-03-01T14:44:38  <RaphaelBossek> I'm starting the standalone server within WingIDE of course
2009-03-01T14:45:47  <ThomasWaldmann> hmm, looks like we need to change that :)
2009-03-01T14:46:02  <ThomasWaldmann> i guess it would be the same for other debuggers/IDEs
2009-03-01T14:46:12  <RaphaelBossek> idear: if MOIN_DEBUGGER == 'internal' Werkzeug should get the control
2009-03-01T14:46:33  <RaphaelBossek> if MOIN_DEBUGGER == 'external' exceptions should not be cached
2009-03-01T14:47:01  <RaphaelBossek> internal/external could also be werkzeug/ide or what ever; open for discussion
2009-03-01T14:47:06  <ThomasWaldmann> there is a Config.debug variable, currently just a boolean
2009-03-01T14:47:28  <RaphaelBossek> I know :-)
2009-03-01T14:47:30  <ThomasWaldmann> False= be silent on the web UI, just short error msg and log the full exception
2009-03-01T14:48:09  <ThomasWaldmann> True= debug on web UI (not for production because of easy exploits being possible)
2009-03-01T14:48:30  <RaphaelBossek> this would be the same as in versions before...
2009-03-01T14:49:23  <ThomasWaldmann> ok, I'll change MOIN_DEBUGGER to be more versatile
2009-03-01T14:50:04  <ThomasWaldmann> RaphaelBossek: btw, since last night, moin can serve static files for any deployment method
2009-03-01T14:51:33  <RaphaelBossek> ThomasWaldmann, where can I find more detailed information about the advanteges ?
2009-03-01T14:52:08  <ThomasWaldmann> the main advantage is less "why does my wiki look so strange and how do i fix it" questions on #moin :D
2009-03-01T14:52:40  <ThomasWaldmann> http://master19.moinmo.in/InstallDocs/ServerInstall < see recent changes
2009-03-01T14:56:05  <RaphaelBossek> I would like also discuess a small improvement for developers running standanlone servers within Hg directory
2009-03-01T14:56:24  <RaphaelBossek> I've created a small modification for wikiserverconfig.py; see http://rafb.net/p/03hmA967.html
2009-03-01T14:56:35  <ThomasWaldmann> i can almost read your mind :D
2009-03-01T14:57:47  <RaphaelBossek> the Hg budle to apply the patch is here http://moinmo.in/RaphaelBossek?action=AttachFile&do=view&target=1_9-devel_local_server_config.bundle
2009-03-01T14:57:55  <ThomasWaldmann> ah, ok, yes, that matches pretty much what we do for wikiconfig also
2009-03-01T14:58:29  <ThomasWaldmann> what i was thinking about is improvement for developers like reloading code changes
2009-03-01T14:58:41  <ThomasWaldmann> esp. under windows this sucks currently
2009-03-01T14:59:08  <RaphaelBossek> no rocket science, just copy&paste
2009-03-01T14:59:28  <ThomasWaldmann> (because Ctrl-C does not work like under Linux)
2009-03-01T15:00:06  <ThomasWaldmann> i tried werkzeug's reloader stuff, but it doesn't work with moin "as is"
2009-03-01T15:02:34  <ThomasWaldmann> line 30 was not updated :)
2009-03-01T15:02:50  <ThomasWaldmann> but I can apply the patch manually and fix that before committing
2009-03-01T15:03:30  <RaphaelBossek> line 30 is a typo, you are right :/
2009-03-01T15:04:30  <ThomasWaldmann> 33 too
2009-03-01T15:05:14  * ThomasWaldmann fixes and applies manually
2009-03-01T15:07:46  <CIA-38> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 4618:0e7c007f8ed9 1.9/ (.hgignore wikiserverconfig.py): handle wikiserverconfig(_local) in the same way as wikiconfig(_local) (thanks to Raphael Bossek for the patch)
2009-03-01T15:09:11  <ThomasWaldmann> ok, now MOIN_DEBUGGER :)
2009-03-01T15:15:20  <RaphaelBossek> is there any hope for http://moinmo.in/FeatureRequests/CloneOrCopyPages macro to be enabled in the future ? what have to be done to get this working ?
2009-03-01T15:17:24  <ThomasWaldmann> we have CopyPage, you just need to enable it
2009-03-01T15:17:39  <ThomasWaldmann> see actions_excluded default
2009-03-01T15:18:33  <ThomasWaldmann> the problem with it was that some people are unhappy with its semantics
2009-03-01T15:19:08  <ThomasWaldmann> if you are not, feel free :)
2009-03-01T15:20:17  <RaphaelBossek> the comment http://hg.moinmo.in/moin/1.8/file/6a287955a262/MoinMoin/config/multiconfig.py#l725 does not mention any semantics but security...
2009-03-01T15:22:07  <ThomasWaldmann> 'CopyPage',  # has questionable behaviour regarding subpages a user can't read, but can copy
2009-03-01T15:22:41  <ThomasWaldmann> not sure about security implications
2009-03-01T15:23:08  <ThomasWaldmann> esp. since we have hierarchic ACLs, there could be some
2009-03-01T15:25:12  <RaphaelBossek> ok in my word: if a user can not read the page he is able to make a copy of that page; I think read and copy should be the same but CopyPage does not consinder that
2009-03-01T15:26:23  <ThomasWaldmann> yes
2009-03-01T15:26:54  <ThomasWaldmann> as long as the ACLs are directly given on the pages you copy, it might be not a big issue
2009-03-01T15:27:04  <RaphaelBossek> yes, CopyPage should be changed; or yes the comment is wrong and should be dropped ?
2009-03-01T15:27:11  <ThomasWaldmann> but if it is on a parent page, it might be different...
2009-03-01T15:28:33  <ThomasWaldmann> i didn't look too deep into that problem. It seems that it might not be easily solveable.
2009-03-01T15:29:11  <RaphaelBossek> ok, while waiting for MOIN_DEBBUGER I'll took a look on it ;-)
2009-03-01T15:33:24  <ThomasWaldmann> ehrm, did you try with MOIN_DEBUGGER=False or not using MOIN_DEBUGGER?
2009-03-01T15:33:44  * ThomasWaldmann will return in 10mins
2009-03-01T15:35:22  <RaphaelBossek> yes, via wikiserverconfig_local.py :-) but exceptions are catched and printed in stdout/stderr what ever
2009-03-01T15:50:51  <ThomasWaldmann> see wsgiapp.py:255
2009-03-01T15:50:58  <ThomasWaldmann> it re-raises them
2009-03-01T15:56:37  <ThomasWaldmann> hmm, there seems to be yet another error handler in werkzeug
2009-03-01T16:00:02  <ThomasWaldmann> werkzeug.serving:136
2009-03-01T16:00:21  <ThomasWaldmann> looks like your request is for mitsuhiko :)
2009-03-01T16:09:03  <RaphaelBossek> but how should mitsuhiko should change the implementation ? what should be the concept of MOIN_DEBUGGER in the case where exceptions should be re-raised ?
2009-03-01T16:09:30  <ThomasWaldmann> he needs to introduce a re-raise feature in his code
2009-03-01T16:09:45  *** aa_ has joined #moin-dev
2009-03-01T16:09:59  <RaphaelBossek> depending on which configuration parameter ?
2009-03-01T16:10:01  <ThomasWaldmann> and moin needs to set everything up so that feature will be enabled for specific values of MOIN_DEBUGGER
2009-03-01T16:10:35  <ThomasWaldmann> hi aa_ :)
2009-03-01T16:11:09  <ThomasWaldmann> aa_: http://hg.moinmo.in/moin/1.9
2009-03-01T16:11:20  <aa_> ThomasWaldmann: hi, jsut cloning it
2009-03-01T16:11:33  <RaphaelBossek> moinmoin aa_, who you are :-)
2009-03-01T16:11:54  <aa_> RaphaelBossek: just a nobody. But I am building a nicer debugging/reloading wsgi server frontend
2009-03-01T16:12:14  <aa_> RaphaelBossek: Thomas indicated that most code reloading fails with moin, but I am going to try to see
2009-03-01T16:12:21  <RaphaelBossek> so you know what we are talking about here ?
2009-03-01T16:12:35  <aa_> RaphaelBossek: not specifically, no
2009-03-01T16:13:27  <ThomasWaldmann> aa_: that failure is likely due to the complicated way moin's scripting framework works
2009-03-01T16:13:32  <aa_> wow, big repo, or slow server :)
2009-03-01T16:14:00  <RaphaelBossek> who will contact mitsuhiko and advice him to make a change ?
2009-03-01T16:14:10  <ThomasWaldmann> first, 50% of it due to historical reasons
2009-03-01T16:14:25  <ThomasWaldmann> RaphaelBossek: i already did on #pocoo
2009-03-01T16:15:22  <ThomasWaldmann> RaphaelBossek: werkzeug is really fine btw, in case you need some wsgi framework for other stuff
2009-03-01T16:15:48  <aa_> <3 werkzeug :)
2009-03-01T16:17:52  <ThomasWaldmann> RaphaelBossek: in case mitsuhiko won't fix it, we can also derive from BaseRequestHandler and replace it's execute method
2009-03-01T16:18:10  <ThomasWaldmann> but I guess he will, because other people will want that feature, too
2009-03-01T16:18:41  <aa_> what feature are you discussing?
2009-03-01T16:19:27  <RaphaelBossek> werkzeug should re-raise exceptions in case you are developing with an standalone server and e.g. an IDE
2009-03-01T16:20:25  <aa_> ah
2009-03-01T16:20:28  <ThomasWaldmann> of course only optionally, otherwise it would kill the wsgi process if sth goes wrong
2009-03-01T16:20:33  <aa_> right
2009-03-01T16:20:42  <aa_> is there an easy way to get the wsgi app?
2009-03-01T16:20:54  <ThomasWaldmann> aa_: MoinMoin/wsgiapp.py
2009-03-01T16:21:47  <ThomasWaldmann> (that will be just moin, without static file server)
2009-03-01T16:22:21  <ThomasWaldmann> see MoinMoin/web/static for the static stuff
2009-03-01T16:22:32  <aa_> that should be enough
2009-03-01T16:22:37  <aa_> woah, and so it begins :)
2009-03-01T16:22:46  * RaphaelBossek have to change a lot on get PdfAction working with upcomming 1.9
2009-03-01T16:22:49  <aa_> data_dir "/usr/lib/python2.5/site-packages/wsgid/wiki/data" does not exist <-- how??
2009-03-01T16:23:07  <ThomasWaldmann> RaphaelBossek: just ask if there are questions
2009-03-01T16:23:42  <RaphaelBossek> I say only immutable form and new structure for requests...
2009-03-01T16:23:43  <ThomasWaldmann> aa_: if you are in the workdir at the top directory, there is a wikiconfig.py
2009-03-01T16:23:58  <ThomasWaldmann> if . is in sys.path, it will load that from there
2009-03-01T16:23:59  <aa_> ps, the reloader works :)
2009-03-01T16:24:15  <aa_> I am putting . into PYTHONPATH
2009-03-01T16:24:25  <aa_> ah, maybe I am not
2009-03-01T16:25:31  <ThomasWaldmann> aa_: i guess the main problem is on the moin side
2009-03-01T16:26:16  <ThomasWaldmann> we want to be able to use ./wikiserver.py to start the standalone server
2009-03-01T16:26:37  <ThomasWaldmann> otoh, we want to be able to start moin using the "moin" command
2009-03-01T16:26:56  <ThomasWaldmann> to have no duplicate code, wikiserver.py just invokes that command
2009-03-01T16:27:45  <ThomasWaldmann> then it goes through that scripting framework of moin and finally starts the standalone server
2009-03-01T16:27:54  * RaphaelBossek have to go
2009-03-01T16:28:06  <ThomasWaldmann> cu RaphaelBossek :)
2009-03-01T16:28:08  <RaphaelBossek> thanks for your support Thomas, bye
2009-03-01T16:28:36  *** RaphaelBossek has quit IRC
2009-03-01T16:28:38  <aa_> ThomasWaldmann: ok, can I force a data_dir somehow?
2009-03-01T16:28:52  <ThomasWaldmann> it is set in wikiconfig.py
2009-03-01T16:29:16  <ThomasWaldmann> you can also have a wikiconfig_local.py, see the comments in wikiconfig.py
2009-03-01T16:29:23  <aa_> ok
2009-03-01T16:29:31  <ThomasWaldmann> (using an absolute path could help)
2009-03-01T16:29:58  <aa_> ThomasWaldmann: this is broken, by the way: moinmoin_dir = os.path.abspath(os.path.normpath(os.path.dirname(sys.argv[0])))
2009-03-01T16:30:34  <ThomasWaldmann> it assumes you are using ./wikiserver.py :)
2009-03-01T16:30:43  <aa_> that's why its broken :)
2009-03-01T16:31:42  <ThomasWaldmann> __file__?
2009-03-01T16:32:03  <aa_> well, I jsut replaced it with os.path.dirname(__file__)
2009-03-01T16:32:15  <aa_> and I ahve running moin
2009-03-01T16:32:23  <aa_> with reloader, and werkzeug debugger :)
2009-03-01T16:33:34  <ThomasWaldmann> but not started by ./wikiserver.py or via our script stuff
2009-03-01T16:33:50  <aa_> started like: $ PYTHONPATH=`pwd` wsgid --foreground --application MoinMoin.wsgiapp.application --reload --debug
2009-03-01T16:34:58  <aa_> PYTHONPATH=. is also fine
2009-03-01T16:35:08  <ThomasWaldmann> nice :)
2009-03-01T16:35:28  <ThomasWaldmann> is that stuff for werkzeug or is it a separate project?
2009-03-01T16:35:34  <aa_> separate project
2009-03-01T16:35:47  <aa_> http://pypi.python.org/pypi/wsgid
2009-03-01T16:36:01  <aa_> but if mitsuhiko sees sense he will replace the werkzeug stuff with it :)
2009-03-01T16:36:04  <aa_> mitsuhiko: ^^
2009-03-01T16:37:28  <aa_> ThomasWaldmann: anyway, thanks for your help, I jsut wanted to test that the reloader works, and it does, so good luck with everything
2009-03-01T16:37:37  *** aa_ has left #moin-dev
2009-03-01T16:51:36  <CIA-38> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 4619:9edfdbed12a8 1.9/MoinMoin/support/werkzeug/ (6 files in 2 dirs): werkzeug updated
2009-03-01T18:15:08  <CIA-38> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 4620:158a65df340e 1.9/wiki/server/wikiserverconfig.py: update the copy in wiki/server/wikiserverconfig.py with the changes from cs 0e7c007f8ed9
2009-03-01T18:15:10  <CIA-38> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 4621:7000bf88e348 1.9/ (4 files in 4 dirs): MOIN_DEBUGGER=off/web/external
2009-03-01T18:35:53  <dreimark> ThomasWaldmann: I haven't understood why CopyPage was disabled and not RenamePage too if acl_hierarchic is the reason for the first one
2009-03-01T18:52:37  <ThomasWaldmann> i guess you can't rename a page you can't read
2009-03-01T18:53:09  <ThomasWaldmann> (you need even write and/or delete rights)
2009-03-01T18:54:15  <ThomasWaldmann> while copypage (iirc) copies everything below some page, no matter whether you are allow to read it or not
2009-03-01T19:04:26  <dreimark> you can rename a page to another level or a subpage to a mainpage
2009-03-01T19:05:11  <dreimark> in that case you change the rigths to the defaults
2009-03-01T19:06:32  <dreimark> and you rename all subpages of that page similiar to copy page
2009-03-01T19:09:16  <CIA-38> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 4622:c24b810500b3 1.9/.hgignore: added Eclipse/PyDev files and distutils' MANIFEST to .hgignore
2009-03-01T19:12:35  <ThomasWaldmann> dreimark: look at how self.subpages is initialized to see the difference
2009-03-01T19:13:10  <ThomasWaldmann> for RenamePage it only has pages the user is allowed to delete (thus likely is allowed to read/write also)
2009-03-01T19:13:42  <ThomasWaldmann> for CopyPage, it has ALL subpages, even the ones for which the user is not allowed at all
2009-03-01T19:14:29  <ThomasWaldmann> thus, you can get yourself more access by using CopyPage, but not by using RenamePage
2009-03-01T19:15:23  <ThomasWaldmann> (that doesn't mean you can't do dumb stuff with RenamePage when looking at other people's access rights)
2009-03-01T19:15:57  <ThomasWaldmann> but if you can read a page, you could also print them and pin them to the wall
2009-03-01T19:17:43  <dreimark> hehe, you are right. have not seen that small difference
2009-03-01T19:19:13  <ThomasWaldmann> otoh, that CopyPage behaviour maybe is useful for some people, it is just a bit too dangerous to enable it by default
2009-03-01T19:20:05  * ThomasWaldmann bets we'll have lots of fun with that kind of stuff when ACLs are enforced by the storage backend
2009-03-01T19:23:05  <CIA-38> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 4623:16ee781ef3ad 1.9/MoinMoin/support/werkzeug/serving.py: updated werkzeug
2009-03-01T19:23:13  <dreimark> however if it is enabled it is can be better to restrict it to superuser if acl_hierarchic is enabeld
2009-03-01T19:23:43  <ThomasWaldmann> ok, now using an external debugger should work and be well behaved (with MOIN_DEBUGGER=external)
2009-03-01T19:24:50  <ThomasWaldmann> dreimark: or better simply reject copying if not all pages are readable
2009-03-01T19:25:07  <ThomasWaldmann> if the wiki admin has global read rights, it'll work for him
2009-03-01T19:25:33  <ThomasWaldmann> if someone else copies a page+subpages he can completely read, it'll work also for him
2009-03-01T19:26:31  <ThomasWaldmann> of course that spoils maybe some strange applications where you are required to copy pages that are not readable for you
2009-03-01T19:28:06  * ThomasWaldmann feels like releasing beta2 today
2009-03-01T19:28:33  <dreimark> there are still much changes are done :)
2009-03-01T19:42:37  <ThomasWaldmann> hmm, with the standalone server, I have lots of 304 responses for the static files now
2009-03-01T19:44:57  <ThomasWaldmann> Expires: Sun, 01 Mar 2009 15:55:40 GMT < huh?!
2009-03-01T19:48:44  <dreimark> if it would be idl and not python I would guess integer overflow
2009-03-01T19:50:29  <dreimark> CopyPage is more complicated I think we have also to check if the rights become changed at the place where the copy is stored
2009-03-01T19:54:23  <ThomasWaldmann> i guess we'll have another werkzeug update soon
2009-03-01T21:05:27  * ThomasWaldmann has a new way to setup pathes for wikiconfig
2009-03-01T21:06:03  <TheSheep> how?
2009-03-01T21:06:34  <TheSheep> randomize a path and create it? ;)
2009-03-01T21:12:37  * dreimark waits too
2009-03-01T21:13:13  <ThomasWaldmann> that ./data and ./underlay always made trouble (people of course do not read the note about better using absolute pathes)
2009-03-01T21:13:27  <ThomasWaldmann> otoh we can not know where people put their stuff
2009-03-01T21:13:58  <ThomasWaldmann> so I am just assuming some structure relative to __file__ (of wikiconfig.py)
2009-03-01T21:14:13  <ThomasWaldmann> for the toplevel wikiconfig this is:
2009-03-01T21:14:17  <ThomasWaldmann> wikiconfig.py
2009-03-01T21:14:20  <ThomasWaldmann> wiki/
2009-03-01T21:14:27  <ThomasWaldmann>      data/
2009-03-01T21:14:31  <ThomasWaldmann>      underlay/
2009-03-01T21:15:04  <ThomasWaldmann> for the wikiconfig we have under wiki/config/ as a sample, this is:
2009-03-01T21:15:22  <ThomasWaldmann> x/
2009-03-01T21:15:27  <ThomasWaldmann>   wikiconfig.py
2009-03-01T21:15:30  <ThomasWaldmann>   data/
2009-03-01T21:15:34  <ThomasWaldmann>   underlay/
2009-03-01T21:16:19  <ThomasWaldmann> (with x being determined automatically by os.path.dirname(__file__) in wikiconfig)
2009-03-01T21:17:50  <ThomasWaldmann> for farm setups we can do clever things using the config name
2009-03-01T21:19:33  <ThomasWaldmann> we could even rearrange stuff a bit to have:
2009-03-01T21:19:41  <ThomasWaldmann> instance/
2009-03-01T21:19:53  <ThomasWaldmann>          wikiconfig.py
2009-03-01T21:20:00  <ThomasWaldmann>          data/
2009-03-01T21:20:07  <ThomasWaldmann>          underlay/
2009-03-01T21:20:23  <ThomasWaldmann> as a ready-to-copy instance structure within the moin dist archive
2009-03-01T21:20:30  <dreimark> unfortunately we only recognize people who did not read. if I can use underlay from a different dir I am happy with the change
2009-03-01T21:20:55  <ThomasWaldmann> you can always set it to a constant path
2009-03-01T21:22:36  <ThomasWaldmann> btw, this was triggered by the guy noticing that sys.argv[0] is a bad idea...
2009-03-01T21:23:58  <dreimark> may be we shuld add a script also to create a moin instance to the cmd line tool
2009-03-01T21:31:06  <dreimark> hmm, the unknown parameter of such a change is how do the package maintainers make our live again more complicated
2009-03-01T21:37:43  <ThomasWaldmann> they may have to change it, e.g. if they have /etc/moin/wikiconfig.py but not the data/underlay in there
2009-03-01T21:41:17  <TheSheep> I like the idea of dosing things relative to wikiconfig
2009-03-01T21:41:22  <TheSheep> doing*
2009-03-01T21:41:47  <TheSheep> it could be done iff the paths are not defined in the config
2009-03-01T21:41:56  <TheSheep> this way it won't break existing configuration
2009-03-01T21:42:32  <ThomasWaldmann> currently I am just changing the sample configs,
2009-03-01T21:42:45  <ThomasWaldmann> not how data_dir, underlay_dir etc. works
2009-03-01T21:43:10  <ThomasWaldmann> (we need to change THAT later, with storage merge)
2009-03-01T21:57:17  <CIA-38> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 4624:fb5abe50c6d2 1.9/ (3 files in 3 dirs): wikiconfig/farmconfig: improve values for data(_underlay)_dir, make logo work automatically, fix wiki regex samples in farmconfig
2009-03-01T21:57:27  <ThomasWaldmann> ok, look there ^^
2009-03-01T21:58:56  <ThomasWaldmann> next thing we could turn upside down is:
2009-03-01T21:59:10  <ThomasWaldmann> mv wiki instance
2009-03-01T21:59:28  <ThomasWaldmann> mv instance/config docs/config
2009-03-01T21:59:37  <ThomasWaldmann> mv instance/server docs/server
2009-03-01T22:00:27  <ThomasWaldmann> mv docs/config/wikiconfig.py instance/wikiconfig.py
2009-03-01T22:02:21  <ThomasWaldmann> that would make instance creation: cp -r instance /where/ever/you/want/it/
2009-03-01T22:02:53  <ThomasWaldmann> at least for a single wiki
2009-03-01T22:04:25  <dreimark> hmm, the semantic name change is ok. but the copy should not be based on the standalone wiki. because then you've to remove cache pages and users
2009-03-01T22:06:37  <ThomasWaldmann> there are no cache pages and users if you unpack our download
2009-03-01T22:07:00  <dreimark> yes but if you have tried it by using the standalone server first
2009-03-01T22:07:03  <ThomasWaldmann> and if you first use it standalone and then create instances from it, that's your problem then :)
2009-03-01T22:07:10  <dreimark> usually people try first before they install
2009-03-01T22:07:43  <ThomasWaldmann> this is in no way different to what we had for the last years
2009-03-01T22:07:46  <dreimark> the first instance to use with the standalone server needs to be a copy
2009-03-01T22:08:01  <dreimark> I know and it makes trouble
2009-03-01T22:08:17  <ThomasWaldmann> standalone == runs out of the box
2009-03-01T22:08:23  <ThomasWaldmann> thus no copying
2009-03-01T22:08:39  <dreimark> setup.py create_instance
2009-03-01T22:08:43  <ThomasWaldmann> you can always unpack the download again or clear the caches
2009-03-01T22:10:38  <dreimark> currently our tests are based on our private wiki instance
2009-03-01T22:11:07  <ThomasWaldmann> oh, that reminds me....
2009-03-01T22:12:09  <ThomasWaldmann> no, false alarm :)
2009-03-01T22:14:33  <dreimark> tests don't work for me
2009-03-01T22:15:12  <dreimark> /usr/lib/python2.5/site-packages/py-0.9.2-py2.5-linux-x86_64.egg/py/path/local/local.py:397: ImportError
2009-03-01T22:15:21  <dreimark> whatever this means now
2009-03-01T22:16:44  <ThomasWaldmann> looks strange :)
2009-03-01T22:17:59  *** grzywacz has joined #moin-dev
2009-03-01T22:18:00  <ThomasWaldmann> dreimark: you just ran py.test from the toplevel dir?
2009-03-01T22:18:16  <dreimark> I did and the last message is ImportError: No module named moin-1.9
2009-03-01T22:19:34  <ThomasWaldmann>  tests finished: 1146 passed, 74 skipped in 179.43 seconds
2009-03-01T22:20:42  * ThomasWaldmann killed tests/wiki and runs tests again
2009-03-01T22:21:15  <dreimark> http://paste.pocoo.org/show/106116/
2009-03-01T22:22:51  <dreimark> may be instead of letting the user copy we do it by  setup.py create_instance
2009-03-01T22:23:02  <dreimark> also that can be called from the tests
2009-03-01T22:23:11  <dreimark> a fresh clone runs it
2009-03-01T22:23:51  <dreimark> tests finished: 1173 passed, 68 skipped in 87.01 seconds
2009-03-01T22:23:58  <ThomasWaldmann> hmm, strange
2009-03-01T22:24:25  <ThomasWaldmann> I am not very keen on more distutils based stuff
2009-03-01T23:13:56  <CIA-38> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 4625:1c60c378eb1a 1.9/MoinMoin/support/werkzeug/ (__init__.py contrib/fixers.py contrib/lint.py serving.py): updated werkzeug
2009-03-01T23:36:57  *** ChanServ sets mode: +o ThomasWaldmann
2009-03-01T23:37:43  *** ThomasWaldmann sets mode: +b *!*@*.ukrtel.net
2009-03-01T23:46:16  *** ChanServ sets mode: -o ThomasWaldmann
2009-03-01T23:49:08  *** ChanServ sets mode: +o ThomasWaldmann

MoinMoin: MoinMoinChat/Logs/moin-dev/2009-03-01 (last edited 2009-03-01 00:00:02 by IrcLogImporter)