mir coders IRC meeting
mir-coders, 13.09.2001 20:23
mir coders IRC meeting.
[gilad] how does the freemarker page production interaction go?
[gilad] where are freemarker variables defined?
[gilad] if i want to create a new page, how do i know what freemarker variables are available for me to use (i suppose i could look at other pages, but is theere any other way to know?)
[idefix] hm
[idefix] ok.
[idefix] the freemarker varibales are created in the producer*.java and in servletmodule*.java
[idefix] mostly they are simpleHashes
[idefix] in these simplehashes there are other variables
[idefix] if you code: SimpleHash mergeData = new SimpleHash()
[idefix] mergeData.add(?test?,"bla?);
[idefix] then the variable in the template is ${test}
[gilad] and the value is ?bla? ?
[idefix] or if in the simplehash are other hashes or lists
[idefix] yes
[idefix] if you add a hash in the hash
[idefix] f.e. mergeData.add(?test?,otherHash);
[idefix] then in freemarker:
[idefix] test.otherHash
[idefix] and so on
[gilad] ${test.otherHash}
[gilad] ok, cool.
[gilad] so every page that gets produced has a Producer*.java, correct?
[idefix] yes
[idefix] the hole freemarkerthing ist in HTMLTemplateProcessor.java
[gilad] and Freemarker variables are not shared between these?
[gilad] oh
[idefix] there are funktions like
[idefix] ?
[gilad] nevermind,.. go ahead
*** rhindes has joined #mir
[idefix] there are funktions like
[idefix] mom
[idefix] deliver()
[gilad] i donīt see deliver()..
[gilad] i see process()
[gilad] and makeSimpleHash...
[idefix] process
[rhindes] sorry, i get disconnects
[gilad] in HTMLTemplateProcessor.java
[rhindes] nobodies showing up...
[idefix] makeSimplehash creates a simpleHash out of f.e. HashMap
[idefix] but your question is a really good question
[idefix] the variables of the producers should be documented and good named
[gilad] javadoc would prolly be enough.
[gilad] a sort of designers manual too i guess..
[idefix] yes
[gilad] designers shouldnīt have to touch java..
[gilad] or necessarily look at it..
[gilad] what package is SimpleHash in?
[gilad] i canīt find it..
[idefix] its a freemarkerthing
[idefix] in freemarker you have different types of variables
[idefix] all varibales are strings or lists or hashes of stings
[idefix] strings are calles simplescalar
[idefix] simplelist
[idefix] simplehash
[idefix] the mother of all are templatemodelroot
[gilad] oh, i see....
[gilad] i need feemarker javadocs...
[idefix] freemarker.sourcefourge.net
[gilad] yup.
[idefix] ok, now waht should we do with this meeting?
[gilad] ummm....well, i suppose i can give a report on my end...
[idefix] ok
[gilad] iīve been swamped with trying to get things done with our servers here in barcelona and our PHP code (trying to integrate a PHP features management system into our version of active)
[rhindes] i donīt know. i guess itīs hard to just go on in this situation. everybody seems to have better things to do for now.
[gilad] for me, itīs really a time issue. if i could i would drop out of working and do Mir for a couple of months..
[gilad] but there are definitely people looking at the code..
[gilad] and word is getting out.
[idefix] hm my prob is, that i have time for mir now, but in the next weeks not anymore
[gilad] and i will pressure kellan to get things done.
[gilad] when are you starting to work?
[idefix] that would be cool
[rhindes] i have to work next week, too
[gilad] where do you want the code to be before you start?
[idefix] next week or the week after net week
[idefix] :)
*** tugelblen has joined #mir
[idefix] hi
[tugelblen] hallo
[rhindes] tach.
[tugelblen] hi
[idefix] speek english or die ;)=
[idefix] hi
[rhindes] who are you, tugelblen?
[tugelblen] Iīm a media & computerscience student from berlin (just like idefix) :)
[rhindes] ah. oki.
[idefix] did you all see the tdo-list?
[gilad] yes
[idefix] ok.
[idefix] i thought that we can reach version 1.0 until mid of october
[idefix] that would be my first goal
[gilad] so version 1.0.... i donīt exactly understand:
[gilad] c) Coverage: Alternative start-page for e.g. a event like genua. every
[gilad] article that has something to do with this event can be seen on this page.
[idefix] :)
[gilad] wouldnīt this just mean replacing the start page with one of the categories?
[idefix] my english is fucking bad
[gilad] lol
[gilad] no, my understanding is vague..
[idefix] i mean: that there are special-event-startpages
[idefix] f.e. de.indymedia.org/genua/index.shtml
[gilad] how/why are they different than categories?
[idefix] f.e. there categories like repression, economy, ....
[tugelblen] f.e.: the links are shorter, easier, nicer to publish...
[idefix] and all the articles are sorted in this categories
[idefix] but are articles covering genua
[idefix] so we have a alternative startpage with all these articles
[idefix] ?
[gilad] hmm..... so every event would also have categories?
[idefix] yes
[gilad] (gilad feels dumb..)
[idefix] and no
[gilad] oh ok..,.
[gilad] oh
[gilad] ;)
[idefix] every event is a coverage
[idefix] ok?
[idefix] look at www.nadir.org
[idefix] there are themen (==topics)
[idefix] and there are schwerpunkte (==coverages)
[gilad] momo
[gilad] mom
[idefix] every article at nadir has a topic and a coverage
[idefix] every article at Mir can have few topics and a coverage
[idefix] ok?
[idefix] my question on all these things are
[idefix] who does waht
[gilad] ok.. iīm back..
[gilad] so yes, the video and multimedia upload stuff is supposedly being done by kellan..
[gilad] iīll really try to get on him about getting it done..
[idefix] but kellan doesnt have internet, ...
[idefix] there is not much to do
[idefix] ok there are two things:
[idefix] 1.) multifile
[idefix] 2) mediafile
[gilad] right..
[gilad] how do you think multifile should work?
[idefix] de multifilesthing is a question by changing openmir
[idefix] like in active
[gilad] i was about to saay...
[gilad] ;)
[idefix] you can choose how many files you want to upload
[idefix] then the form is changing
[gilad] whatīs the module that deals with the uploaded file?
[idefix] ok there is a class, webdbmultipart.java in mir/misc
[gilad] ok..
[idefix] this class pathes the orreily-thing
[idefix] the servletmodule ist servletmoduleopen
[idefix] the servlet itself is openmir
[idefix] openmir has implemented the upload of one file each article
[idefix] another thing is to create a new table
[idefix] ?uploadedfiles?
[idefix] there has to be filename,mime-type, ...
[idefix] but thats multmedia-upload
[gilad] well, it could apply to single uploads as well, no?
[gilad] i think it should
[gilad] mediaTable
[idefix] there is a table called media
[idefix] the images and content-table inherit this table
[gilad] oh, ok..
[idefix] uploadedfiles shoul inherit this table too
[gilad] off topic: so is the MultipartParser really as easy as it looks (in misc/WebMultiPartRequest.java) ?
[gilad] can it fiugre out mime types..
[idefix] yes.
[idefix] look at ServletModuleOpen
[idefix] theLog.printDebugInfo(?ContentType: ?+mp.getContentType());
[idefix] this prints out the mime-type
[gilad] ServletModuleOpenIndy ?
[idefix] y[es
*** rhindes has quit IRC (Ping timeout: 180 seconds )
*** rhindes has joined #mir
[gilad] so the tables...
[idefix] another thing is, the producerContent.java has to know what to do with the mime-types
[idefix] a realaudio-file has another link as a flashmovie
[idefix] or ....
[gilad] i need a map...
[idefix] :)
[idefix] ok, perhaps i should explain a bit the layers of the code
[gilad] itīs probably that i need to spend more time with it...
[gilad] but i am having a hard time grasping the order of events..
[idefix] :)
*** rhindes has quit IRC (Ping timeout: 180 seconds )
*** rhindes has joined #mir
[idefix] perhaps rhindes could translate the text he wrote about the codestructure
[gilad] that would be good..
[rhindes] the short one?
[idefix] yes
[idefix] perhaps a bit more
[rhindes] STRUKTUR.txt?
[idefix] yes
[rhindes] iīll try
[idefix] perhaps tugel and me can start with the multifilething
[idefix] first only pictures
[idefix] or we code the multilanguage thing
[idefix] or the coverage thing
[idefix] one of these things i want to do
[tugelblen] iīm ready :)
[idefix] :)
[gilad] it seems multifile and media are top priorities..
[idefix] ok
[gilad] (but thatīs justm my opinion..)
[idefix] the multlanguage thing is second?
[idefix] i think thats true
[gilad] umm.. probably..
[gilad] most sites are in one language.
[idefix] yes
[gilad] how hard would it be for openMir to be multilingual like Mir
[gilad] ?
[idefix] this would be good for a europe.indy or a spanishstate.indy
[idefix] it is
[idefix] the template has to be translated
[idefix] aaaaah.
[gilad] oh.. (iīve been spending most of my time with Mir, not OpenMir.)
[idefix] another thing is needed
[idefix] we should create a samplelayout
[idefix] with documented templates
[idefix] and mir should be more ergonomic
[gilad] isnīt that already there (samplelayout).?
[idefix] its the layout of de.indy
[idefix] and that is not very nice
[gilad] oh, i thought the new CVS is the layout of mir.indy.de
[idefix] (i hate it)
[idefix] no
[gilad] maybe it should be..
[idefix] but this would be a good thing
[idefix] ok
[gilad] i kinda like it..
[gilad] joan and i will fix style sheets and fonts..
[idefix] the german layout?
[gilad] no, the mir.indy layout..
[idefix] ok
* gilad clarifies: i like the mir.indymedia.de layout.
* gilad not the de.indymedia.org layout.
[gilad] ;)
* idefix just thought, ....
[idefix] but mit should be more consequent
[idefix] but mir should be more consequent
[idefix] (sorry)
[gilad] so should we swap the layout in the CVS for mir.indy?
[gilad] consequent?
[idefix] yes
[gilad] what do you mean (you and your funny english..)
[gilad] ?
[idefix] :)
[idefix] in the ergonomic
[idefix] forms or normal links
[idefix] ....
[gilad] ah, the look..
[gilad] ok, iīll work with joan on it.
[idefix] yes
[idefix] cool
[rhindes] ok i go now, should we make another date for the next round?
[idefix] yes
[gilad] can i ask one last question?
[idefix] yes
[gilad] iīm having trouble with my install. it saves the producer files as .shtml
[gilad] but then the links want to go to .html
[idefix] yes
[idefix] ?
[idefix] ah, yes this is the problem of the samplelayout templates
[gilad] links to articles are like 9.html but the file is actually called 9.shtml
[gilad] oh, thatīs a template thing? ok..
[gilad] iīll fix it then..
[idefix] you have to change the html in shtml int the template
[idefix] another thing: it should be configurable to change between direct and indirect openposting
[idefix] but this only a new variable in config.prop
[gilad] you mean openposting that gets published right away, and one that doesnīt?
[idefix] (i will do that)
[idefix] yes
[idefix] ok some summary?
[gilad] yeah, that would be great...
[gilad] i will post the irc log
[idefix] rhindes: translates the structure.txt
[idefix] gilad: layout of Mir
[idefix] idfx: direct/indirect openposting
[gilad] idefix: too much.. sorry.
[idefix] idfx: samplelayout in cvs
*** rhindes has quit IRC (Read error: 104 (Connection reset by peer) )
[idefix] toomuch?
[idefix] idfx/tugel: multifile
[idefix] idfx/tugel: first steps of multimedia
[idefix] ok?
[idefix] then:
[tugelblen] yes
[idefix] mj (antoher german coder): documentation of config.prop ans installation
[gilad] cool..
[gilad] gilad: continuing to do multilingual support attemps..
[idefix] perhaps gilad can think about a concept
[idefix] (i have made some thoughts, but, ...
[idefix] )
[gilad] i will try to put up an example tonight...
[gilad] i have it almost done..
[idefix] gilad: a interessting question is: how can topics and coverages be translated?
[idefix] gilad: cool
[idefix] where will you put it?
[gilad] u,,,
[gilad] mir.indy maybe..
[idefix] ok in a subdir
[gilad] if i still have access after breaking publshing the other day ;)
[idefix] ok
[idefix] next meeting?
[gilad] hmm....i will be gone either next week or the one after...
[gilad] can we announce on email..? two weeks?
[idefix] next week
[idefix] why not
[gilad] iīm not sure iīll be around..
[gilad] (next week)
[tugelblen] Iīll be there
[gilad] (but iīm also not needed..)
[idefix] then let us say in two weeks a big meeting
[idefix] announced by email and so on
[tugelblen] ok
[idefix] and if somebody has problems or things to clarify we can meet us spontanously in this channel
[gilad] sounds good
[idefix] ok
[idefix] cool
[gilad] thanks everyone..
[idefix] :)
[gilad] iīll post a story on mir... and on tech.indymedia.org.. (meeting log)
[idefix] ok
|