2009/11/4 Heiko Seeberger
> 2009/11/4 DFectuoso
>
>
>> well that seems great! I use the snapshot so if you finish that and
>> want to make someone very happy, you can send me an example of how it
>> ended up working and i will be very very thankful!
>>
>
> It is a bug in MappedPassword (not Prot
Thank you. solved:
import net.liftweb.mapper.{DB, DefaultConnectionIdentifier}
DB.use(DefaultConnectionIdentifier) { conn =>
conn.setAutoCommit(false)
... // CRUDs
if(success) conn.commit
else conn.rollback
conn.setAutoCommit(true)
}
On Nov 4, 2:52 pm,
I thought of a smarter way to test it. Please tell me if you have any
objections.
I noticed that some of the specs extend the class they test. The idea is to
refactor the call to actually send the email into an outside method. Then,
after making some private members of Mailer protected, the spe
2009/11/4 DFectuoso
>
> well that seems great! I use the snapshot so if you finish that and
> want to make someone very happy, you can send me an example of how it
> ended up working and i will be very very thankful!
>
It is a bug in MappedPassword (not ProtoUser):
http://github.com/dpp/liftweb/
well that seems great! I use the snapshot so if you finish that and
want to make someone very happy, you can send me an example of how it
ended up working and i will be very very thankful!
The last piece of the puzzle is the "**" default value of the
mappedPassword, since its part of the mapp
I think it's called DB.use, not sure.
-
night_stalker wrote:
Is there any easy way like ActiveRecord's transaction ? I'd prefer
ModelA.transaction { ModelB.transaction {
ModelA.create fill someField save_!;
ModelB delete_! someId
...
}}
If no
Is there any easy way like ActiveRecord's transaction ? I'd prefer
ModelA.transaction { ModelB.transaction {
ModelA.create fill someField save_!;
ModelB delete_! someId
...
}}
If no block-like methods, something like the following is OK
DB.beginTransaction
...
DB.endTransa
2009/11/3 DFectuoso
>
> Yes, changing the binding to the full errors,notices and warning fixed
> it, now i just need to override the messages on fail(don't know how to
> change those "password.must.set" and the default password) and i'll be
> over this signup thing
>
"password.must.set" is a ke
Let's say I write a test using dumbster. What port will it run on?
-
David Pollak wrote:
On Tue, Nov 3, 2009 at 1:47 PM, Naftoli Gugenheim wrote:
>
> Wait a minute. You want me to test that my change works--that simple
> messages are not multipart--or that ot
I asked you how to write one. I have no clue how to unit test email, or what
content type an email is. And the test has to not fail on computers that
don't have an SMTP server, I presume?
As I mentioned on review board, I did test it manually though and it works
fine. Do most commits include a unit
Hi,
I am using eclipse to write JUnit test.
For the following sample code I am getting error:"No Junit tests
found". Where am I going wrong?
package test
import junit.framework.TestCase
class UnitTest extends TestCase{
def test1() ={
println("Hello")
}
}
--~--~-~--~~---
On Tue, Nov 3, 2009 at 3:00 PM, Naftoli Gugenheim wrote:
>
> I verified locally via dumbster that the content type is test/plain;
> charset=us-ascii for a single PlainMailBodyType. For two, or an
> XHTMLMailBodyType, it's multipart/alternative.
> Do I still need to contribute a test to Lift?
>
Ye
I verified locally via dumbster that the content type is test/plain;
charset=us-ascii for a single PlainMailBodyType. For two, or an
XHTMLMailBodyType, it's multipart/alternative.
Do I still need to contribute a test to Lift?
-
David Pollak wrote:
On Tue, No
This is on MySQL. I see the same behavior on Oracle.
My key column is a CHAR column rather than VARCHAR. I noticed
that some places in the code check for VARCHAR and CHAR types,
whereas some only check for VARCHAR. I tried hacking the code to
add CHAR in those places, but that did not make any
On Tue, Nov 3, 2009 at 1:47 PM, Naftoli Gugenheim wrote:
>
> Wait a minute. You want me to test that my change works--that simple
> messages are not multipart--or that other messages still are multipart?
Both.
Test that mail sent as plain text is not multipart and that all other mail
is multipa
You can find my User.scala file in http://etherpad.com/someScalaCode
(saved on rev 1). I need to add an EULA and thats it tho... i would
like to keep it as simple as possible(i hate the idea of having html
hardcoded in a model, and using signupFields is great! so my only real
issues to solve is re
So then can you answer my last question? What is a safe port to run Dumbster on?
-
David Pollak wrote:
On Tue, Nov 3, 2009 at 3:00 PM, Naftoli Gugenheim wrote:
>
> I verified locally via dumbster that the content type is test/plain;
> charset=us-ascii for a s
It sounds good, it's a good new for us!
Congratulations , the M7 is coming !
Cheers,
Neil
On Nov 3, 10:05 pm, David Pollak
wrote:
> Folks,
>
> Lift 1.1 M7 is less than 36 hours away (barring some huge defect that folks
> uncover). It's time for everyone to do some testing of their code
Wait a minute. You want me to test that my change works--that simple messages
are not multipart--or that other messages still are multipart? Or something
else?
-
David Pollak wrote:
On Tue, Nov 3, 2009 at 1:30 PM, Naftoli Gugenheim wrote:
> I asked you how
On Tue, Nov 3, 2009 at 1:30 PM, Naftoli Gugenheim wrote:
> I asked you how to write one. I have no clue how to unit test email, or
> what content type an email is. And the test has to not fail on computers
> that don't have an SMTP server, I presume?
I don't know how to write tests against maile
What database are you using? MySQL? H2? Other
Please try again with 1.1-SNAPSHOT or wait until tomorrow (Nov 4th) when
1.1-M7 is released.
David fixed some things in Mapper just yesterday (issue # 151) related to
uppercase dbTableName and dbColumnName to remedy a similar Mapper problem we
were
On Tue, Nov 3, 2009 at 1:08 PM, Naftoli Gugenheim wrote:
> Can someone look at Review Board? Is my addition okay?
Did you write a test?
Also, it's not going into M7, so it's not going to get merged into master
until Thursday.
>
>
> On Sat, Oct 31, 2009 at 10:00 PM, Naftoli Gugenheim
> wrote:
Nicely designed site, just to go a bit off-topic, very clean.
On Nov 4, 4:33 am, Heiko Seeberger
wrote:
> 2009/11/3 DFectuoso
>
>
>
> > I would expect that any time the form fails to validate(try clicking
> > submit without typing a password or a valid email in hellolift) i
> > would get a mess
I think all you'd need to do is throw some CSS and Jquery in and
you'll there :)
On Nov 4, 6:42 am, Heiko Seeberger
wrote:
> Thank you. It's my contribution to the W-JAX Challenge where several web
> frameworks compete.
> But to be honest: The others are really nicely designed ...
>
> Heiko
>
>
Thank you. It's my contribution to the W-JAX Challenge where several web
frameworks compete.
But to be honest: The others are really nicely designed ...
Heiko
2009/11/3 Randinn
>
> Nicely designed site, just to go a bit off-topic, very clean.
>
> On Nov 4, 4:33 am, Heiko Seeberger
> wrote:
> >
2009/11/3 DFectuoso
>
> I would expect that any time the form fails to validate(try clicking
> submit without typing a password or a valid email in hellolift) i
> would get a message saying what is wrong.
>
That's how it works.
Go to http://174.143.152.248:8080/kix-1.0/ to see a live demo: Try t
David,
I attempted to follow your blog piece and rewrite the code in
Integrating Flex, BlazeDS, and Scala/Lift, at http://flexonrails.net/?p=103.
Maybe I'm being a bit ambitious to redo this, but when I run just the
Lift portion (without Flex/BazeDS) and make a call to my LiftActor
implementatio
Can someone look at Review Board? Is my addition okay?
On Sat, Oct 31, 2009 at 10:00 PM, Naftoli Gugenheim wrote:
> How does this look? (Note: output from git diff -b, so applying it won't
> indent properly)
>
>
> On Fri, Oct 30, 2009 at 4:20 PM, Derek Chen-Becker
> wrote:
>
>> Probably not unti
It wasn't able to read the local repository data, and deleting .m2/ didn't
help?
On Tue, Nov 3, 2009 at 12:09 AM, Randinn wrote:
>
> I just had this occur as well with a basic archetype build, cleaned
> out the local maven repo and still the same problem.
>
> On Nov 2, 11:49 pm, Josh Suereth wr
2009/11/3 DFectuoso
>
> Wow, its working allright, let me compare your code with mine, so far
> the only diff is that you are using the full error snippet
>
> error
> notice
> error
>
> in the template, while im doing a
>
Then show me your Mapper class
Folks,
I've got Lift compiling under Scala 2.8. Well, not all of Lift, but enough
of Lift to run the examples program. I had to remove some parts of Mapper
(the type-checker was cranky about some casts) and other parts of Mapper are
subclasses of Scala collection classes (so the new APIs broke t
Wow, its working allright, let me compare your code with mine, so far
the only diff is that you are using the full error snippet
error
notice
error
in the template, while im doing a
Is there a way to override the "default password" (**) without
Yes, changing the binding to the full errors,notices and warning fixed
it, now i just need to override the messages on fail(don't know how to
change those "password.must.set" and the default password) and i'll be
over this signup thing
On Nov 3, 2:49 pm, DFectuoso wrote:
> You can find my User.s
David,
To follow up. I'd much rather use Snapshots than Milestones. Interim
is interim, and
I prefer to be in lockstep with the most current code base. But
warnings on this
forum notwithstanding, I have found myself in the past spending a lot
of time fixing
unexpected compiler errors, and I fear
On Tue, Nov 3, 2009 at 9:11 AM, glenn wrote:
>
> David,
>
> I understand how to fix the compiler error in my code. Are you
> suggesting
> I'm better going back to the Snapshots, and taking my chances with
> the
> many code changes that requires?
>
You are going to have to make the changes one wa
David,
I understand how to fix the compiler error in my code. Are you
suggesting
I'm better going back to the Snapshots, and taking my chances with
the
many code changes that requires?
Glenn
On Nov 3, 9:06 am, David Pollak wrote:
> On Tue, Nov 3, 2009 at 8:56 AM, glenn wrote:
>
> > I get the
On Tue, Nov 3, 2009 at 8:56 AM, glenn wrote:
>
> I get the following compiler error when switching from M5 to M6
> versions of Lift:
>
> ..\snippet\ManageUsers.scala:24: error: ManageUsers.this.ModelView
> does not take type parameters
> val view: ModelView[User] = new UserView(new User, this)
I get the following compiler error when switching from M5 to M6
versions of Lift:
..\snippet\ManageUsers.scala:24: error: ManageUsers.this.ModelView
does not take type parameters
val view: ModelView[User] = new UserView(new User, this)
Here's my code to this point:
class UserView(entity:Use
I would expect that any time the form fails to validate(try clicking
submit without typing a password or a valid email in hellolift) i
would get a message saying what is wrong.
On Nov 3, 12:58 am, Heiko Seeberger
wrote:
> 2009/11/3 DFectuoso
>
>
>
> > I am using MegaProtoUser in my user model a
I have not added anything that seems unusual to me. My code looks
just like what I have listed below except for the table and column
names. I am putting "Foo.menus" into another menu in the SiteMap,
that part seems to be working properly. I have some other tables
that reference this one as a fo
Thank you Troy for the detailed ticket!
A fix is up for review: http://reviewboard.liftweb.net/r/90/
slf4j-simple is preferred common denominator. slf4j-nop is
self-defeating IMHO :)
Good point regarding slf4j-log4j12 for legacy fallback. I have added an
inline note in the POM.
Cheers, Indraj
On Mon, Nov 2, 2009 at 3:26 PM, Marcin Jurczuk wrote:
>
> Hello,
>
> I would like to use lift ORM(Mapper) without lift, as a part of small
> cli app.
> I assume that it is possible but question is how to "init" MetaMapper/
> Mapper class/objects without Boot.scala and DB setup inside it ?
>
As N
Folks,
Lift 1.1 M7 is less than 36 hours away (barring some huge defect that folks
uncover). It's time for everyone to do some testing of their code against
SNAPSHOT. Specifically:
- SNAPSHOT and M7 are compiled against Scala 2.7.7. Please update your
build system and dependencies to use
On Tue, Nov 3, 2009 at 1:16 AM, Vesa wrote:
>
> Why not with varargs like on below?
>
> case class Link(pathParts: String*)
>
> and I can say Link("a", "b")?
>
At this point, we can't overload the object Link.apply method because the
compiler will get confused.
If this is bothering you so, why
On Tue, Nov 3, 2009 at 1:35 AM, aw wrote:
>
> I needed a button that "goes back", so I created an ajaxButton with
> code like:
>
>SHtml.ajaxButton("Cancel", () => JsCmds.jsExpToJsCmd(JsRaw
> ("history.back();")))
>
This is going to make a server round-trip. I'd suggestion using simple
HTML:
I think the slf4j-simple you suggest might work better than the slf4j-nop I
had settled upon. I just picked one out of the slf4j-1.4.2.jar that didn't
have any other downstream dependencies. I am sure slf4j-nop does absolutely
nothing (old school >/dev/null style logging) whereas slf4j-simple mig
Troy,
Glad that helped. You don't need to manually install log4j, you can
declare a dependency on the "simple" artifact:
org.slf4j
slf4j-simple
1.4.2
I think those simple tweaks (deps on hibernate 3.4 and sl4j) may fix the
JPA archetype woes, at least w/ mysql.
Troy Noble wrote:
> Yes I t
Hi,
Thanks very much, that's exactly what I'm after !
For anyone reading this and wondering how to put Lift in test mode,
here is one way if you're using maven+jetty :
mvn jetty:run -Drun.mode=test
--~--~-~--~~~---~--~~
You received this message because you are
Thanks, that made it.
On 3 Nov., 10:34, Thiébaut Champenier wrote:
> Hi Torsten,
>
> In your html, you have to use according to how you bind:
>
> > def list(xhtml:NodeSeq):NodeSeq = {
> > elem.flatMap(file => bind("list", xhtml, "item" -> file))
> > }
> >
> >
> >
> >
--~--~-~
Hi Torsten,
In your html, you have to use according to how you bind:
> def list(xhtml:NodeSeq):NodeSeq = {
> elem.flatMap(file => bind("list", xhtml, "item" -> file))
> }
>
>
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscri
Hi Tim,
I think you mean jGit, eGit is the eclipse plugin wrapper for jGit.
But I only knew eGit till now, so it was not in focus.
The way to get the information is quite equal via InputStreamReader. I
will try it out.
But the problem means to be the same. How can I display a list with
strings?
Works :-) Thanks.
/Jeppe
On Tue, Nov 3, 2009 at 12:20 AM, David Pollak
wrote:
> Fixed
>
> On Sat, Oct 31, 2009 at 9:04 AM, Jeppe Nejsum Madsen
> wrote:
>>
>> David Pollak writes:
>> >
>> > It's a bug. Please file a ticket.
>>
>> Done. http://github.com/dpp/liftweb/issues/#issue/152
>>
>> /Je
I needed a button that "goes back", so I created an ajaxButton with
code like:
SHtml.ajaxButton("Cancel", () => JsCmds.jsExpToJsCmd(JsRaw
("history.back();")))
So, is this the "best" version? Or can this be simplified?
(I didn't feel well acquainted to leveraging Javascript from reading
th
Why not with varargs like on below?
case class Link(pathParts: String*)
and I can say Link("a", "b")?
- Vesa
On 3 marras, 00:15, Jim Barrows wrote:
> On Mon, Nov 2, 2009 at 1:34 PM, Vesa wrote:
>
> > You're right about that. You probably wouldn't get very far without
> > understanding that.
54 matches
Mail list logo