Git Product home page Git Product logo

seaside's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

seaside's Issues

#sourceCodeAt: check from WAFileLibrary

The #sourceCodeAt: check from WAFileLibrary fails in GNU Smalltalk
for complicated reasons; it does not add to the testcase in my opinion,
can you zap it?

Original issue reported on code.google.com by renggli on 2 Mar 2008 at 8:20

WAHandlerEditorFiles references

WAHtmlTest>>renderZFileSetOn: and WAIframeTest>renderContentOn: have
references to WAHandlerEditorFiles ...

WAStandardFiles doesn't have any images that look as nice as the Seaside
logo, so I held off just picking something like profilerPng to replace it
with ...

Original issue reported on code.google.com by [email protected] on 17 Mar 2008 at 10:48

Seaside-Development-Tests anyone?

I discovered that WAFileLibraryTest>>testFilenames has a reference to
WAHandlerEditorFiles which is in Seaside-Development-Core. Either we need
to have a Seaside-Development-Tests package (probably not a bad idea in the
long run) or WAHandlerEditorFiles needs to be moved into the core, or ???



Original issue reported on code.google.com by [email protected] on 8 Mar 2008 at 12:37

Lightbox with WATask

Is it possible to use the lightbox: (from SU) functionality instead
of call: inside a WATask component.
I know it is maybe a problem of the redirect of the WATask implementation.
But maybe there is a workaround?

Original issue reported on code.google.com by renggli on 2 Mar 2008 at 8:29

cookies can not be added in callback phase

Cookies and not be added to a response in the callback phase because there
is no response in the context.

A possible fix would be:
Add the cookies to the context. If there is a response in the context, add
them to the response, else add them to as a property. If the request
process is done the code returning the response queries the context.

Original issue reported on code.google.com by [email protected] on 4 Apr 2008 at 8:05

WAPlatformTest #testDaysInMonthForYear

in WAPlatformTest>>#testDaysInMonthForYear, Month is sent a message.
 There is no such class in GNU Smalltalk; I suggest creating an
extension Date class>>#daysInMonthNumber:forYear:.

Actually, it's better to create an instance-side method #daysInMonth.

Original issue reported on code.google.com by renggli on 2 Mar 2008 at 8:17

SUObject>>#render: during rendering phase inserts unwanted scripts

I'm probably doing it wrongly, but in a attempt to debug, I change my
SUTip>>content to:

   Transcript
               nextPutAll: (String
                               streamContents: [:stream | self render: aBlock on: stream]);
                endEntry.


Then I can see in the transcript that what's printed is the XHTML
string which I have generated (great). followed by some SU* related
javascript from a previous use of SUAutocompleter:

