[Lift] Re: XML unescaping

2009-03-17 Thread Jeremy Mawson
Thanks David. 2009/3/17 David Pollak feeder.of.the.be...@gmail.com On Mon, Mar 16, 2009 at 8:51 PM, Jeremy Mawson jeremy.mawson.w...@gmail.com wrote: Thanks Marc. xml:group works nicely. For this exercise this is hypothetical, but it matches very closely a project I have enabled in

[Lift] Re: XML unescaping

2009-03-17 Thread TylerWeir
scala val title = Catsby amp; Twisp +1 for the Penny Arcade reference. On Mar 16, 8:51 am, Derek Chen-Becker dchenbec...@gmail.com wrote: Well, it may be that the XML output portion of Scala is escaping your ampersands a second time. For instance, check out this session in the interpreter:

[Lift] Re: Where to continue after Getting Started?

2009-03-17 Thread Timothy Perrett
Chas, That took me a good 5 mins to read so i've no idea how long it took you to write!! Good work that man... a great comparison. Tim --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this

[Lift] Re: Where to continue after Getting Started?

2009-03-17 Thread Charles F. Munat
I wrote it about as quickly as I could type it, so maybe ten minutes? It's not difficult when you *live* it 18 hours a day... Timothy Perrett wrote: Chas, That took me a good 5 mins to read so i've no idea how long it took you to write!! Good work that man... a great comparison. Tim

[Lift] Google Analytics

2009-03-17 Thread Charles F. Munat
Is anyone else using Google Analytics? I am getting this strange JavaScript error: operation is not supported code: 9 var pageTracker = _gat._getTracker(UA-5774043-2); The Google scripts are supposed to be placed right before the closing body tag, but Lift inserts its own script in there. I

[Lift] Re: Where to continue after Getting Started?

2009-03-17 Thread erik.fris...@googlemail.com
Thanks for the responses, guys. So far I have developed big PHP apps with the Zend Framework, and I found the apps quite manageable. Yes, it requires some careful planning to not end up with a big mess of undocumented code, but so far we always got there ;) I think I will look into the

[Lift] Re: Where to continue after Getting Started?

2009-03-17 Thread David Pollak
On Tue, Mar 17, 2009 at 1:34 AM, erik.fris...@googlemail.com erik.fris...@googlemail.com wrote: Thanks for the responses, guys. So far I have developed big PHP apps with the Zend Framework, and I found the apps quite manageable. Yes, it requires some careful planning to not end up with a

[Lift] Re: XML unescaping

2009-03-17 Thread Derek Chen-Becker
Glad someone caught it :) On Tue, Mar 17, 2009 at 2:32 AM, TylerWeir tyler.w...@gmail.com wrote: scala val title = Catsby amp; Twisp +1 for the Penny Arcade reference. On Mar 16, 8:51 am, Derek Chen-Becker dchenbec...@gmail.com wrote: Well, it may be that the XML output portion of Scala

[Lift] Re: Google Analytics

2009-03-17 Thread Derek Chen-Becker
Can you send the beginning of the XHTML output, up to and including the GA script? Derek On Tue, Mar 17, 2009 at 6:31 AM, Charles F. Munat c...@munat.com wrote: Is anyone else using Google Analytics? I am getting this strange JavaScript error: operation is not supported code: 9 var

[Lift] Ticket #19 (mail and character encoding)

2009-03-17 Thread Derek Chen-Becker
I'm looking at ticket #19: http://liftweb.lighthouseapp.com/projects/26102/tickets/19-mailer-doesnt-handle-plain-text-encoding The setText method is essentially a shortcut for setContent(..., text/plain), but it also allows you to specify the character encoding. Would anyone be opposed to

[Lift] lift:snippet type=Foo.bar != lift:Foo.bar?

2009-03-17 Thread Clemens
Hello everybody, I'm fairly new to lift (and to scala, to be honest), and just trying to find my way around. So far I like what I'm seeing and deing, but some things keep me puzzled. Short version of my confusion: Is lift:snippet type=SiteOps.add form=post.../lift:snippet equivalent to

[Lift] Re: lift:snippet type=Foo.bar != lift:Foo.bar?

2009-03-17 Thread David Pollak
lift:snippet type=SiteOps.add form=post == lift:SiteOps.add form=post If this is not the case, it's a Lift defect. On Tue, Mar 17, 2009 at 8:41 AM, Clemens clemens.oer...@gmail.com wrote: Hello everybody, I'm fairly new to lift (and to scala, to be honest), and just trying to find my way

