Julian Tree | 6 Sep 04:03
Picon

HopObject Constructor

Is there a way to override the hopobject constructor so we can set  
some default value into the HopObject when it is first created. So  
when all the subclass are created it will inherit  parent class's  
constructor as well

For example, something like

HopObject._constructor = function(){
	this.creationtime = new Date();
	this.user	= session.user.username;
}

Later when I do (assuming Job is user defined HopObject)

var job = new Job();
res.write(job.creationtime); // output current time

I've searched the mailing list did find a few messages about "Allow  
prototypename for constructor function"
http://helma.org/pipermail/helma-dev/2006-April/002701.html

but there is no documentation on how to use it, and it seems to have  
some problem with inheritance.

Julian 
Simon | 8 Sep 00:20

Navigation layout in type properties

Hi,

I've been playing around with Helma for some simple projects and  
would like to take it further (with the aim of using it for some  
client projects), but I was wondering what would be the ideal  
solution to layout the following structure?

Lets say if there was a top navigation (usual client stuff - about  
us, contact etc). I would like to add/remove these items for  
flexibility, then each item could have content associated with that,  
but this is where I get a bit stuck, I want content to be associated  
with that content or its children, and so forth.

Navigation 1
----- Content 1
---------- Sub Content 1
---------- Sub Content 2
---------------- Sub Sub Content 1
----- Content 2
---------- Sub Content 3
Navigation 2
----- Content 3

I hope I'm not asking to much, but it would be really beneficial if  
when done, to make a small test app for the Helma site so people can  
see how this might be ideally done. Maybe sit along side the address  
book tutorial.

If there is an existing project already out there sorry for my ignorance

(Continue reading)

Simon | 10 Sep 16:18

Re: Navigation layout in type properties

Hi all,