<span>test4</span><script type="text/javascript">/*<![CDATA[*/new
Ajax.Autocompleter('query','id6','http://localhost:8081/seaside/sfe',{'afterUpda
teElement':functio
n(){new
Ajax.Request('http://localhost:8081/seaside/sfe',{'parameters':['_s=QkGrWpbTSpLB
RefB','_k=CXC
QlzYF','5',$('query').serialize()].join('&')})},'evalScripts':true,'parameters':
['_s=QkGrWpbTSpLBRefB','
_k=CXCQlzYF','4'].join('&')})/*]]>*/</script>


<span>test4</span> alone is what I am expecting. Any suggestion on
what I am doing wrongly? Thanks again.

Original issue reported on code.google.com by renggli on 5 Mar 2008 at 1:12

WAFileLibrary>>#/

I guess #/ should use "self default" instead of "self new".

Original issue reported on code.google.com by renggli on 3 Apr 2008 at 8:27

The Big Cleanup ™

The recent URL and context enhancements made a lot of cleanup possible:
- url hackery of WAApplication >> #sessionCookieFor: should be moved to WAUrl
- methods #actionUrlForKey: #newSessionUrl and #responseForRequest: should
be moved to WAContext
- WAFileLibrary should rely on WAContext for url generation
- lots of #handleRequest: methods are broken, they don't push themselves on
the context
- most references to WACurrentSession are bugous and should be changed to
use WAContext
- charset and content type should be moved from session to application
- WAMain and WARegistry are as well good candidates for cleanup
- WAResponse >> #initialize should not access the session as well

Original issue reported on code.google.com by [email protected] on 30 Mar 2008 at 7:53

Memory tool mis-sorts total size

The memory tool ("Memory" in the toolbar) mis-sorts the "Total Size" column 
when the user clicks 
on the headers. 

WAMemory>>buildTable seems to be the source of the problem. The column contains 
positive 
integers, but they're rendered as strings with commas ("12,345"); sorting those 
in string order 
doesn't produce anything useful.

Original issue reported on code.google.com by renggli on 2 Mar 2008 at 8:28

ie7 in place colllection editor

The "in place collection editor" is not working with IE7.
Tested with the seaside scriptaculous "controls" test page.

It does work with scriptaculous only.
see 
http://wiki.script.aculo.us/scriptaculous/show/Ajax.In+Place+Collection+Edi
tor


Original issue reported on code.google.com by [email protected] on 18 Mar 2008 at 8:39

WAUrl enhancements

- parsable from a string
- relative lookup (see WADispatchComponent #initialRequest:, #updateRoot:)

Original issue reported on code.google.com by renggli on 26 Mar 2008 at 6:45

takeParametersFromRequest:

#takeParaemtersFromRequest: should not override any settings that come from the 
application 
preferences. The current implementation does not allow to override Server Name 
and Server Port 
from the config interface if the requestor for some strange reason has set 
these properties.

Original issue reported on code.google.com by renggli on 2 Mar 2008 at 8:28

Race condition in WAProcessMonitor

There is a race condition in WAProcessMonitor>>#critical:ifError: --
basically, it is unsafe to assign the result of #fork and use it anywhere
but in the current method.  The newly forked process might start before the
instance variable is assigned, and another process might think that no
process is running while in fact it is.  While rare (I found this by
inspection not because it actually happened), it is easy to fix, so why not.

Depending on the scheduler, it may affect some dialects more than others.

!WAProcessMonitor methodsFor: 'mutual exclusion'!

critical: aBlock ifError: anErrorBlock
        "Evaluate aBlock as a mutual exclusive block within a new processes
and wait for the process to finish. Evaluate anErrorBlock in case of a
problem. Answer the result of evaluating the blocks. Note, that the
semaphore needs to be an instance-variable, otherwise continuations might
screw up the debugger."

        | value |
        mutex critical:
                [semaphore := SeasidePlatformSupport semaphoreClass new.
                process := [[value := aBlock on: Error do: anErrorBlock] 
            ensure: [semaphore signal]] newProcess.
                process resume.
                semaphore wait.
                process := nil].
        ^value
!

Original issue reported on code.google.com by [email protected] on 3 Mar 2008 at 9:44

Provide simple email abstraction

Currently we have SeasidePlatformSupport >> #deliverMailFrom:to:text: which
is quite cumbersome to use, you have to concatenate the whole mail message
together PHP-style.

We should have a minimal abstraction of an email message.

Original issue reported on code.google.com by [email protected] on 30 Mar 2008 at 2:58

WAMemory looks ugly

WAMemory looks ugly and needs improvement. The style including the fonts don't 
match the 
window. The table header style (and color) look like 1998.

Original issue reported on code.google.com by renggli on 2 Mar 2008 at 8:31

Test results depend on hashing

The result of #testLinkElement may have "aural, tty" or "tty, aural" media
depending on the whims of hashing on a dialect or platform.

Fixed with this changeset (which just adds an #asSortedCollection call).

!WALinkElement methodsFor: 'media'!

addMedia: aString [
        | media |
        media := (((attributes at: 'media' ifAbsent: ['']) findTokens: $,)
                    collect: [:each | each trimSeparators]) asSet.
        media add: aString.
        self media: (String streamContents:
                [:stream | media asSortedCollection do: [:each | stream
nextPutAll: each]
                            separatedBy: [stream nextPutAll: ', ']])
! !

Original issue reported on code.google.com by [email protected] on 7 Mar 2008 at 7:28

Strange url when sessions expire

Reported by Martial Boniou at:
http://lists.squeakfoundation.org/pipermail/seaside/2007-May/012073.html

Hi,

I noticed a strange behavior in my urls when sessions expire. When I
want to write accents in my url (when I use Pier-Blog for example), the
special characters are transformed in escape http symbol: 'Étoile'
normally becomes '%C9toile'. It works great and my navigation/anchors
have good shape. But when my session expires, the same anchors with the
good '%C9toile' string in the goto url is corrupted to '%C9%B4oile' when
the url is parsed and requested.

I think the problem concerns the way Seaside rewrites urls when session
expires in order to remove the unused key parameters.

I use seaside 2.8a1-lr.220 (I think I noticed this problem in 2.7 too),
KomHTTPServer-gk.14 and KomServices-gk.3. The 11 tests of WAUrl and
WAPlatform pass well on squeak 3.9/3.10 (both Damien dev images).

Maybe german and japanese Seaside people had experienced such a
behavior.

Original issue reported on code.google.com by renggli on 2 Mar 2008 at 8:32

No functional test for WATree

WATree can only be tested from the ExampleBrowser.

Original issue reported on code.google.com by renggli on 2 Mar 2008 at 8:14

WAFloatPrinter>>printFraction:on: is "horriby broken"

from the comment:
  "This is horribly broken, don't use it."

It _is_ broken, as WAPrinterTest>>testFloatPrinter fails ...

First question is:
  Are the Seaside-Utils pacakges intended to be included?

Second question is:

  If Seaside-Utils are supposed to be included, then at least this method
(and others?) could be fixed by using Platform-specific implementations
that provide the desired result - that is unless the implementations
themselves are intended to be platform independent ...

Original issue reported on code.google.com by [email protected] on 17 Mar 2008 at 9:51

Halos leak memory on Squeak

WeakDictionaries are no longer used to store sessions in Squeak. This is no 
problem for sessions 
since they are simply reclaimed later. For Halos this is not the case. This 
also a potential problem on 
the Seaside homepage because it is a production application that has halos on.

A possible solution would be:
http://bugs.squeak.org/view.php?id=6348 [^]
or extending the HashTable package

Original issue reported on code.google.com by renggli on 2 Mar 2008 at 8:30

startUp does not work with WAKomEncoded

When using WAKomEncoded, I found that startUp process wasnt working properly on 
restarting the 
image. The reason is that WAKomEncoded39 class #instance was not calling "super 
initialize".

Original issue reported on code.google.com by [email protected] on 7 Apr 2008 at 4:48

Add switch to WAFileLibrary such that #/ also generates static paths

I would suggest to leave WAFileLibrary as it is in 2.8, but provide the ability 
to toggle the behavoir 
of #/ to generate url between (a) the current way - served by Seaside, and (b) 
another static path.

This way, resources can continue to be versioned in MC. For smaller deployments 
or quick testing 
purposes, (a) can be used without requiring any additional set up. (b) can be 
used to serve the 
resources via KOM, Swazoo, httpd, etc. Other than for production/efficiency 
purposes, a key 
advantage of (b) is that during development, changing a JS/CSS file on disk 
will instantly reflect 
upon browser refresh...

Additional interfaces such as FTP/webdav access can simply be built on top of a 
static file, via (b).
Steps To Reproduce  

Original issue reported on code.google.com by renggli on 2 Mar 2008 at 8:21

MimeDocument should be part of Seaside

Why should the platform support module provide a MIME document class?
IMO a minimal implementation should be present in the form of a
WAMIMEDocument class within Seaside-Core, like it's done with URLs and
MIME types; then, platform support is free to return another class if it
is polymorphic with WAMimeDocument.

Here is my super-basic implementation:


Object subclass: #WAMimeDocument
    instanceVariableNames: 'contentStream content contentType'
    classVariableNames: ''
    poolDictionaries: ''
    category: 'Seaside-Core-HTTP'!

!WAMimeDocument class methodsFor: 'instance creation'!

contentType: mimeType content: content
        ^self new contentType: mimeType contentStream: nil content: content
!

contentType: mimeType contentStream: stream
        ^self new contentType: mimeType contentStream: stream content: nil
! !

!WAMimeDocument methodsFor: 'basic'!

asMIMEDocument
        ^self
!

asMIMEDocumentType: type
        type toString = contentType toString ifTrue: [ ^self ].
        ^self class new
                contentType: type contentStream: contentStream content:
content
! !

!WAMimeDocument methodsFor: 'initialization'!

contentType: mimeType contentStream: stream content: anObject
        contentType := mimeType.
        contentStream := stream.
        content := anObject
! !

!WAMimeDocument methodsFor: 'accessing'!

contentStream
        contentStream isNil ifTrue: [ ^content readStream ].
        ^contentStream
!

contentType
        ^contentType
!

content
        contentStream isNil ifFalse: [ ^contentStream contents ].
        ^content
! !

Original issue reported on code.google.com by renggli on 6 Mar 2008 at 8:31

Failing test WALocaleTest>>#testLanguageNameIso3

The first problem is that it tests 3-letter country names, not language
names.  That can be fixed by renaming the test.  The second is that the
test does not work because Seaside does not support 3-letter country names.
 The page at http://nl.ijs.si/gnusl/cee/std/ISO_3166.html is easiest to
parse and includes 2-letter names too.

Original issue reported on code.google.com by [email protected] on 3 Mar 2008 at 10:26

Decorations are rendered outside Halo of component.

When a component has a decoration and halos are turned on the decoration is 
rendered outside the 
halo.

This is probably a bit tricky to fix due to WADelegation.

Original issue reported on code.google.com by renggli on 2 Mar 2008 at 8:32

NULL characters in testUtf16

There are NULL characters in testUtf16. It would be nice if the
strings there could be expressed as byte-arrays or, even better, created
from the ISO-8859-1 strings using something like:

   utf16 := String new: iso88591 size * 2.
   iso88591 with: (2 to: utf16 size by: 2) do: [ :ch :index |
       utf16 at: index put: ch ].

Original issue reported on code.google.com by renggli on 2 Mar 2008 at 8:20

More methods to test for in WAPlatformTest

1) SequenceableCollection>>#associationsDo:
2) Object>>#printStringLimitedTo:
3) Dictionary>>#keysSortedSafely
4) SmallInteger>>#day / #hour / #minute / #second
5) Object>>#isCollection / Collection>>#isCollection
6) String>>#caseInsensitiveLessOrEqual:
7) #defaultDirectoryName
8) #platformString


Original issue reported on code.google.com by renggli on 2 Mar 2008 at 8:13

Seaside relies on a Color class provided by the system.

Seaside relies on a Color class provided by the system. GNU
Smalltalk does not have one. If you provide me with a list of required
methods, I can write a WAColor class for Seaside 2.9.

WAPlatformTest>>testColorAsHtmlColor is the only method requiring the class; it 
can probably be 
removed.

Original issue reported on code.google.com by renggli on 2 Mar 2008 at 8:16

Transaction demo broken. Therefore isolate: probably broken too...

What steps will reproduce the problem?
1. In AllTests try the transaction component functionality.
2. When it redirects, it shows a blank page instead of the point outside of
the child txn.

What is the expected output? What do you see instead?
The page should be at the point after the child txn.

What version of the product are you using? On what operating system?
Seaside2.8a1-mu.540

Please provide any additional information below.
It seems the continuation is not being picked up correctly. Tested under
2.6 and it works fine

Original issue reported on code.google.com by [email protected] on 3 Apr 2008 at 9:57

Behaviour of #initialRequest:/#updateUrl differs when using session cookies.

When overriding WAComponent>>>#initialRequest: and #updateUrl: to create 
REST-ful urls, with 
session cookies enabled via WASessionConfiguration>>>#useSessionCookie, the 
changes to the 
URL are reverted.

A discussion thread from the mailing list, which is relevant to this bug can be 
viewed at: 
http://lists.squeakfoundation.org/pipermail/seaside/2007-June/012311.html

Original issue reported on code.google.com by renggli on 2 Mar 2008 at 8:31

A RESTful configuration editor would be very useful

I think that the configuration editor is a very clear example of an application 
that would benefit 
from RESTful URLs (e.g. /seaside/config/examples/counter). It could also be an 
example of how to 
provide them.

Original issue reported on code.google.com by renggli on 2 Mar 2008 at 8:14

/seaside/browse does not show RSS feeds or files

WADispachterViewer >> #entryPoints
    ^ super entryPoints select: [ :each | each isDispatcher or: [ each
isApplication ] ]

this obviously does not include RRRssHandler. Maybe it would be better to
send #isEntryPoint.

Original issue reported on code.google.com by [email protected] on 1 Apr 2008 at 5:23

WAPlatformSpecificTest>>testVersionString fails (in my Squeak image)

PackageInfo>>versionString (part of Seaside-Squeak-Core) uses 'self name'
when creating the MCPackage and in my admittedly old (at least 6 months
old) Squeak image, name returns the 'aPackageInfo' instead of the
packageName of the PackageInfo, so the test fails ..

Presumably using #packageInfo is safer.

Original issue reported on code.google.com by [email protected] on 17 Mar 2008 at 10:10

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.