[Lift] Re: SQL Server Errors

2009-03-17 Thread Timothy Perrett
*bump* Al, any progress on these? Cheers, Tim On Mar 10, 11:04 am, Timothy Perrett timo...@getintheloop.eu wrote: Is someone able to take ownership of these tickets? Cheers, Tim On Mar 9, 5:52 pm, Tim Perrett timo...@getintheloop.eu wrote: Guys, Just logged a couple of bugs for SQL

[Lift] Re: SQL Server Errors

2009-03-17 Thread Derek Chen-Becker
I think the DateTime issue should be fixed pretty easily in MappedDateTime itself. Let me make a new branch and make a minor change. Derek On Tue, Mar 17, 2009 at 12:09 PM, Timothy Perrett timo...@getintheloop.euwrote: *bump* Al, any progress on these? Cheers, Tim On Mar 10, 11:04 am,

[Lift] Re: lift:snippet type=Foo.bar != lift:Foo.bar?

2009-03-17 Thread Clemens
That's good to hear - I like orthogonality. I created a ticket for this, #21. Thanks Clemenns On Mar 17, 12:26 pm, David Pollak feeder.of.the.be...@gmail.com wrote: lift:snippet type=SiteOps.add form=post == lift:SiteOps.add form=post If this is not the case, it's a Lift defect. On

[Lift] Re: SQL Server Errors

2009-03-17 Thread Derek Chen-Becker
OK, actually, the change is in SqlServerDriver. I've made the change and I'm running a build before committing. Once I push the branch could you check it out and test? I'm looking at #17 right now, too. Derek On Tue, Mar 17, 2009 at 12:44 PM, Derek Chen-Becker dchenbec...@gmail.comwrote: I

[Lift] Re: SQL Server Errors

2009-03-17 Thread Timothy Perrett
Hey Derek, Awesome - thanks. I knew the DataTime one would be a simple fix - I just don't know enough about mapper. #17 is the one thats really hurting me right now... if you could fix that I would be sooo grateful! Cheers, Tim On Mar 17, 6:02 pm, Derek Chen-Becker dchenbec...@gmail.com

[Lift] Re: SQL Server Errors

2009-03-17 Thread Derek Chen-Becker
OK, check out the wip-dcb-datetime branch and test that. It looks like the CLOB object that jTDS returns doesn't override toString to return the contents of the CLOB. It does, however, implement the java.sql.Clob interface, so it may be possible to match that somehow and make it work. I'm diving

[Lift] Re: SQL Server Errors

2009-03-17 Thread Derek Chen-Becker
Actually, now I'm more confused. In the MappedText source it's using the JDBC type VARCHAR. In MetaMapper's buildMapper method it appears that VARCHAR should be retrieved via a resultSet.getString call, which should return the String form of the data. I confirmed this in jTDS source:

[Lift] Re: Ticket #19 (mail and character encoding)

2009-03-17 Thread Marc Boschma
It depends upon what is meant by plain. According to RFC 2045 (5.2) the default character encoding for a non-MIME message is us-ascii and the transfer encoding would be 7bit. Given that I think we are speaking of MIME encoded messages I think that the default of UTF-8 is ok in a lift

[Lift] Re: Ticket #19 (mail and character encoding)

2009-03-17 Thread Derek Chen-Becker
This is strictly MIME, so the plain text part of the message will have an explicit charset associated with the text. The JavaMail framework is very flexible in terms of what you can send, how it's encoded, etc, but Lift's interface only exposes a small subset appropriate for sending either text

[Lift] Re: Ticket #19 (mail and character encoding)

2009-03-17 Thread Derek Chen-Becker
OK, new code is checked in on wip-dcb-mailer-charset branch. Does anyone have time to test? Derek On Tue, Mar 17, 2009 at 2:39 PM, Derek Chen-Becker dchenbec...@gmail.comwrote: This is strictly MIME, so the plain text part of the message will have an explicit charset associated with the text.

[Lift] Re: Google Analytics

2009-03-17 Thread Charles F. Munat
OK, I have to stop posting this crap when it's 5:30 AM, I've been working for 18 hours straight, and my brain is fried. The problem was that I was looking at it on my development machine, not the production server. The Google Analytics code is tied to the URL. If the URL is wrong, it doesn't