It looks like there is an existing project out there that fits my  
needs: Gobi (http://gobi.helma.at). It has the basic blocks I need to  
learn off...

I'm just curious to wonder why this page (http://helma.org/projects/)  
doesn't get updated more often, to show new users the possibilities  
of Helma?

thanks
simon

On 7 Sep 2006, at 23:20, Simon wrote:

> Hi,
>
> I've been playing around with Helma for some simple projects and
> would like to take it further (with the aim of using it for some
> client projects), but I was wondering what would be the ideal
> solution to layout the following structure?
>
> Lets say if there was a top navigation (usual client stuff - about
> us, contact etc). I would like to add/remove these items for
> flexibility, then each item could have content associated with that,
> but this is where I get a bit stuck, I want content to be associated
> with that content or its children, and so forth.
>
> Navigation 1
> ----- Content 1
(Continue reading)

Julian Tree | 11 Sep 16:18
Picon

Re: Navigation layout in type properties

There is also this gobble


a kernel for building various types of websites on top
of the Helma object publisher.  I think Hannes wrote that. 

I do agree that projects likes should be more visible  from one of the main navigation pages. 




On Sep 10, 2006, at 10:18 AM, Simon wrote:

Hi all,

It looks like there is an existing project out there that fits my  
needs: Gobi (http://gobi.helma.at). It has the basic blocks I need to  
learn off...

I'm just curious to wonder why this page (http://helma.org/projects/)  
doesn't get updated more often, to show new users the possibilities  
of Helma?


thanks
simon



On 7 Sep 2006, at 23:20, Simon wrote:

Hi,

I've been playing around with Helma for some simple projects and
would like to take it further (with the aim of using it for some
client projects), but I was wondering what would be the ideal
solution to layout the following structure?

Lets say if there was a top navigation (usual client stuff - about
us, contact etc). I would like to add/remove these items for
flexibility, then each item could have content associated with that,
but this is where I get a bit stuck, I want content to be associated
with that content or its children, and so forth.

Navigation 1
----- Content 1
---------- Sub Content 1
---------- Sub Content 2
---------------- Sub Sub Content 1
----- Content 2
---------- Sub Content 3
Navigation 2
----- Content 3

I hope I'm not asking to much, but it would be really beneficial if
when done, to make a small test app for the Helma site so people can
see how this might be ideally done. Maybe sit along side the address
book tutorial.

If there is an existing project already out there sorry for my  
ignorance

thank-you
simon

_______________________________________________
Helma-user mailing list

_______________________________________________
Helma-user mailing list

Julian Tree
Phone: (212) 202-0407


_______________________________________________
Helma-user mailing list
Helma-user <at> helma.org
http://helma.org/mailman/listinfo/helma-user
Simon | 11 Sep 16:53

Re: Navigation layout in type properties

Thank-you Julian.

this is a much cleaner example.

cheers
simon


On 11 Sep 2006, at 15:18, Julian Tree wrote:

There is also this gobble


a kernel for building various types of websites on top
of the Helma object publisher.  I think Hannes wrote that. 

I do agree that projects likes should be more visible  from one of the main navigation pages. 




On Sep 10, 2006, at 10:18 AM, Simon wrote:

Hi all,

It looks like there is an existing project out there that fits my  
needs: Gobi (http://gobi.helma.at). It has the basic blocks I need to  
learn off...

I'm just curious to wonder why this page (http://helma.org/projects/)  
doesn't get updated more often, to show new users the possibilities  
of Helma?


thanks
simon



On 7 Sep 2006, at 23:20, Simon wrote:

Hi,

I've been playing around with Helma for some simple projects and
would like to take it further (with the aim of using it for some
client projects), but I was wondering what would be the ideal
solution to layout the following structure?

Lets say if there was a top navigation (usual client stuff - about
us, contact etc). I would like to add/remove these items for
flexibility, then each item could have content associated with that,
but this is where I get a bit stuck, I want content to be associated
with that content or its children, and so forth.

Navigation 1
----- Content 1
---------- Sub Content 1
---------- Sub Content 2
---------------- Sub Sub Content 1
----- Content 2
---------- Sub Content 3
Navigation 2
----- Content 3

I hope I'm not asking to much, but it would be really beneficial if
when done, to make a small test app for the Helma site so people can
see how this might be ideally done. Maybe sit along side the address
book tutorial.

If there is an existing project already out there sorry for my  
ignorance

thank-you
simon

_______________________________________________
Helma-user mailing list

_______________________________________________
Helma-user mailing list

Julian Tree
Phone: (212) 202-0407


_______________________________________________
Helma-user mailing list

_______________________________________________
Helma-user mailing list
Helma-user <at> helma.org
http://helma.org/mailman/listinfo/helma-user
Franz Philipp Moser | 15 Sep 10:44
Picon

invalidate() does not work on grouped collections

Hi list,

I have a children collection in a NewstickerMgr mounted on Root 
(newstickermgr = mountpoint(NewstickerMgr)):

_children                 = collection(NewstickerEntry)
_children.group           = NTE_COUNTRY
_children.group.prototype = NewstickerCountry
_children.order           = NTE_ORDER ASC
_children.readonly        = true

As you can see I have them grouped by the country column.

These two things don't work:

Root.newstickermgr.invalidate();
Root.newstickermgr.get("de").invalidate();

In the SQL logs I see the following for the second statement:
SQL SELECT_IDS NEWSTICKERENTRIES 0: SELECT NEWSTICKERENTRIES.NTE_ID FROM 
NEWSTICKERENTRIES WHERE NEWSTICKERENTRIES.NTE_COUNTRY = 'de' ORDER BY 
NTE_ORDER ASC

But I still get the old values when doing:
Root.newstickermgr.get("de").get(something);

I need this because the values for the newsticker are inserted by an 
separate update script witch inserts directly into the database.

I know I can do this with a workaround for example mount collections for 
every needed country or doing a seperate sql statement, but I'd like to 
do this with helma group functionality.

Can somebody help, please?

cu Philipp
--

-- 
XML is the ASCII for the new millenium
(Cocoon Documentation)
Julian Tree | 16 Sep 01:04
Picon

Posting to URL

I have searched the Mailing list for some way to make HTTP POST
request to another server, something like CURL.  I would like to POST
text as well as files.

I found this http://helma.org/pipermail/helma-user/2003-April/005189.html,

 but it looks like a dead end. I don't really know how to write a
Helma extension using java, are there any available examples? Thanks,

Julian
tobias.schaefer | 16 Sep 17:58
Picon
Favicon

Re: Posting to URL

julian

doesn't helma.Http do what you're looking for?

http://adele.helma.org/source/viewcvs.cgi/modules/helma/Http.js?rev=1.2&content-type=text/vnd.viewcvs-markup

t

-----Original Message-----
From:	helma-user-bounces <at> helma.org on behalf of Julian Tree
Sent:	Sat 16-Sep-06 01:04
To:	Helma User Mailing List
Cc:	
Subject:	[Helma-user] Posting to URL

I have searched the Mailing list for some way to make HTTP POST
request to another server, something like CURL.  I would like to POST
text as well as files.

I found this http://helma.org/pipermail/helma-user/2003-April/005189.html,

 but it looks like a dead end. I don't really know how to write a
Helma extension using java, are there any available examples? Thanks,

Julian
_______________________________________________
Helma-user mailing list
Helma-user <at> helma.org
http://helma.org/mailman/listinfo/helma-user

Attachment (winmail.dat): application/ms-tnef, 2860 bytes
_______________________________________________
Helma-user mailing list
Helma-user <at> helma.org
http://helma.org/mailman/listinfo/helma-user
Julian Tree | 16 Sep 18:14
Picon

Re: Posting to URL

Hmm, I am actually looking for HTTP POST  that will submit multipart/form data with attached files.   I may be wrong, but it seems that helma.HTTP will only accept string objects in the setContent. It will also require me to write my own HTTP header, which something I am not to comfortable with. 

I actually found a java lib that will make very easy HTTP Post request? 


Making a multipart/form http post request is easy as 

InputStream serverInput = ClientHttpRequest.post(
                              new java.net.URL("hi.iq/register"), 
                              new Object[] {
                                            "name", "J.Doe",
                                            "email", "abuse <at> spamcop.com",
                                            "test.txt", new 
File("C:\home\vp\tmp\test.txt")
                                           });

Shall we integrate this into helma http?  I would happy to volunteer when I finish this project. 



On Sep 16, 2006, at 11:58 AM, <tobias.schaefer <at> orf.at> <tobias.schaefer <at> orf.at> wrote:

julian

doesn't helma.Http do what you're looking for?


t


-----Original Message-----
From: helma-user-bounces <at> helma.org on behalf of Julian Tree
Sent: Sat 16-Sep-06 01:04
To: Helma User Mailing List
Cc:
Subject: [Helma-user] Posting to URL

I have searched the Mailing list for some way to make HTTP POST
request to another server, something like CURL.  I would like to POST
text as well as files.


 but it looks like a dead end. I don't really know how to write a
Helma extension using java, are there any available examples? Thanks,

Julian
_______________________________________________
Helma-user mailing list



<winmail.dat>
_______________________________________________
Helma-user mailing list

Julian Tree
Phone: (212) 202-0407


_______________________________________________
Helma-user mailing list
Helma-user <at> helma.org
http://helma.org/mailman/listinfo/helma-user
Julian Tree | 17 Sep 04:00
Picon

utf-8 charset encoding for chinese

I have a few skin files in chinese (traditional and simplified), I  
can't get Helma to display them properly.

I have tried following setting in app.properties
file.encoding = UTF-8

I have also tried res.charset such as below

res.charset = "UTF8";
var html =  new helma.Html();

res.data.body = this.renderTemplate('new',
	{html : new helma.Html();}
);
renderSkin('main');

I am using Jurge's javascript template engine btw.

Attached is a copy of the main.skin file. Please let me, as I am  
trying to roll this out by monday. If it doesn't work, I will just  
have to fall back to PHP. It seems to be working in PHP.

Attachment (main.skin): application/octet-stream, 1032 bytes
_______________________________________________
Helma-user mailing list
Helma-user <at> helma.org
http://helma.org/mailman/listinfo/helma-user

Gmane