Hi,
I'm adding sibling information to the Block API in the rendering module. There are 3 reasons for this:
1) It'll make a lot of existing method implementations much faster since right now in order to insert or find blocks we have to traverse the list/tree.
2) There's a bug in the current implementation for SpaceBlock since it's immutable and we have a single instance of it. Thus when there are several SpaceBlock in a list doing a list.indexOf(SpaceBlock) will always return the first space block even if you're looking for a subsequent space block.
3) I'm implementing a generic emoticon Transformation and I need to get the sibling of a block.
Just shout if you think there's a better way of doing it. I'm implementing it now.
Thanks
-Vincent
Hi all!
Please, is possible to include Velocity script in documents' title of a
1.3.8295 installation? Thanks!
Cheers,
Ricardo
--
Ricardo RodrÃguez
CTO
eBioTIC.
Life Sciences, Data Modeling and Information Management Systems
The XWiki development team is pleased to announce the release of XWiki
Enterprise and XWiki Enterprise Manager 2.4.4.
Important bug fixed:
* XWIKI-5542 - Different rights in view and rest mode
* XWIKI-5597 - File upload plugin doesn't strip the file path in IE
* XWIKI-5598 - When importing a XAR, ignoring translated documents
does not work
* XWIKI-5309 - rest api query called by XE JumpToPage causes
performance problem and even deadlock
* XWIKI-5387 - Apache commons URIUtil is potentially unsafe
* XWIKI-4366 - Blockquote is badly parsed when multiple lines are
styled together
* XWIKI-5525 - DBList request level cache is ignored
* XWIKI-5591 - HTML to Wiki Syntax 2 looses color in certain cases
* XWIKI-5599 - In the XAR importer UI, the initial space document
count is wrong whenever that space has translated documents
* XWIKI-5530 - LDAP module: Impossible to login with the same UID
if your DN changes
* XWIKI-5523 - NPE during parsing of a sequence
table/style/paragraphe/paragraphe
* XAANNOTATIONS-32 - Highlight does not disappear after deleting
the last annotation from a page
For more information see the Releases notes at:
http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesXWikiEnterprise244
and http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesXEM244
Thanks
-The XWiki dev team
Hi devs,
I'd like to start releasing 2.5 this Friday, so that users can test the
build until Monday.
Are there still blocking issues that you'd like to fix?
--
Sergiu Dumitriu
http://purl.org/net/sergiu/
Hello guys !
I am starting working on converting the documents in space Panels.
In case anybody is working on it right now, please let me know :)
Stefan
Because the storage of large attachments is limited by database constraints and the fact that the
JDBC does not allow us to stream content out of the database, I propose we add a new database table
binarychunk.
The mapping will read as follows:
<class name="com.xpn.xwiki.store.hibernate.HibernateBinaryStore$BinaryChunk" table="binarychunk">
<composite-id unsaved-value="undefined">
<key-property name="id" column="id" type="integer" />
<key-property name="chunkNumber" column="chunknumber" type="integer" />
</composite-id>
<property name="content" type="binary">
<column name="content" length="983040" not-null="true"/>
</property>
</class>
Notice the maximum length (983040 bytes) is a number which is divisible by many common buffer sizes
and is slightly less than the default max_packet_size in mysql which means that using the
xwikibinary table, we could store attachments of arbitrary size without hitting mysql default limits.
com.xpn.xwiki.store.BinaryStore will contain:
@param toLoad a binary object with an id number set, will be loaded.
void loadObject(BinaryObject toLoad)
@param toStore a binary object, if no id is present then it will be given one upon successful
store, if id is present then that id number will be used.
void storeObject(BinaryObject toStore)
This will be implemented by: com.xpn.xwiki.store.hibernate.HibernateBinaryStore
com.xpn.xwiki.doc.BinaryObject will contain:
void setContent(InputStream content)
OutputStream setContent()
InputStream getContent()
void getContent(OutputStream writeTo)
Note: The get function and set functions will be duplicated with input or output streams to maximize
ease of use.
This will be implemented by com.xpn.xwiki.doc.TempFileBinaryObject which will store the binary
content in a temporary FileItem (see Apache commons fileupload).
+ This will be able to provide a back end for not only attachment content, but for attachment
archive and document archive if it is so desired.
+ I have no intent of exposing it as public API at the moment.
WDYT?
Caleb
Hi,
In order to implement support for icons/symbols in the rendering (see ), we need to add an API to return an icon URL based on the icon name.
public interface SkinAccessBridge
{
...
/**
* @param iconName the standard name of an icon (it's not the name of the file on the filesystem, it's a generic
* name, for example "success" for a success icon
* @return the URL to the icon resource
* @since 2.6M1
*/
String getIconURL(String iconName);
}
+1 from me.
Thanks
-Vincent
Hi,
We currently have 2 methods introduced in 2.5 timeframe in the WikiModel class:
String getAttachmentURL(ResourceReference attachmentReference);
String getImageURL(ResourceReference attachmentReference, Map<String, String> parameters);
I think we should merge them into a single method in charge of returning the URL of any resource reference:
getResourceURL(ResourceReference reference, Map<String, String> parameters);
Note that this would assume that all references have a URL associated to them. It's not always true (it's true for documents, attachments, url, interwiki and the future icon/symbol but false for path and mailto). We could return null for resource types that have no associated URLs.
The reason I'm proposing this because in order to implement support for symbol/icon I'd need to add a new method to WikiModel: getIconURL(ResourceReference iconReference) but I feel it's better to have a single getResourceURL().
WDYT?
Thanks
-Vincent
Hi devs,
I'd like to propose 3 things:
1) Add support for symbols/emoticons using our new system in XWiki Syntax 2.1, i.e.
image:symbol:<symbol name>
Another possibility is: image:icon:<icon name>
ex: image:symbol:success (for the success symbol)
2) Use the existing silk icon library and be able to reference all icons using their file names as the symbol name.
For ex, image:symbol:thumb_up
3) Modify the Box macro to accept a ResourceReference as its image parameter so that all valid image resource references can be specified (including the new symbol/icon scheme).
WDYT?
This will solve the emoticon/symbol need + the generic way of adding a box with any symbol.
Open questions:
A) Do we need to handle icon size? If so, how? (answer: with an image parameter)
B) Do we want to expose all silk icons? What if we use another library later on, will we be able to support all existing silk symbols? Thus, do we need to pick a subset and settle on names independent from the underlying library?
For A) IMO we don't need it now and we can always use an image param later on if need be.
For B) I'm tempted to think that a set of well-known symbols independent from the underlying library is better (but more work since we need to define that set and the names).
Thanks
-Vincent