[Lift] FieldType and ForeignType

2009-03-17 Thread Jorge Ortiz
Anyone know what these two types: type FieldType : KeyType type ForeignType : KeyedMapper[KeyType, Other] in trait MappedForeignKey are doing? They're never fully defined and never used, but somehow were causing compile problems in someone's code. If they're useless, can they be axed? --j

[Lift] Re: FieldType and ForeignType

2009-03-17 Thread Jorge Ortiz
And if they're useful, can subclasses of MappedForeignKey define them more exactly? Errors looked like this: [WARNING] C:\workspace\liftapp\src\main\scala\com\liftworkshop\model\ToDo.scala: 16: error: object creation impossible, since type ForeignType in trait MappedFor eignKey with bounds :

[Lift] Re: Where to continue after Getting Started?

2009-03-17 Thread Ikai Lan
I'll add my two cents: I've written my share of Ruby, PHP and Python. My preference is towards Ruby because the way things work is simply more logical than Python, which is much more old school. For instance, default parameters for functions are calculated at method invocation rather than method

[Lift] Re: Tutorial No Schemify in Boot.scala

2009-03-17 Thread Tobias Daub
Hi Eric, By the way, is there any documentation about the different maven2 lift-archetype-something options? I wanted to setup a lift project that has the login stuff already included, but since I didn't know why, I used the ToDo project and modified it. Are there other solutions? thanks

[Lift] Forms validation formatter

2009-03-17 Thread Clemens Oertel
Hello everybody, Still trying to learn how to use lift efficiently and effectively, I got a little bit confused about the toForm function in the model/ mappers. Admittedly, my web framework background may be limited, but this looked to me as if some view code snuck into the model space

[Lift] Melbourne Scala User Group

2009-03-17 Thread Jem Mawson
Hello The Melbourne (Australia) Scala User Group has quite recently been set up and discussions are underway about what topics / activities would be of interest. Lift is one topic that will undoubtedly be pursued. Anyone in Melbourne with an interest in Scala would be welcome at

[Lift] Melbourne Scala User Group

2009-03-17 Thread Jeremy Mawson
Apologies for possible double-posting. I posted this via the google groups UI, but it has not been published to the group. 2009/3/18 Jem Mawson jeremy.mawson.w...@gmail.com Hello The Melbourne (Australia) Scala User Group has quite recently been set up and discussions are underway about what

[Lift] Forms validation formatter

2009-03-17 Thread Clemens
Hello everybody, (I sent this post once already a few hours ago, but it has not shown up yet, so I decided to send it again. I apologize should it show up twice.) Still trying to learn how to use lift efficiently and effectively, I got a little bit confused about the toForm function in the

[Lift] Welcome Lee Mighdoll to the Lift committers

2009-03-17 Thread David Pollak
Folks, I'm pleased to welcome Lee Mighdoll to the Lift committers. Lee wrote the brilliant line: Lift is an expressive and elegant framework for writing web applications. Almost 18 months ago... but he's not a marketing guy, he's a code slinger and he's going to be slinging some pretty cool

[Lift] Re: FieldType and ForeignType

2009-03-17 Thread David Pollak
What version of Scala? On Tue, Mar 17, 2009 at 5:45 PM, Jorge Ortiz jorge.or...@gmail.com wrote: And if they're useful, can subclasses of MappedForeignKey define them more exactly? Errors looked like this: [WARNING] C:\workspace\liftapp\src\main\scala\com\liftworkshop\model\ToDo.scala:

[Lift] Re: FieldType and ForeignType

2009-03-17 Thread Jorge Ortiz
Argh. Good call. I don't know as I was debugging through IRC, but it was probably 2.7.2 since he was using the todo example site from the Lift workshop. And I told him to upgrade to Lift 1.0. That's going to cause problems. Oh well. --j On Tue, Mar 17, 2009 at 8:23 PM, David Pollak

[Lift] Re: Welcome Lee Mighdoll to the Lift committers

2009-03-17 Thread Derek Chen-Becker
Great to have you along, Lee :) Derek On Tue, Mar 17, 2009 at 9:11 PM, David Pollak feeder.of.the.be...@gmail.com wrote: Folks, I'm pleased to welcome Lee Mighdoll to the Lift committers. Lee wrote the brilliant line: Lift is an expressive and elegant framework for writing web